use parent qw(SL::Controller::Base);
use SL::Menu;
+use SL::Controller::Layout::Admin;
use SL::Controller::Layout::Classic;
use SL::Controller::Layout::V3;
use SL::Controller::Layout::V4;
return SL::Controller::Layout::V3->new if $params{style} eq 'v3';
return SL::Controller::Layout::V4->new if $params{style} eq 'v4';
return SL::Controller::Layout::Javascript->new if $params{style} eq 'neu';
+ return SL::Controller::Layout::Admin->new if $params{style} eq 'admin';
return SL::Controller::Layout::None->new;
}
--- /dev/null
+package SL::Controller::Layout::Admin;
+
+use strict;
+use parent qw(SL::Controller::Layout::Base);
+
+sub new {
+ my ($class, @slurp) = @_;
+
+ my $self = $class->SUPER::new(@slurp);
+
+ $self->add_sub_layouts([
+ SL::Controller::Layout::None->new,
+ ]);
+
+ $self;
+}
+
+sub start_content {
+ "<div id='admin' class='admin'>\n";
+}
+
+sub end_content {
+ "</div>\n";
+}
+
+1;
$locale = $::locale;
$auth = $::auth;
+ $::request->{layout} = SL::Controller::Layout->new(style => 'admin');
$::request->{layout}->use_stylesheet("lx-office-erp.css");
$form->{favicon} = "favicon.ico";
th.login {
text-align: right;
}
-body.admin {
+div.admin {
background-color: #FFFFE0;
+ padding: 8px;
color: #000000;
}
body.menu {
text-align: right;
}
-body.admin {
- background-color:#ffffff;
+div.admin {
color: black;
+ margin: 8px;
}
.message_error_login {
[%- USE T8 %]
[% USE HTML %]
[% USE LxERP%]
-<body class="admin">
-
<script type='text/javascript'>
$(function(){ document.getElementsById('rpw').focus();});
</script>
[%- USE T8 %]
[%- USE HTML %]
-<body class="admin">
-
<script type="text/javascript">
<!--
$(function(){
[%- USE T8 %]
[%- USE LxERP %]
[%- USE HTML %]
-<body class="admin">
-
<h2>[% title %]</h2>
<p>[% LxERP.t8('The dataset backup has been sent via email to #1.', to) | html %]</p>
[%- USE T8 %]
[%- USE HTML %]
-<body class="admin">
-
<h2>[% title %]</h2>
<form method="post" action="admin.pl">
[%- USE T8 %]
[%- USE HTML %]
-<body class="admin">
-
<h2>[% title %]</h2>
<form method="post" action="admin.pl">
[%- USE T8 %]
[%- USE HTML %]
[%- USE LxERP %]
-<body class="admin">
-
<h2>[% title %]</h2>
<form method="post" action="admin.pl">
[%- USE T8 %]
[%- USE LxERP %]
[%- USE HTML %]
-<body class="admin">
-
<h2>[% title %]</h2>
<form method="post" action="admin.pl">
[%- USE T8 %]
[%- USE HTML %]
-<body class="admin">
-
<h2>[% title %]</h2>
<p><a href="admin.pl?action=pg_database_administration">[% 'Back' | $T8 %]</a></p>
<form method="post" action="admin.pl">
[%- USE T8 %]
[%- USE HTML %]
[%- USE L %]
-<body class="admin">
-
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
[%- USE T8 %]
[%- USE HTML %]
-<body class="admin">
-
<h1>[% title %]</h1>
<form method="post" action="admin.pl">
[%- USE T8 %]
[%- USE HTML %]
-<body class="admin">
-
<script type='text/javascript'>
$(function(){ document.getElementsByName('dbname')[0].focus();});
</script>
[%- USE T8 %]
-<body class="admin">
-
<h2>[% title %]</h2>
<p>[%- 'The restoration process has started. Here\'s the output of the "pg_restore" command:' | $T8 %]</p>
[%- USE T8 %]
[%- USE HTML %]
-<body class="admin">
-
<h2>[% title %]</h2>
<p><a href="admin.pl?action=pg_database_administration">[% 'Back' | $T8 %]</a></p>
[% IF ALL_UPDATED %]