]> wagnertech.de Git - kivitendo-erp.git/commitdiff
<body class=admin> auf Admin Layout umgeschrieben.
authorSven Schöling <s.schoeling@linet-services.de>
Fri, 21 Sep 2012 09:48:35 +0000 (11:48 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Wed, 17 Oct 2012 14:02:10 +0000 (16:02 +0200)
18 files changed:
SL/Controller/Layout.pm
SL/Controller/Layout/Admin.pm [new file with mode: 0644]
bin/mozilla/admin.pl
css/kivitendo/main.css
css/lx-office-erp/main.css
templates/webpages/admin/adminlogin.html
templates/webpages/admin/backup_dataset.html
templates/webpages/admin/backup_dataset_email_done.html
templates/webpages/admin/create_dataset.html
templates/webpages/admin/dbadmin.html
templates/webpages/admin/dbcreate.html
templates/webpages/admin/dbdelete.html
templates/webpages/admin/delete_dataset.html
templates/webpages/admin/edit_user.html
templates/webpages/admin/list_users.html
templates/webpages/admin/restore_dataset.html
templates/webpages/admin/restore_dataset_start_header.html
templates/webpages/admin/update_dataset.html

index 5c33b17432caf788a8ab09aa198b6b553cde8048..d618730b67bf94c3815a7d2a7180db43473a90bf 100644 (file)
@@ -4,6 +4,7 @@ use strict;
 use parent qw(SL::Controller::Base);
 
 use SL::Menu;
 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;
 use SL::Controller::Layout::Classic;
 use SL::Controller::Layout::V3;
 use SL::Controller::Layout::V4;
@@ -18,6 +19,7 @@ sub new {
   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::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;
 }
 
   return SL::Controller::Layout::None->new;
 }
 
diff --git a/SL/Controller/Layout/Admin.pm b/SL/Controller/Layout/Admin.pm
new file mode 100644 (file)
index 0000000..9d8f30c
--- /dev/null
@@ -0,0 +1,26 @@
+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;
index bea2315ea2536e2c3c0a9ebecd5d5ceda93bed79..5175aaca50f989cd5d9556651de70432e471d3c3 100755 (executable)
@@ -91,6 +91,7 @@ sub run {
   $locale = $::locale;
   $auth   = $::auth;
 
   $locale = $::locale;
   $auth   = $::auth;
 
+  $::request->{layout} = SL::Controller::Layout->new(style => 'admin');
   $::request->{layout}->use_stylesheet("lx-office-erp.css");
   $form->{favicon}    = "favicon.ico";
 
   $::request->{layout}->use_stylesheet("lx-office-erp.css");
   $form->{favicon}    = "favicon.ico";
 
index 9714d4ac3eebc2862920ac46a5288fc61e6fea39..77fe0978dceb314f0a9934c389c0bbc4ad6a73ca 100644 (file)
@@ -115,8 +115,9 @@ td.login {
 th.login {
        text-align: right;
 }
 th.login {
        text-align: right;
 }
-body.admin {
+div.admin {
        background-color: #FFFFE0;
        background-color: #FFFFE0;
+    padding: 8px;
        color: #000000;
 }
 body.menu {
        color: #000000;
 }
 body.menu {
index 87f17b8404822001b19c39946b77a3c8b822cea6..6b08408bf4b77b2e706a8985e3a7782c72d4c9eb 100644 (file)
@@ -69,9 +69,9 @@ th.login {
   text-align: right;
 }
 
   text-align: right;
 }
 
-body.admin {
-  background-color:#ffffff;
+div.admin {
   color: black;
   color: black;
+  margin: 8px;
 }
 
 .message_error_login {
 }
 
 .message_error_login {
index 652dff68b1b5df82d500ff53890ff8ce32304b16..543f228e2579c8c08231e8eb57b32537019433b6 100644 (file)
@@ -1,8 +1,6 @@
 [%- USE T8 %]
 [% USE HTML %]
 [% USE LxERP%]
 [%- USE T8 %]
 [% USE HTML %]
 [% USE LxERP%]
-<body class="admin">
-
  <script type='text/javascript'>
     $(function(){ document.getElementsById('rpw').focus();});
  </script>
  <script type='text/javascript'>
     $(function(){ document.getElementsById('rpw').focus();});
  </script>
index fbe5fd3fa8f2da375498710d91e97e7b5af630b5..756247a5f7e965f4949e77fe86c25917bc795cba 100644 (file)
@@ -1,7 +1,5 @@
 [%- USE T8 %]
 [%- USE HTML %]
 [%- USE T8 %]
 [%- USE HTML %]
-<body class="admin">
-
  <script type="text/javascript">
   <!--
       $(function(){
  <script type="text/javascript">
   <!--
       $(function(){
index 2bb2b132e2ae0f3c6c674fbd7b1b26eb362cb75a..bb29cf922bb3d6d7dc52b211fc0fe435944bb45e 100644 (file)
@@ -1,8 +1,6 @@
 [%- USE T8 %]
 [%- USE LxERP %]
 [%- USE HTML %]
 [%- 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>
  <h2>[% title %]</h2>
 
  <p>[% LxERP.t8('The dataset backup has been sent via email to #1.', to) | html %]</p>
index 2ed86145b9f833bb7b04b1c4c0ce7074f345eac8..3a106f5858b58f96b080eda002f1a8299fb58d8b 100644 (file)
@@ -1,7 +1,5 @@
 [%- USE T8 %]
 [%- USE HTML %]
 [%- USE T8 %]
 [%- USE HTML %]
-<body class="admin">
-
   <h2>[% title %]</h2>
 
   <form method="post" action="admin.pl">
   <h2>[% title %]</h2>
 
   <form method="post" action="admin.pl">
index fcadd5b837bb11a67dac57e0c5a4173e37969741..74e14670ab9a387f3e5df8e51dd0495104601701 100644 (file)
@@ -1,7 +1,5 @@
 [%- USE T8 %]
 [%- USE HTML %]
 [%- USE T8 %]
 [%- USE HTML %]
-<body class="admin">
-
   <h2>[% title %]</h2>
 
   <form method="post" action="admin.pl">
   <h2>[% title %]</h2>
 
   <form method="post" action="admin.pl">
index ee854cf6163337d1b5f410c972c648488994fb3e..f832912e4b69c597c39b87c3d419a07fef41ccad 100644 (file)
@@ -1,8 +1,6 @@
 [%- USE T8 %]
 [%- USE HTML %]
 [%- USE LxERP %]
 [%- USE T8 %]
 [%- USE HTML %]
 [%- USE LxERP %]
-<body class="admin">
-
   <h2>[% title %]</h2>
 
   <form method="post" action="admin.pl">
   <h2>[% title %]</h2>
 
   <form method="post" action="admin.pl">
index 83437e92c279e9dd53e85cac6dc66eca1cc50252..6926c9c279b223b8c346bc00bd69940413654425 100644 (file)
@@ -1,8 +1,6 @@
 [%- USE T8 %]
 [%- USE LxERP %]
 [%- USE HTML %]
 [%- USE T8 %]
 [%- USE LxERP %]
 [%- USE HTML %]
-<body class="admin">
-
   <h2>[% title %]</h2>
 
   <form method="post" action="admin.pl">
   <h2>[% title %]</h2>
 
   <form method="post" action="admin.pl">
index 17de8b1a37263b69fcfb753e6c5bbdf8149196c3..2e891ee6512168537314c420055b3438722dd3dc 100644 (file)
@@ -1,7 +1,5 @@
 [%- USE T8 %]
 [%- USE HTML %]
 [%- 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">
  <h2>[% title %]</h2>
  <p><a href="admin.pl?action=pg_database_administration">[% 'Back' | $T8 %]</a></p>
  <form method="post" action="admin.pl">
index 7b3c7aeba57a3bfa516d4bf57279f277f10353ac..8db61d90d967da561b7c1b3dd3a4b16d00b06c90 100644 (file)
@@ -1,8 +1,6 @@
 [%- USE T8 %]
 [%- USE HTML %]
 [%- USE L %]
 [%- 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">
  <script type="text/javascript" src="js/common.js"></script>
  <script type="text/javascript" src="js/jquery.js"></script>
  <script type="text/javascript">
index 664a6141b9569d47fdf99a0efd172995027fdf9f..02a47062cc002198b3f948e6717eecc3a083371f 100644 (file)
@@ -1,7 +1,5 @@
 [%- USE T8 %]
 [%- USE HTML %]
 [%- USE T8 %]
 [%- USE HTML %]
-<body class="admin">
-
  <h1>[% title %]</h1>
 
  <form method="post" action="admin.pl">
  <h1>[% title %]</h1>
 
  <form method="post" action="admin.pl">
index f110c70946119ef05e411c227b3428c6e9398fe7..7758fec06584ff044ceac65e6efbaeaa63ea9d55 100644 (file)
@@ -1,7 +1,5 @@
 [%- USE T8 %]
 [%- USE HTML %]
 [%- USE T8 %]
 [%- USE HTML %]
-<body class="admin">
-
   <script type='text/javascript'>
     $(function(){ document.getElementsByName('dbname')[0].focus();});
   </script>
   <script type='text/javascript'>
     $(function(){ document.getElementsByName('dbname')[0].focus();});
   </script>
index ede5e7ccdaea05013c640df6e732fba99cbe1aed..2cef6495fa46f8a3d2724d59a116022fc325eb93 100644 (file)
@@ -1,6 +1,4 @@
 [%- USE T8 %]
 [%- USE T8 %]
-<body class="admin">
-
  <h2>[% title %]</h2>
 
  <p>[%- 'The restoration process has started. Here\'s the output of the &quot;pg_restore&quot; command:' | $T8 %]</p>
  <h2>[% title %]</h2>
 
  <p>[%- 'The restoration process has started. Here\'s the output of the &quot;pg_restore&quot; command:' | $T8 %]</p>
index 2d65b39ecae8a650983b631bb8ff8b241a5d3dd1..80fdd56c43c620021f062e0ee5bfa9a6802efc18 100644 (file)
@@ -1,7 +1,5 @@
 [%- USE T8 %]
 [%- USE HTML %]
 [%- 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 %]
  <h2>[% title %]</h2>
  <p><a href="admin.pl?action=pg_database_administration">[% 'Back' | $T8 %]</a></p>
  [% IF ALL_UPDATED %]