Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 58ca9076

Von Hans Peter Schlaepfer vor mehr als 5 Jahren hinzugefügt

  • ID 58ca9076f0b605e39e5efd30489a4d066ff6c5f7
  • Vorgänger d80f175e
  • Nachfolger 2a97e655

Neues kivitendo Design Aenderungen in templates/webpages/admin/..

Unterschiede anzeigen:

templates/webpages/admin/adminlogin.html
1
[%- USE T8 %]
1
[% USE T8 %]
2 2
[% USE HTML %]
3
[% USE LxERP %][%- USE L -%]
4
 <center>
5
  <table class="login" border="3" cellpadding="20">
6
   <tr>
7
    <td class="login" align="center">
8
     <a href="http://www.kivitendo.de" target="_top" class="no-underlined-links"><img src="image/kivitendo.png" class='kivitendo-logo' border="0"></a>
9
     <h1>[% LxERP.t8('kivitendo v#1 administration', version) %]</h1>
10

  
11
[% IF error %]
12
     <p><span class="message_error_login">[% HTML.escape(error) %]</span></p>
13
[% END %]
14

  
15
     <p>
16

  
17
      <form method="post" action="controller.pl">
18
       [%- L.hidden_tag("action",   'Admin/login') %]
19
       [%- L.hidden_tag("do_login", 1) %]
20

  
21
       <table width="100%">
22
        <tr>
23
         <td align="center">
24
          <table>
25
           <tr>
26
            <th align="right">[% 'Password' | $T8 %]</th>
27
            <td>[%- L.input_tag("{AUTH}admin_password", '', type="password", class="login", id="admin_password", size="30", class="initial_focus") %]</td>
28
           </tr>
29
          </table>
30

  
31
          <br>
32

  
33
          [% L.submit_tag('dummy', LxERP.t8('Login')) %]
34

  
35
         </td>
36
        </tr>
37
       </table>
38
      </form>
39

  
40
    </td>
41
   </tr>
3
[% USE LxERP %]
4
[% USE L -%]
5
<div class="login" id="login">
6
  <h1>[% LxERP.t8('kivitendo v#1 administration', version) %]</h1>
7
     <div class="logo">
8
      <a href="http://www.kivitendo.de"><img src="image/kivitendo.png"></a>
9

  
10
      [% IF error %]
11
      <div class="message_error_login">[% HTML.escape(error) %]</div>
12
      [% END %]
13
    </div>
14

  
15

  
16
  <form method="post" action="controller.pl">
17
  [% L.hidden_tag("action",   'Admin/login') %]
18
  [% L.hidden_tag("do_login", 1) %]
19
  <div class="separate-form">
20
  <table class="tbl-horizontal login">
21
    <caption>[% 'Admin Login' | $T8 %]</caption>
22
    <colgroup><col class="wi-small"><col class="wi-normal"></colgroup>
23
 <tbody>
24
  <tr>
25
    <th>[% 'Password' | $T8 %]</th>
26
    <td>[%- L.input_tag("{AUTH}admin_password", '', type="password", class="initial_focus", id="admin_password") %]</td>
27
  </tr>
28
  <tr>
29
    <th></th>
30
    <td>[% L.submit_tag('dummy', LxERP.t8('Login')) %]</td>
31
  </tr>
32
  </tbody>
42 33
  </table>
34
  </div>
35
  </form>
43 36

  
44
  <p>
45
   <a href="controller.pl?action=LoginScreen/user_login" target="_top">[%- LxERP.t8('User login') %]</a>
46
   &nbsp;|&nbsp;
47
   <a href="doc/kivitendo-Dokumentation.pdf" target="_top">[%- LxERP.t8('Documentation') %]</a>
37
  <p style="text-align:center;">
38
    <a href="controller.pl?action=LoginScreen/user_login" target="_top">[%- LxERP.t8('User login') %]</a>
39
    &nbsp;|&nbsp;
40
    <a href="doc/kivitendo-Dokumentation.pdf" target="_top">[%- LxERP.t8('Documentation') %]</a>
48 41
  </p>
42
</div><!-- /.login -->
templates/webpages/admin/check_auth_database.html
1
[%- USE T8 %]
2
[%- USE HTML %][%- USE L -%][%- USE LxERP -%]
3

  
4
 <h1>[% title %]</h1>
5

  
6
 <form method="post" action="controller.pl">
7
  [%- L.hidden_tag("action", 'Admin/create_auth_db') %]
8
  [%- L.hidden_tag("{AUTH}admin_password", LXCONFIG.authentication.admin_password) %]
9

  
10
  <p>
11
   [% 'The database for user management and authentication does not exist. You can create let kivitendo create it with the following parameters:' | $T8 %]
12
  </p>
13

  
14
  <table border="0">
15
   <tr>
16
    <td>[% 'Host' | $T8 %]:</td>
17
    <td>[% HTML.escape(SELF.db_cfg.host) %]</td>
18
   </tr>
19
   <tr>
20
    <td>[% 'Port' | $T8 %]:</td>
21
    <td>[% HTML.escape(SELF.db_cfg.port) %]</td>
22
   </tr>
23
   <tr>
24
    <td>[% 'User name' | $T8 %]:</td>
25
    <td>[% HTML.escape(SELF.db_cfg.user) %]</td>
26
   </tr>
27
   <tr>
28
    <td>[% 'Database name' | $T8 %]:</td>
29
    <td>[% HTML.escape(SELF.db_cfg.db) %]</td>
30
   </tr>
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE L %]
4
[% USE LxERP %]
5

  
6
<h1>[% title %]</h1>
7

  
8
<form method="post" action="controller.pl">
9
  [% L.hidden_tag("action", 'Admin/create_auth_db') %]
10
  [% L.hidden_tag("{AUTH}admin_password", LXCONFIG.authentication.admin_password) %]
11

  
12
  <p>[% 'The database for user management and authentication does not exist. You can create let kivitendo create it with the following parameters:' | $T8 %]</p>
13

  
14
  <table class="tbl-horizontal">
15
    <tr>
16
      <th>[% 'Host' | $T8 %]:</th>
17
      <td>[% HTML.escape(SELF.db_cfg.host) %]</td>
18
    </tr>
19
    <tr>
20
      <th>[% 'Port' | $T8 %]:</th>
21
      <td>[% HTML.escape(SELF.db_cfg.port) %]</td>
22
    </tr>
23
    <tr>
24
      <th>[% 'User name' | $T8 %]:</th>
25
      <td>[% HTML.escape(SELF.db_cfg.user) %]</td>
26
    </tr>
27
    <tr>
28
      <th>[% 'Database name' | $T8 %]:</th>
29
      <td>[% HTML.escape(SELF.db_cfg.db) %]</td>
30
    </tr>
31 31
  </table>
32 32

  
33
  <p>
34
   [% 'Please enter the name of the database that will be used as the template for the new database:' | $T8 %]
35
  </p>
33
  <p>[% 'Please enter the name of the database that will be used as the template for the new database:' | $T8 %]</p>
36 34

  
37 35
  <p>[% 'Template database' | $T8 %]: [% L.input_tag('db_template', "template1") %]</p>
38 36

  
39
  <p>
40
   [% 'If the database user listed above does not have the right to create a database then enter the name and password of the superuser below:' | $T8 %]
41
  </p>
42

  
43
  <table border="0">
44
   <tr>
45
    <td>[% 'Superuser name' | $T8 %]:</td>
46
    <td>[% L.input_tag('db_superuser', AUTH.DB_config.user, class="initial_focus") %]</td>
47
   </tr>
48

  
49
   <tr>
50
    <td>[% 'Password' | $T8 %]:</td>
51
    <td>[% L.input_tag('db_superuser_password', AUTH.DB_config.password, type='password') %]</td>
52
   </tr>
37
  <p>[% 'If the database user listed above does not have the right to create a database then enter the name and password of the superuser below:' | $T8 %]</p>
38

  
39
  <table class="tbl-horizontal">
40
    <tr>
41
      <th>[% 'Superuser name' | $T8 %]:</th>
42
      <td>[% L.input_tag('db_superuser', AUTH.DB_config.user, class="initial_focus") %]</td>
43
    </tr>
44
    <tr>
45
      <th>[% 'Password' | $T8 %]:</th>
46
      <td>[% L.input_tag('db_superuser_password', AUTH.DB_config.password, type='password') %]</td>
47
    </tr>
53 48
  </table>
54 49

  
55 50
  [% L.submit_tag("dummy", LxERP.t8("Create Dataset")) %]
56 51
  [% L.button_tag("history.back()", LxERP.t8("Back")) %]
57
 </form>
52
</form>
53

  
templates/webpages/admin/check_auth_tables.html
1
[%- USE T8 %]
2
[%- USE HTML %][%- USE LxERP -%][%- USE L -%]
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE LxERP %]
4
[% USE L %]
3 5

  
4
 <h1>[% title %]</h1>
6
<h1>[% title %]</h1>
5 7

  
6
 <p>
7
  [% 'The tables for user management and authentication do not exist. They will be created in the next step in the following database:' | $T8 %]
8
 </p>
8
<p>[% 'The tables for user management and authentication do not exist. They will be created in the next step in the following database:' | $T8 %]</p>
9 9

  
10
 <table border="0">
10
<table>
11 11
  <tr>
12
   <td>[% 'Host' | $T8 %]:</td>
13
   <td>[% HTML.escape(SELF.db_cfg.host) %]</td>
12
    <td>[% 'Host' | $T8 %]:</td>
13
    <td>[% HTML.escape(SELF.db_cfg.host) %]</td>
14 14
  </tr>
15 15
  <tr>
16
   <td>[% 'Port' | $T8 %]:</td>
17
   <td>[% HTML.escape(SELF.db_cfg.port) %]</td>
16
    <td>[% 'Port' | $T8 %]:</td>
17
    <td>[% HTML.escape(SELF.db_cfg.port) %]</td>
18 18
  </tr>
19 19
  <tr>
20
   <td>[% 'User name' | $T8 %]:</td>
21
   <td>[% HTML.escape(SELF.db_cfg.user) %]</td>
20
    <td>[% 'User name' | $T8 %]:</td>
21
    <td>[% HTML.escape(SELF.db_cfg.user) %]</td>
22 22
  </tr>
23 23
  <tr>
24
   <td>[% 'Database name' | $T8 %]:</td>
25
   <td>[% HTML.escape(SELF.db_cfg.db) %]</td>
24
    <td>[% 'Database name' | $T8 %]:</td>
25
    <td>[% HTML.escape(SELF.db_cfg.db) %]</td>
26 26
  </tr>
27
 </table>
27
</table>
28 28

  
29
 <p>
30
  [% 'If you want to change any of these parameters then press the "Back" button, edit the file "config/kivitendo.conf" and login into the admin module again.' | $T8 %]
31
 </p>
32

  
33
 <form method="post" action="controller.pl">
34
  [%- L.hidden_tag("action", 'Admin/create_auth_tables') %]
35
  [%- L.hidden_tag("{AUTH}admin_password", LXCONFIG.authentication.admin_password) %]
29
<p>[% 'If you want to change any of these parameters then press the "Back" button, edit the file "config/kivitendo.conf" and login into the admin module again.' | $T8 %]</p>
36 30

  
31
<form method="post" action="controller.pl">
32
  [% L.hidden_tag("action", 'Admin/create_auth_tables') %]
33
  [% L.hidden_tag("{AUTH}admin_password", LXCONFIG.authentication.admin_password) %]
37 34
  [% L.submit_tag("dummy", LxERP.t8("Create tables")) %]
38 35
  [% L.button_tag("history.back()", LxERP.t8("Back")) %]
39
 </form>
36
</form>
37

  
templates/webpages/admin/create_dataset.html
1
[%- USE HTML %][%- USE LxERP -%][%- USE T8 -%][%- USE L -%]
1
[% USE HTML %]
2
[% USE LxERP %]
3
[% USE T8 %]
4
[% USE L %]
2 5

  
3 6
[% INCLUDE 'common/flash.html' %]
4 7

  
5 8
<h1>[% HTML.escape(title) %]</h1>
6 9

  
7 10
<form method="post" action="controller.pl">
8
 <p>
9
  [% LxERP.t8('You can either create a new database or chose an existing database.') %]
10
  [% LxERP.t8('In the latter case the tables needed by kivitendo will be created in that database.') %]
11
 </p>
12 11

  
13
 [% IF !superuser.have_privileges %]
12
<div class="wrapper">
13

  
14 14
  <p>
15
   [% LxERP.t8("Database superuser privileges are required for parts of the database modifications.") %]
16
   [% LxERP.t8("Please provide corresponding credentials.") %]
15
    [% LxERP.t8('You can either create a new database or chose an existing database.') %]
16
    [% LxERP.t8('In the latter case the tables needed by kivitendo will be created in that database.') %]
17 17
  </p>
18
 [% END %]
19

  
20
 <table border="0">
21
  <tr>
22
   <th valign="top" align="right" nowrap>[% LxERP.t8('Existing Datasets') %]</th>
23
   <td valign="top">[% FOREACH db = SELF.all_dbsources %][% UNLESS loop.first %] [% END %][[% HTML.escape(db) %]][% END %]</td>
24
  </tr>
25

  
26
  <tr>
27
   <th align="right" nowrap>[% LxERP.t8('Create Dataset') %]</th>
28
   <td>[% L.input_tag('db', FORM.db, class="initial_focus") %]</td>
29
  </tr>
30

  
18
 
31 19
  [% IF !superuser.have_privileges %]
32
   <tr>
33
    <th align="right" nowrap>[% LxERP.t8("Database Superuser") %]</th>
34
    <td>[% L.input_tag("database_superuser_user", superuser.username) %]</td>
35
   </tr>
36

  
37
   <tr>
38
    <th align="right" nowrap>[% LxERP.t8("Password") %]</th>
39
    <td>[% L.input_tag("database_superuser_password", superuser.password, type="password") %]</td>
40
   </tr>
20
    <p>
21
      [% LxERP.t8("Database superuser privileges are required for parts of the database modifications.") %]
22
      [% LxERP.t8("Please provide corresponding credentials.") %]
23
    </p>
41 24
  [% END %]
42 25

  
43
  <tr>
44
   <td colspan="1"> </td>
45
   <td><hr size="1" noshade></td>
46
  </tr>
47

  
48
  <tr>
49
   <th align="right" nowrap>[% LxERP.t8('Default currency') %]</th>
50
   <td>[% L.input_tag('defaultcurrency', FORM.defaultcurrency) %]</td>
51
  </tr>
52

  
53
  <tr>
54
   <th align="right" nowrap>[% LxERP.t8('Precision') %]</th>
55
   <td>[% L.input_tag('precision_as_number', LxERP.format_amount(FORM.precision, 2)) %] [% LxERP.t8('Precision Note') %]</td>
56
  </tr>
57

  
58
  <tr>
59
   <th valign="top" align="right" nowrap>[% LxERP.t8('Create Chart of Accounts') %]</th>
60
   <td>[% L.select_tag('chart', SELF.all_charts, default=(FORM.chart), onchange='comment_selected_chart(this.value)') %]</td>
61
  </tr>
62

  
63
  <tr>
64
   <th valign="top" align="right" nowrap>[% LxERP.t8('Accounting method') %]</th>
65
   <td>[% L.select_tag('accounting_method', SELF.all_accounting_methods, title_key='name', default=(FORM.accounting_method)) %]</td>
66
  </tr>
67

  
68
  <tr>
69
   <th valign="top" align="right" nowrap>[% LxERP.t8('Inventory system') %]</th>
70
   <td>[% L.select_tag('inventory_system', SELF.all_inventory_systems, title_key='name', default=(FORM.inventory_system)) %]</td>
71
  </tr>
72

  
73
  <tr>
74
   <th valign="top" align="right" nowrap>[% LxERP.t8('Profit determination') %]</th>
75
   <td>[% L.select_tag('profit_determination', SELF.all_profit_determinations, title_key='name', default=(FORM.profit_determination)) %]</td>
76
  </tr>
77
 </table>
78

  
79
 [% L.hidden_tag("dbhost", FORM.dbhost) %]
80
 [% L.hidden_tag("dbport", FORM.dbport) %]
81
 [% L.hidden_tag("dbuser", FORM.dbuser) %]
82
 [% L.hidden_tag("dbpasswd", FORM.dbpasswd) %]
83
 [% L.hidden_tag("dbdefault", FORM.dbdefault) %]
84
 [% L.hidden_tag("action", "Admin/do_create_dataset") %]
85
 [% L.hidden_tag("feature_balance", FORM.feature_balance) %]
86
 [% L.hidden_tag("feature_datev", FORM.feature_datev) %]
87
 [% L.hidden_tag("feature_erfolgsrechnung", FORM.feature_erfolgsrechnung) %]
88
 [% L.hidden_tag("feature_eurechnung", FORM.feature_eurechnung) %]
89
 [% L.hidden_tag("feature_ustva", FORM.feature_ustva) %]
90

  
91

  
92
 <hr size="3" noshade>
93

  
94
 <div>
95
  [% L.submit_tag('dummy', LxERP.t8('Create Dataset')) %]
96
 </div>
26
 
27
  <table class="tbl-horizontal">
28
    <tbody>
29
      <tr>
30
        <th>[% LxERP.t8('Existing Datasets') %]</th>
31
        <td>[% FOREACH db = SELF.all_dbsources %][% UNLESS loop.first %] [% END %][[% HTML.escape(db) %]][% END %]</td>
32
      </tr>
33
      <tr>
34
        <th>[% LxERP.t8('Create Dataset') %]</th>
35
        <td>[% L.input_tag('db', FORM.db, class="initial_focus") %]</td>
36
      </tr>
37
      [% IF !superuser.have_privileges %] 
38
        <tr>
39
          <th>[% LxERP.t8("Database Superuser") %]</th>
40
          <td>[% L.input_tag("database_superuser_user", superuser.username) %]</td>
41
        </tr>
42
        <tr>
43
          <th>[% LxERP.t8("Password") %]</th>
44
          <td>[% L.input_tag("database_superuser_password", superuser.password, type="password") %]</td>
45
        </tr>
46
      [% END %] 
47
      <tr>
48
        <th>[% LxERP.t8('Default currency') %]</th>
49
        <td>[% L.input_tag('defaultcurrency', FORM.defaultcurrency) %]</td>
50
      </tr>
51
      <tr>
52
        <th>[% LxERP.t8('Precision') %]</th>
53
        <td>[% L.input_tag('precision_as_number', LxERP.format_amount(FORM.precision, 2)) %] [% LxERP.t8('Precision Note') %]</td>
54
      </tr>
55
      <tr>
56
        <th>[% LxERP.t8('Create Chart of Accounts') %]</th>
57
        <td>[% L.select_tag('chart', SELF.all_charts, default=(FORM.chart), onchange='comment_selected_chart(this.value)') %]</td>
58
      </tr>
59
      <tr>
60
        <th>[% LxERP.t8('Accounting method') %]</th>
61
        <td>[% L.select_tag('accounting_method', SELF.all_accounting_methods, title_key='name', default=(FORM.accounting_method)) %]</td>
62
      </tr>
63
      <tr>
64
        <th>[% LxERP.t8('Inventory system') %]</th>
65
        <td>[% L.select_tag('inventory_system', SELF.all_inventory_systems, title_key='name', default=(FORM.inventory_system)) %]</td>
66
      </tr>
67
      <tr>
68
        <th>[% LxERP.t8('Profit determination') %]</th>
69
        <td>[% L.select_tag('profit_determination', SELF.all_profit_determinations, title_key='name', default=(FORM.profit_determination)) %]</td>
70
      </tr>
71
    </tbody>
72
  </table>
73

  
74
  [% L.hidden_tag("dbhost", FORM.dbhost) %]
75
  [% L.hidden_tag("dbport", FORM.dbport) %]
76
  [% L.hidden_tag("dbuser", FORM.dbuser) %]
77
  [% L.hidden_tag("dbpasswd", FORM.dbpasswd) %]
78
  [% L.hidden_tag("dbdefault", FORM.dbdefault) %]
79
  [% L.hidden_tag("action", "Admin/do_create_dataset") %]
80
  [% L.hidden_tag("feature_balance", FORM.feature_balance) %]
81
  [% L.hidden_tag("feature_datev", FORM.feature_datev) %]
82
  [% L.hidden_tag("feature_erfolgsrechnung", FORM.feature_erfolgsrechnung) %]
83
  [% L.hidden_tag("feature_eurechnung", FORM.feature_eurechnung) %]
84
  [% L.hidden_tag("feature_ustva", FORM.feature_ustva) %]
85

  
86
  <div class="buttons">
87
    [% L.submit_tag('dummy', LxERP.t8('Create Dataset')) %]
88
  </div>
89

  
90
</div><!-- /.wrapper -->
97 91

  
98 92
</form>
99 93

  
100
<script type="text/javascript">
101
 <!--
102

  
103
function comment_selected_chart(s) {
104
  if (s == 'Austria') {
105
    alert("SKR07 Austria ist noch Stand 2002." +
106
         "\n" +
107
         "Die Buchungsgruppen sind nicht korrekt vorkonfiguriert" +
108
         "\n" +
109
         "fuer Kunden im Ausland." +
110
         "\n" +
111
         "Hinweis vom 20.09.2011");
94
<script type="text/javascript"><!--
95

  
96
  function comment_selected_chart(s) {
97
    if (s == 'Austria') {
98
      alert("SKR07 Austria ist noch Stand 2002." +
99
           "\n" +
100
           "Die Buchungsgruppen sind nicht korrekt vorkonfiguriert" +
101
           "\n" +
102
           "fuer Kunden im Ausland." +
103
           "\n" +
104
           "Hinweis vom 20.09.2011");
105
    }
106
    return true;
112 107
  }
113
  return true;
114
}
115 108

  
116
function select_country_defaults(country) {
117
  if (/^CH/.test(country)) {
118
    document.getElementById('defaultcurrency').value='CHF';
119
    document.getElementById('precision').value='0.05';
120
    document.getElementById('chart').value='Switzerland-deutsch-MWST-2014';
121
    document.getElementById('accounting_method').value='accrual';
122
    document.getElementById('inventory_system').value='periodic';
123
    document.getElementById('profit_determination').value='balance';
124
  } else {
125
    document.getElementById('defaultcurrency').value='EUR';
126
    document.getElementById('precision').value='0.01';
127
    document.getElementById('chart').value='Germany-DATEV-SKR03EU';
128
    document.getElementById('accounting_method').value='cash';
129
    document.getElementById('inventory_system').value='periodic';
130
    document.getElementById('profit_determination').value='income';
109
  function select_country_defaults(country) {
110
    if (/^CH/.test(country)) {
111
      document.getElementById('defaultcurrency').value='CHF';
112
      document.getElementById('precision').value='0.05';
113
      document.getElementById('chart').value='Switzerland-deutsch-MWST-2014';
114
      document.getElementById('accounting_method').value='accrual';
115
      document.getElementById('inventory_system').value='periodic';
116
      document.getElementById('profit_determination').value='balance';
117
    } else {
118
      document.getElementById('defaultcurrency').value='EUR';
119
      document.getElementById('precision').value='0.01';
120
      document.getElementById('chart').value='Germany-DATEV-SKR03EU';
121
      document.getElementById('accounting_method').value='cash';
122
      document.getElementById('inventory_system').value='periodic';
123
      document.getElementById('profit_determination').value='income';
124
    }
125
    return true;
131 126
  }
132
  return true;
133
}
134 127

  
135
   -->
136
</script>
128
--></script>
templates/webpages/admin/dbadmin.html
1
[%- USE HTML %][%- USE LxERP -%][%- USE L -%]
1
[% USE HTML %]
2
[% USE LxERP %]
3
[% USE L %]
2 4

  
3 5
[% INCLUDE 'common/flash.html' %]
4 6

  
5 7
<h1>[% LxERP.t8("Database login (#1)", title) %]</h1>
6 8

  
7
<p>[% LxERP.t8('Here you only provide the credentials for logging into the database.') %] [% LxERP.t8('Nothing will be created or deleted at this stage!') %]</p>
8

  
9
<div class="wrapper">
9 10
<form method="post" action="controller.pl">
10
 <table>
11
  <tr>
12
   <th align="right">[% LxERP.t8('Host') %]</th>
13
   <td>[% L.input_tag('dbhost', dbhost, size=30, class="initial_focus") %]</td>
14
   <th align="right">[% LxERP.t8('Port') %]</th>
15
   <td>[% L.input_tag('dbport', dbport, size=6) %]</td>
16
  </tr>
17

  
18
  <tr>
19
   <th align="right">[% LxERP.t8('Database User') %]</th>
20
   <td>[% L.input_tag("dbuser", dbuser, size=30) %]</td>
21
   <th align="right">[% LxERP.t8('Password') %]</th>
22
   <td>[% L.input_tag("dbpasswd", dbpasswd, type='password', size=30) %]</td>
23
  </tr>
24

  
25
  <tr>
26
   <th align="right">[% LxERP.t8('Database template') %]</th>
27
   <td>[% L.input_tag("dbdefault", dbdefault, size=30) %]</td>
28
  </tr>
29
 </table>
30

  
31
 [% L.hidden_tag("action", 'Admin/dispatch') %]
32

  
33
 <p>
34
  [% L.submit_tag('action_' _ next_action, LxERP.t8('Login')) %]
35
 </p>
11
<p>
12
  [% LxERP.t8('Here you only provide the credentials for logging into the database.') %]
13
  [% LxERP.t8('Nothing will be created or deleted at this stage!') %]
14
</p>
15

  
16
<table class="tbl-horizontal">
17
  <tbody>
18
    <tr>
19
      <th>[% LxERP.t8('Host') %]</th>
20
      <td>[% L.input_tag('dbhost', dbhost, size=30, class="initial_focus wi-wide") %]</td>
21
    </tr>
22
    <tr>
23
      <th>[% LxERP.t8('Port') %]</th>
24
      <td>[% L.input_tag('dbport', dbport, class="wi-verysmall") %]</td>
25
    </tr>
26
    <tr>
27
      <th>[% LxERP.t8('Database User') %]</th>
28
      <td>[% L.input_tag("dbuser", dbuser, class="wi-wide") %]</td>
29
    </tr>
30
    <tr>
31
      <th>[% LxERP.t8('Password') %]</th>
32
      <td>[% L.input_tag("dbpasswd", dbpasswd, type='password', class="wi-wide") %]</td>
33
    </tr>
34
    <tr>
35
      <th>[% LxERP.t8('Database template') %]</th>
36
      <td>[% L.input_tag("dbdefault", dbdefault, class="wi-wide") %]</td>
37
    </tr>
38
  </tbody>
39
</table>
40

  
41
[% L.hidden_tag("action", 'Admin/dispatch') %]
42

  
43
<div class="buttons">[% L.submit_tag('action_' _ next_action, LxERP.t8('Login')) %]</div>
44

  
45
</div><!-- /.wrapper -->
36 46
</form>
templates/webpages/admin/delete_dataset.html
1
[%- USE HTML %][%- USE LxERP -%][%- USE L -%][%- USE JavaScript -%]
1
[% USE HTML %]
2
[% USE LxERP %]
3
[% USE L %]
4
[% USE JavaScript %]
2 5

  
3 6
[% INCLUDE 'common/flash.html' %]
4 7

  
5 8
<h1>[% HTML.escape(title) %]</h1>
6 9

  
7 10
<p>
8
 [% LxERP.t8('You can only delete datasets that are not in use.') %]
9
 [% LxERP.t8('If you want to delete such a dataset you have to edit the client(s) that are using the dataset in question and have them use another dataset.') %]
11
  [% LxERP.t8('You can only delete datasets that are not in use.') %]
12
  [% LxERP.t8('If you want to delete such a dataset you have to edit the client(s) that are using the dataset in question and have them use another dataset.') %]
10 13
</p>
11 14

  
12 15
[% IF SELF.all_dbsources.size %]
13 16

  
14 17
<form method="post" action="controller.pl">
15
 <p>
18
<p>
16 19
  [% LxERP.t8('Please select the dataset you want to delete:') %]
17 20
  [% L.select_tag('db', SELF.all_dbsources, class="initial_focus") %]
18
 </p>
21
</p>
19 22

  
20
 [% L.hidden_tag("dbhost", FORM.dbhost) %]
21
 [% L.hidden_tag("dbport", FORM.dbport) %]
22
 [% L.hidden_tag("dbuser", FORM.dbuser) %]
23
 [% L.hidden_tag("dbpasswd", FORM.dbpasswd) %]
24
 [% L.hidden_tag("dbdefault", FORM.dbdefault) %]
25
 [% L.hidden_tag("action", "Admin/do_delete_dataset") %]
23
[% L.hidden_tag("dbhost", FORM.dbhost) %]
24
[% L.hidden_tag("dbport", FORM.dbport) %]
25
[% L.hidden_tag("dbuser", FORM.dbuser) %]
26
[% L.hidden_tag("dbpasswd", FORM.dbpasswd) %]
27
[% L.hidden_tag("dbdefault", FORM.dbdefault) %]
28
[% L.hidden_tag("action", "Admin/do_delete_dataset") %]
26 29

  
27
 <div>
28
  [% L.submit_tag('dummy', LxERP.t8('Delete Dataset'), id='submit') %]
29
 </div>
30
<div class="buttons">[% L.submit_tag('dummy', LxERP.t8('Delete Dataset'), id='submit') %]</div>
30 31

  
31 32
</form>
32 33

  
33
<script type="text/javascript">
34
 <!--
34
<script type="text/javascript"><!--
35 35

  
36 36
var used_dbsources = {[% FOREACH client = SELF.all_clients %]
37 37
  "[% JavaScript.escape(client.dbhost || 'localhost') %]:[% JavaScript.escape(client.dbport || '5432') %]:[% JavaScript.escape(client.dbname || 'localhost') %]": "[% JavaScript.escape(client.name) %]"[% UNLESS loop.last %],[% END %][% END %]
......
46 46
  });
47 47
});
48 48

  
49
   -->
50
</script>
49
--></script>
51 50

  
52 51
[% END %]
templates/webpages/admin/edit_client.html
1
[%- USE HTML %]
2
[%- USE L %][%- USE LxERP -%]
1
[% USE HTML %]
2
[% USE L %]
3
[% USE LxERP %]
3 4

  
4
[%- INCLUDE 'common/flash.html' %]
5
[% INCLUDE 'common/flash.html' %]
5 6

  
6 7
<h1>[% HTML.escape(title) %]</h1>
7 8

  
8 9
<form method="post" action="controller.pl" id="form">
9
 [% L.hidden_tag("client.id", SELF.client.id) %]
10
 [% L.hidden_tag("action", "") %]
11

  
12
 <h2>[%- LxERP.t8("Settings") %]</h2>
13

  
14
 <table>
15
[%- IF SELF.client.id %]
16
  <tr>
17
   <th align="right">[% LxERP.t8('Database ID') %]</th>
18
   <td>[%- HTML.escape(SELF.client.id) %]</td>
19
  </tr>
20
[%- END %]
21

  
22
  <tr>
23
   <th align="right">[% LxERP.t8('Client name') %]</th>
24
   <td>[% L.input_tag("client.name", SELF.client.name, class="initial_focus") %]</td>
25
  </tr>
26

  
27
  <tr>
28
   <th align="right">[% LxERP.t8('Default client') %]</th>
29
   <td>[% L.checkbox_tag("client.is_default", label=LxERP.t8('This is the client to be selected by default on the login screen.'), checked=SELF.client.is_default) %]</td>
30
  </tr>
31

  
32
  <tr>
33
   <th align="right">[% LxERP.t8('Database name') %]</th>
34
   <td>[% L.input_tag("client.dbname", SELF.client.dbname, class="contains_dbsettings") %]</td>
35
  </tr>
36

  
37
  <tr>
38
   <th align="right">[% LxERP.t8('Database host and port') %]</th>
39
   <td>
40
    [% L.input_tag("client.dbhost", SELF.client.dbhost, class="contains_dbsettings") %]
41
    [% L.input_tag("client.dbport", SELF.client.dbport, class="contains_dbsettings", size=6) %]
42
   </td>
43
  </tr>
44

  
45
  <tr>
46
   <th align="right">[% LxERP.t8('Database user and password') %]</th>
47
   <td>
48
    [% L.input_tag("client.dbuser",   SELF.client.dbuser, class="contains_dbsettings") %]
49
    [% L.input_tag("client.dbpasswd", SELF.client.dbpasswd, class="contains_dbsettings", type="password") %]
50
   </td>
51
  </tr>
52

  
53
  <tr>
54
   <th align="right">[% LxERP.t8("Run task server for this client with the following user") %]</th>
55
   <td>
56
    [% L.select_tag("client.task_server_user_id", SELF.all_users, with_empty=1, empty_title=LxERP.t8("Do not run the task server for this client"), title_key="login", default=SELF.client.task_server_user_id) %]
57
   </td>
58
  </tr>
59
 </table>
60

  
61
 <div>
62
  [% L.button_tag("test_database_connectivity()", LxERP.t8("Test database connectivity")) %]
63
 </div>
64

  
65
 <h2>[%- LxERP.t8("Access to clients") %]</h2>
10
[% L.hidden_tag("client.id", SELF.client.id) %]
11
[% L.hidden_tag("action", "") %]
12

  
13
<div class="wrapper">
14

  
15
<table class="tbl-horizontal">
16
  <caption>[% LxERP.t8("Settings") %]</caption>
17
  <colgroup><col class="wi-normal"><col class="wi-normal"></colgroup>
18
  <tbody>
19
    [% IF SELF.client.id %]
20
    <tr>
21
      <th>[% LxERP.t8('Database ID') %]</th>
22
      <td>[% HTML.escape(SELF.client.id) %]</td>
23
    </tr>
24
    [% END %]
25
    <tr>
26
      <th>[% LxERP.t8('Client name') %]</th>
27
      <td>[% L.input_tag("client.name", SELF.client.name, class="initial_focus") %]</td>
28
    </tr>
29
    <tr>
30
      <th>[% LxERP.t8('Default client') %]</th>
31
      <td>[% L.checkbox_tag("client.is_default", label=LxERP.t8('This is the client to be selected by default on the login screen.'), checked=SELF.client.is_default) %]</td>
32
    </tr>
33
    <tr>
34
      <th>[% LxERP.t8('Database name') %]</th>
35
      <td>[% L.input_tag("client.dbname", SELF.client.dbname, class="contains_dbsettings") %]</td>
36
    </tr>
37
    <tr>
38
      <th>[% LxERP.t8('Database host and port') %]</th>
39
      <td> [% L.input_tag("client.dbhost", SELF.client.dbhost, class="contains_dbsettings") %] [% L.input_tag("client.dbport", SELF.client.dbport, class="contains_dbsettings", size=6) %] </td>
40
    </tr>
41
    <tr>
42
      <th>[% LxERP.t8('Database user and password') %]</th>
43
      <td>[% L.input_tag("client.dbuser", SELF.client.dbuser, class="contains_dbsettings") %] [% L.input_tag("client.dbpasswd", SELF.client.dbpasswd, class="contains_dbsettings", type="password") %] </td>
44
    </tr>
45
    <tr>
46
      <th>[% LxERP.t8("Run task server for this client with the following user") %]</th>
47
      <td>[% L.select_tag("client.task_server_user_id", SELF.all_users, with_empty=1, empty_title=LxERP.t8("Do not run the task server for this client"), title_key="login", default=SELF.client.task_server_user_id) %] </td>
48
    </tr>
49
  </tbody>
50
</table>
51

  
52
</div><!-- /.cols -->
53

  
54
<div class="buttons">[% L.button_tag("test_database_connectivity()", LxERP.t8("Test database connectivity")) %] </div>
55

  
56

  
57
<div class="wrapper">
58

  
59
<div class="col">
60

  
61
<h3>[% LxERP.t8("Access to clients") %]</h3>
66 62

  
67 63
[% IF SELF.all_users.size %]
68
 <p>
69
  [%- LxERP.t8("The following users will have access to this client") %]:
70
 </p>
64
  <p> [% LxERP.t8("The following users will have access to this client") %]: </p>
65
  <div class="clearfix">
66
    [% L.select_tag("client.users[]", SELF.all_users, id="client_users", title_key="login", default=SELF.client.users, default_value_key='id', multiple=1) %]
67
    [% L.multiselect2side("client_users", labelsx => LxERP.t8("All users"), labeldx => LxERP.t8("Users that have access to this client")) %]
68
  </div>
71 69

  
72
 <div class="clearfix">
73
  [% L.select_tag("client.users[]", SELF.all_users, id="client_users", title_key="login", default=SELF.client.users, default_value_key='id', multiple=1) %]
74
  [% L.multiselect2side("client_users", labelsx => LxERP.t8("All users"), labeldx => LxERP.t8("Users that have access to this client")) %]
75
 </div>
70
[% ELSE %]
71
  <p> [% LxERP.t8("No users have been created yet.") %] </p>
72
[% END %]
76 73

  
77
[%- ELSE %]
78
 <p>
79
  [% LxERP.t8("No users have been created yet.") %]
80
 </p>
81
[%- END %]
74
</div>
82 75

  
83
 <h2>[%- LxERP.t8("Group assignment") %]</h2>
76

  
77
<div class="col">
78

  
79
<h3>[% LxERP.t8("Group assignment") %]</h3>
84 80

  
85 81
[% IF SELF.all_groups.size %]
86
 <p>
87
  [%- LxERP.t8("The following groups are valid for this client") %]:
88
 </p>
89

  
90
 <div class="clearfix">
91
  [% L.select_tag("client.groups[]", SELF.all_groups, id="client_groups", title_key="name", default=SELF.client.groups, default_value_key='id', multiple=1) %]
92
  [% L.multiselect2side("client_groups", labelsx => LxERP.t8("All groups"), labeldx => LxERP.t8("Groups valid for this client")) %]
93
 </div>
94

  
95
[%- ELSE %]
96
 <p>
97
  [% LxERP.t8("No groups have been created yet.") %]
98
 </p>
99
[%- END %]
100

  
101
<hr size="3" noshade>
102

  
103
<p>
104
 [% L.link(SELF.url_for(action="show"), LxERP.t8("Back")) %]
105

  
106
 [% L.button_tag("submit_with_action('save_client')", LxERP.t8("Save")) %]
107
 [% IF SELF.client.id %]
108
  [% L.button_tag("save_as_new()", LxERP.t8("Save as new")) %]
109
  [% L.button_tag("submit_with_action('delete_client')", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %]
110
 [%- END %]
111
</p>
82
  <p> [% LxERP.t8("The following groups are valid for this client") %]: </p>
83
  <div class="clearfix">
84
    [% L.select_tag("client.groups[]", SELF.all_groups, id="client_groups", title_key="name", default=SELF.client.groups, default_value_key='id', multiple=1) %]
85
    [% L.multiselect2side("client_groups", labelsx => LxERP.t8("All groups"), labeldx => LxERP.t8("Groups valid for this client")) %]
86
  </div>
87

  
88
[% ELSE %]
89
  <p> [% LxERP.t8("No groups have been created yet.") %] </p>
90
[% END %]
91

  
92
</div>
93

  
94
</div><!-- /.cols -->
95

  
96

  
97
<div class="buttons">
98
  [% L.link(SELF.url_for(action="show"), LxERP.t8("Back"), class="button neutral") %]
99
  [% L.button_tag("submit_with_action('save_client')", LxERP.t8("Save")) %]
100
  [% IF SELF.client.id %]
101
    [% L.button_tag("save_as_new()", LxERP.t8("Save as new")) %]
102
    [% L.button_tag("submit_with_action('delete_client')", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %]
103
  [% END %]
104
</div>
112 105

  
113 106
</form>
114 107

  
templates/webpages/admin/edit_group.html
1
[%- USE HTML %]
2
[%- USE L %][%- USE LxERP -%]
1
[% USE HTML %]
2
[% USE L %]
3
[% USE LxERP %]
3 4

  
4
[%- INCLUDE 'common/flash.html' %]
5
[% INCLUDE 'common/flash.html' %]
5 6

  
6 7
<h1>[% HTML.escape(title) %]</h1>
7 8

  
8
<form method="post" action="controller.pl" id="form">
9
 [% L.hidden_tag("group.id", SELF.group.id) %]
10
 [% L.hidden_tag("action", "") %]
11

  
12
 <h2>[%- LxERP.t8("Settings") %]</h2>
13

  
14
 <table>
15
  <tr>
16
   <th align="right">[% LxERP.t8('Name') %]</th>
17
   <td>[% L.input_tag("group.name", SELF.group.name, class="initial_focus") %]</td>
18
  </tr>
19

  
20
  <tr>
21
   <th align="right">[% LxERP.t8('Description') %]</th>
22
   <td>[% L.input_tag("group.description", SELF.group.description) %]</td>
23
  </tr>
24
 </table>
25

  
26
 <h2>[% LxERP.t8("Access rights") %]</h2>
27

  
28
 [% SET granted_rights = SELF.group.rights_map %]
29 9

  
30
 [%- FOREACH section = SELF.all_rights %]
31
  [% SET section_number = loop.count %]
32
  [% SET num_checked = 0 %]
33
  [% FOREACH right = section.rights %][% SET name = right.name %][% IF granted_rights.$name %][% SET num_checked = num_checked + 1 %][% END %][% END %]
34
  <h3>[% L.checkbox_tag('dummy' _ section_number, label=LxERP.t8('Section "#1"', section.description), checkall='.checkallgroup' _ section_number, checked=(num_checked == section.rights.size)) %]</h3>
35

  
36
  <div class="clearfix">
10
<form method="post" action="controller.pl" id="form">
11
[% L.hidden_tag("group.id", SELF.group.id) %]
12
[% L.hidden_tag("action", "") %]
13

  
14
<div class="wrapper">
15

  
16
<div class="col wi-wide">
17
<h2>[% LxERP.t8("Settings") %]</h2>
18

  
19
<table class="tbl-horizontal">
20
  <tbody>
21
    <tr>
22
      <th>[% LxERP.t8('Name') %]</th>
23
      <td>[% L.input_tag("group.name", SELF.group.name, class="initial_focus") %]</td>
24
    </tr>
25
    <tr>
26
      <th>[% LxERP.t8('Description') %]</th>
27
      <td>[% L.input_tag("group.description", SELF.group.description) %]</td>
28
    </tr>
29
  </tbody>
30
</table>
31

  
32
<h2>[% LxERP.t8("Access rights") %]</h2>
33

  
34
[% SET granted_rights = SELF.group.rights_map %]
35

  
36
[% FOREACH section = SELF.all_rights %]
37
[% SET section_number = loop.count %]
38
[% SET num_checked = 0 %]
39
[% FOREACH right = section.rights %]
40
  [% SET name = right.name %]
41
  [% IF granted_rights.$name %][% SET num_checked = num_checked + 1 %][% END %]
42
[% END %]
43

  
44
<div class="boxes">
45
<h3 title="[% LxERP.t8('Select/Deselect all') %]">[% L.checkbox_tag('dummy' _ section_number, label=LxERP.t8('Section "#1"', section.description), checkall='.checkallgroup' _ section_number, checked=(num_checked == section.rights.size), title=LxERP.t8("Select/Deselect")) %]</h3>
37 46
   [% FOREACH right = section.rights %]
38 47
    [% SET name = right.name %]
39
    [% L.checkbox_tag("group.rights_map." _ name, label=right.description, checked=granted_rights.$name, class="checkallgroup" _ section_number) %]
40
    <br>
41
   [%- END %]
48
    <div>[% L.checkbox_tag("group.rights_map." _ name, label=right.description, checked=granted_rights.$name, class="checkallgroup" _ section_number) %]</div>
49
     [% END %]
42 50
  </div>
43
 [%- END %]
51
 [% END %]
44 52

  
45
 <h2>[%- LxERP.t8("Group membership") %]</h2>
53
</div><!-- /.col -->
46 54

  
47
[% IF SELF.all_users.size %]
48
 <p>
49
  [%- LxERP.t8("The following users are a member of this group") %]:
50
 </p>
55
<div class="col">
56
<h2>[% LxERP.t8("Group membership") %]</h2>
51 57

  
52
 <div class="clearfix">
58
[% IF SELF.all_users.size %]
59
<div class="ms2side">
60
  <p>[% LxERP.t8("The following users are a member of this group") %]:</p>
61
  <!-- vormals:.clearfix -->
53 62
  [% L.select_tag("group.users[]", SELF.all_users, id="group_users", title_key="login", default=SELF.group.users, default_value_key='id', multiple=1) %]
54 63
  [% L.multiselect2side("group_users", labelsx => LxERP.t8("All users"), labeldx => LxERP.t8("Users that are a member in this group")) %]
55
 </div>
64
</div>
65
[% ELSE %]
66
  <p>[% LxERP.t8("No users have been created yet.") %]</p>
67
[% END %]
56 68

  
57
[%- ELSE %]
58
 <p>
59
  [% LxERP.t8("No users have been created yet.") %]
60
 </p>
61
[%- END %]
62 69

  
63
 <h2>[%- LxERP.t8("Client assignment") %]</h2>
70
<h2>[% LxERP.t8("Client assignment") %]</h2>
64 71

  
65 72
[% IF SELF.all_clients.size %]
66
 <p>
67
  [%- LxERP.t8("This group is valid for the following clients") %]:
68
 </p>
69

  
70
 <div class="clearfix">
73
<div class="ms2side">
74
  <p>[% LxERP.t8("This group is valid for the following clients") %]:</p>
75
  <!-- vormals:.clearfix -->
71 76
  [% L.select_tag("group.clients[]", SELF.all_clients, id="group_clients", title_key="name", default=SELF.group.clients, default_value_key='id', multiple=1) %]
72 77
  [% L.multiselect2side("group_clients", labelsx => LxERP.t8("All clients"), labeldx => LxERP.t8("Clients this Group is valid for")) %]
73
 </div>
78
</div>
79

  
80
[% ELSE %]
81
  <p>[% LxERP.t8("No clients have been created yet.") %]</p>
82
[% END %]
74 83

  
75
[%- ELSE %]
76
 <p>
77
  [% LxERP.t8("No clients have been created yet.") %]
78
 </p>
79
[%- END %]
80 84

  
81
<hr size="3" noshade>
85
<div class="buttons">
86
  [% L.link(SELF.url_for(action="show"), LxERP.t8("Back"), class="button neutral") %]
82 87

  
83
<p>
84
 [% L.link(SELF.url_for(action="show"), LxERP.t8("Back")) %]
88
  [% L.button_tag("submit_with_action('save_group')", LxERP.t8("Save")) %]
89
  [% IF SELF.group.id %]
90
    [% L.button_tag("save_as_new()", LxERP.t8("Save as new")) %]
91
    [% L.button_tag("submit_with_action('delete_group')", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %]
92
  [% END %]
93
</div>
85 94

  
86
 [% L.button_tag("submit_with_action('save_group')", LxERP.t8("Save")) %]
87
 [% IF SELF.group.id %]
88
  [% L.button_tag("save_as_new()", LxERP.t8("Save as new")) %]
89
  [% L.button_tag("submit_with_action('delete_group')", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %]
90
 [%- END %]
91
</p>
95
</div><!-- /.col -->
92 96

  
97
</div><!-- /.wrapper -->
93 98
</form>
94 99

  
95 100
<script type="text/javascript">
templates/webpages/admin/edit_printer.html
1
[%- USE LxERP -%][%- USE HTML -%][%- USE L -%]
1
[% USE LxERP %]
2
[% USE HTML  %]
3
[% USE L     %]
4

  
5
<h1>[% HTML.escape(title) %]</h1>
6

  
7
<div class="wrapper">
2 8

  
3 9
[% INCLUDE 'common/flash.html' %]
4 10

  
5 11
[% IF !SELF.all_clients.size %]
6
<div class="error">
7
 [% LxERP.t8("Error") %]:
8
 [% LxERP.t8("No clients have been created yet.") %]
12
<div class="message message_error">
13
 <b>[% LxERP.t8("Error") %]:</b> [% LxERP.t8("No clients have been created yet.") %]
9 14
</div>
10 15

  
11
[%- ELSE %]
12

  
13
<h1>[% HTML.escape(title) %]</h1>
16
[% ELSE %]
14 17

  
15 18
<form method="post">
16
 [% L.hidden_tag("action", 'Admin/dispatch') %]
17
 [% L.hidden_tag("printer.id", SELF.printer.id) %]
18

  
19
 <table>
20
  <tr>
21
   <th align="right">[% LxERP.t8('Client') %]</th>
22
   <td>[% L.select_tag("client.id", SELF.all_clients, default=SELF.client.id, title_key='name') %]</td>
23
  <tr>
24

  
25
  <tr>
26
   <th align="right">[% LxERP.t8('Printer Description') %]</th>
27
   <td>[% L.input_tag("printer.printer_description", SELF.printer.printer_description, size=30, class="initial_focus") %]</td>
28
  <tr>
29
  <tr>
30
   <th align="right">[% LxERP.t8('Printer Command') %]</th>
31
   <td>[% L.input_tag("printer.printer_command", SELF.printer.printer_command, size=30) %]</td>
32
  </tr>
33
  <tr>
34
   <th align="right">[% LxERP.t8('Template Code') %]</th>
35
   <td>[% L.input_tag("printer.template_code", SELF.printer.template_code, size=8) %]</td>
36
  </tr>
37
 </table>
38

  
39
 <p>
40
  <a href="[% SELF.url_for(action='list_printers', 'client.id'=SELF.client.id) %]">[% LxERP.t8("Back") %]</a>
41
  [% L.submit_tag("action_save_printer", LxERP.t8("Save")) %]
42
  [%- IF SELF.printer.id %]
43
   [% L.submit_tag("action_delete_printer", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %]
44
 [%- END %]
45
 </p>
19
  [% L.hidden_tag("action", 'Admin/dispatch') %]
20
  [% L.hidden_tag("printer.id", SELF.printer.id) %]
21

  
22
<table class="tbl-horizontal">
23
  <tbody>
24
    <tr>
25
      <th>[% LxERP.t8('Client') %]</th>
26
      <td>[% L.select_tag("client.id", SELF.all_clients, default=SELF.client.id, title_key='name') %]</td>
27
    </tr>
28
    <tr>
29
      <th>[% LxERP.t8('Printer Description') %]</th>
30
      <td>[% L.input_tag("printer.printer_description", SELF.printer.printer_description, size=30, class="initial_focus") %]</td>
31
    </tr>
32
    <tr>
33
      <th>[% LxERP.t8('Printer Command') %]</th>
34
      <td>[% L.input_tag("printer.printer_command", SELF.printer.printer_command, size=30) %]</td>
35
    </tr>
36
    <tr>
37
      <th>[% LxERP.t8('Template Code') %]</th>
38
      <td>[% L.input_tag("printer.template_code", SELF.printer.template_code, size=8) %]</td>
39
    </tr>
40
  </tbody>
41
</table>
42

  
43
<div class="buttons">
44
  <a href="[% SELF.url_for(action='list_printers', 'client.id'=SELF.client.id) %]" class="button neutral">[% LxERP.t8("Back") %]</a>
45
  [% L.submit_tag("action_save_printer", LxERP.t8("Save"), class="button") %]
46
  [% IF SELF.printer.id %]
47
    [% L.submit_tag("action_delete_printer", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %]
48
  [% END %]
49
</div>
46 50

  
47 51
</form>
48 52

  
53
</div><!-- /.wrapper -->
54

  
55

  
49 56
[% END %]
templates/webpages/admin/edit_user.html
1
[%- USE HTML %]
2
[%- USE L %][%- USE LxERP -%][%- USE JavaScript -%]
1
[% USE HTML %]
2
[% USE L %]
3
[% USE LxERP %]
4
[% USE JavaScript %]
3 5

  
4
[%- INCLUDE 'common/flash.html' %]
6
[% INCLUDE 'common/flash.html' %]
5 7

  
6 8
<h1>[% HTML.escape(title) %]</h1>
7 9

  
8 10
<form method="post" action="controller.pl" id="form">
9
 [% L.hidden_tag("user.id", SELF.user.id) %]
10
 [% L.hidden_tag("action", "") %]
11
 [%- SET props=SELF.user.config_values %]
12

  
13
 <h2>[%- LxERP.t8("Settings") %]</h2>
14

  
15
 <table>
16
  <tr valign="top">
17
   <td>
18
    <table>
19
     <tr>
20
      <th align="right">[% LxERP.t8('Login Name') %]</th>
21
      <td>[% L.input_tag("user.login", SELF.user.login, class="initial_focus") %]</td>
22
     </tr>
23

  
24
     [%- IF AUTH.can_change_password %]
25
     <tr>
26
      <th align="right">[% LxERP.t8("New Password") %]</th>
27
      <td>[% L.input_tag("new_password", "", type="password") %]</td>
28
     </tr>
29
     [%- END %]
30

  
31
     <tr>
32
      <th align="right">[% LxERP.t8("Name") %]</th>
33
      <td>[% L.input_tag("user.config_values.name", props.name) %]</td>
34
     </tr>
35

  
36
     <tr>
37
      <th align="right">[% LxERP.t8('E-mail') %]</th>
38
      <td>[% L.input_tag("user.config_values.email", props.email) %]</td>
39
     </tr>
40

  
41
     <tr valign="top">
42
      <th align="right">[% LxERP.t8('Signature') %]</th>
43
      <td>[% L.textarea_tag("user.config_values.signature", props.signature, rows=3, cols=35) %]</td>
44
     </tr>
45

  
46
     <tr>
47
      <th align="right">[% LxERP.t8('Phone') %]</th>
48
      <td>[% L.input_tag("user.config_values.tel", props.tel) %]</td>
49
     </tr>
50

  
51
     <tr>
52
      <th align="right">[% LxERP.t8('Fax') %]</th>
53
      <td>[% L.input_tag("user.config_values.fax", props.fax) %]</td>
54
     </tr>
55
    </table>
56
   </td>
57

  
58
   <td>
59
    <table>
60
     <tr>
61
      <th align="right">[% LxERP.t8("Date Format") %]</th>
62
      <td>[% L.select_tag("user.config_values.dateformat", SELF.all_dateformats, default=props.dateformat) %]</td>
63
     </tr>
64

  
65
     <tr>
66
      <th align="right">[% LxERP.t8("Number Format") %]</th>
67
      <td>[% L.select_tag("user.config_values.numberformat", SELF.all_numberformats, default=props.numberformat) %]</td>
68
     </tr>
69

  
70
     <tr>
71
      <th align="right">[% LxERP.t8("Language") %]</th>
72
      <td>[% L.select_tag("user.config_values.countrycode", SELF.all_countrycodes, title_key="title", default=props.countrycode) %]</td>
73
     </tr>
74

  
75
     <tr>
76
      <th align="right">[% LxERP.t8("Stylesheet") %]</th>
77
      <td>[% L.select_tag("user.config_values.stylesheet", SELF.all_stylesheets, default=props.stylesheet) %]</td>
78
     </tr>
79

  
80
     <tr>
81
      <th align="right">[% LxERP.t8("Setup Menu") %]</th>
82
      <td>[% L.select_tag("user.config_values.menustyle", SELF.all_menustyles, title_key="title", default=props.menustyle) %]</td>
83
     </tr>
84

  
85
     <tr>
86
      <th align="right">[% LxERP.t8("Mandatory Departments") %]</th>
87
      <td>
88
       [% L.radio_button_tag('user.config_values.mandatory_departments', value='0', id='user.config_values.mandatory_departments_0', label=LxERP.t8('No'),  checked=!props.mandatory_departments) %]
89
       [% L.radio_button_tag('user.config_values.mandatory_departments', value='1', id='user.config_values.mandatory_departments_1', label=LxERP.t8('Yes'), checked= props.mandatory_departments) %]
90
      </td>
91
     </tr>
92
    </table>
93
   </td>
94
  </tr>
95
 </table>
11
[% L.hidden_tag("user.id", SELF.user.id) %]
12
[% L.hidden_tag("action", "") %]
13
[% SET props=SELF.user.config_values %]
14

  
15
<!-- <h2>[% #LxERP.t8("Settings") %]</h2> -->
16
<div class="wrapper">
96 17

  
97
 <h2>[%- LxERP.t8("CTI settings") %]</h2>
98 18

  
99
 <table>
19
<table class="tbl-horizontal">
20
  <caption>[% LxERP.t8("User & Communication") %]</caption>
21
  <colgroup><col class="wi-small"><col class="wi-wide"></colgroup>
22
  <tbody>
23
  <tr>
24
    <th>[% LxERP.t8('Login Name') %]</th>
25
    <td>[% L.input_tag("user.login", SELF.user.login, class="initial_focus wi-wide") %]</td>
26
  </tr>
27
  [% IF AUTH.can_change_password %] 
28
  <tr>
29
    <th>[% LxERP.t8("New Password") %]</th>
30
    <td>[% L.input_tag("new_password", "", type="password", class="wi-wide") %]</td>
31
  </tr>
32
  [% END %] 
33
  <tr>
34
    <th>[% LxERP.t8("Name") %]</th>
35
    <td>[% L.input_tag("user.config_values.name", props.name, class="wi-wide") %]</td>
36
  </tr>
37
  <tr>
38
    <th>[% LxERP.t8('E-mail') %]</th>
39
    <td>[% L.input_tag("user.config_values.email", props.email, class="wi-wide") %]</td>
40
  </tr>
100 41
  <tr>
101
   <th align="right">[% LxERP.t8("Phone extension") %]</th>
102
   <td>[% L.input_tag("user.config_values.phone_extension", props.phone_extension) %]</td>
42
    <th>[% LxERP.t8('Signature') %]</th>
43
    <td>[% L.textarea_tag("user.config_values.signature", props.signature, rows=3, cols=24, class="wi-wide") %]</td>
103 44
  </tr>
45
  <tr>
46
    <th>[% LxERP.t8('Phone') %]</th>
47
    <td>[% L.input_tag("user.config_values.tel", props.tel, class="wi-wide") %]</td>
48
  </tr>
49
  <tr>
50
    <th>[% LxERP.t8('Fax') %]</th>
51
    <td>[% L.input_tag("user.config_values.fax", props.fax, class="wi-wide") %]</td>
52
  </tr>
53
  </tbody>
54
</table>
104 55

  
56
<table class="tbl-horizontal">
57
  <caption>[% LxERP.t8("Formats & Language") %]</caption>
58
  <colgroup><col class="wi-mediumsmall"><col class="wi-normal"></colgroup>
59
  <tbody>
105 60
  <tr>
106
   <th align="right">[% LxERP.t8("Phone password") %]</th>
107
   <td>[% L.input_tag("user.config_values.phone_password", props.phone_password) %]</td>
61
    <th>[% LxERP.t8("Date Format") %]</th>
62
    <td>[% L.select_tag("user.config_values.dateformat", SELF.all_dateformats, default=props.dateformat, class="wi-normal") %]</td>
108 63
  </tr>
109
 </table>
64
  <tr>
65
    <th>[% LxERP.t8("Number Format") %]</th>
66
    <td>[% L.select_tag("user.config_values.numberformat", SELF.all_numberformats, default=props.numberformat, class="wi-normal") %]</td>
67
  </tr>
68
  <tr>
69
    <th>[% LxERP.t8("Language") %]</th>
70
    <td>[% L.select_tag("user.config_values.countrycode", SELF.all_countrycodes, title_key="title", default=props.countrycode, class="wi-normal") %]</td>
71
  </tr>
72
  <tr>
73
    <th>[% LxERP.t8("Stylesheet") %]</th>
74
    <td>[% L.select_tag("user.config_values.stylesheet", SELF.all_stylesheets, default=props.stylesheet, class="wi-normal") %]</td>
75
  </tr>
76
  <tr>
77
    <th>[% LxERP.t8("Setup Menu") %]</th>
78
    <td>[% L.select_tag("user.config_values.menustyle", SELF.all_menustyles, title_key="title", default=props.menustyle, class="wi-normal") %]</td>
79
  </tr>
80
  <tr>
81
    <th>[% LxERP.t8("Mandatory Departments") %]</th>
82
    <td>
83
      [% L.radio_button_tag('user.config_values.mandatory_departments', value='0', id='user.config_values.mandatory_departments_0', label=LxERP.t8('No'), checked=!props.mandatory_departments) %] <br>
84
      [% L.radio_button_tag('user.config_values.mandatory_departments', value='1', id='user.config_values.mandatory_departments_1', label=LxERP.t8('Yes'), checked= props.mandatory_departments) %] </td>
85
  </tr>
86
  </tbody>
87
</table>
88

  
89
<table class="tbl-horizontal">
90
  <caption>[% LxERP.t8("CTI settings") %]</caption>
91
  <tbody>
92
  <tr>
93
    <th>[% LxERP.t8("Phone extension") %]</th>
94
    <td>[% L.input_tag("user.config_values.phone_extension", props.phone_extension, class="wi-normal") %]</td>
95
  </tr>
96
  <tr>
97
    <th>[% LxERP.t8("Phone password") %]</th>
98
    <td>[% L.input_tag("user.config_values.phone_password", props.phone_password, class="wi-normal") %]</td>
99
  </tr>
100
  </tbody>
101
</table>
102

  
103
</div><!-- /.wrapper -->
104
<div class="wrapper">
110 105

  
111
 <h2>[%- LxERP.t8("Access to clients") %]</h2>
106
<div class="col">
107
<h3>[% LxERP.t8("Access to clients") %]</h3>
112 108

  
113 109
[% IF SELF.all_clients.size %]
114
 <p>
115
  [%- LxERP.t8("This user will have access to the following clients") %]:
116
 </p>
110
  <p>[% LxERP.t8("This user will have access to the following clients") %]:</p>
111
  <div class="clearfix">
112
    [% L.select_tag("user.clients[]", SELF.all_clients, id="user_clients", title_key="name", default=SELF.user.clients, default_value_key='id', multiple=1) %]
113
    [% L.multiselect2side("user_clients", labelsx => LxERP.t8("All clients"), labeldx => LxERP.t8("Clients this user has access to")) %]
114
  </div>
115
[% ELSE %]
116
  <p>[% LxERP.t8("No clients have been created yet.") %]</p>
117
[% END %]
117 118

  
118
 <div class="clearfix">
119
  [% L.select_tag("user.clients[]", SELF.all_clients, id="user_clients", title_key="name", default=SELF.user.clients, default_value_key='id', multiple=1) %]
120
  [% L.multiselect2side("user_clients", labelsx => LxERP.t8("All clients"), labeldx => LxERP.t8("Clients this user has access to")) %]
121
 </div>
119
</div>
122 120

  
123
[%- ELSE %]
124
 <p>
125
  [% LxERP.t8("No clients have been created yet.") %]
126
 </p>
127
[%- END %]
128 121

  
129
 <h2>[%- LxERP.t8("Group membership") %]</h2>
122
<div class="col">
123
<h3 class="caption">[% LxERP.t8("Group membership") %]</h3>
130 124

  
131 125
[% IF SELF.all_groups.size %]
132
 <p>
133
  [%- LxERP.t8("This user is a member in the following groups") %]:
134
 </p>
135

  
136
 <div class="clearfix">
137
  [% L.select_tag("user.groups[]", SELF.all_groups, id="user_groups", title_key="name", default=SELF.user.groups, default_value_key='id', multiple=1) %]
138
  [% L.multiselect2side("user_groups", labelsx => LxERP.t8("All groups"), labeldx => LxERP.t8("Groups this user is a member in")) %]
139
 </div>
126
  <p>[% LxERP.t8("This user is a member in the following groups") %]:</p>
127
  <div class="clearfix">
128
    [% L.select_tag("user.groups[]", SELF.all_groups, id="user_groups", title_key="name", default=SELF.user.groups, default_value_key='id', multiple=1) %]
129
    [% L.multiselect2side("user_groups", labelsx => LxERP.t8("All groups"), labeldx => LxERP.t8("Groups this user is a member in")) %]
130
  </div>
131
[% ELSE %]
132
  <p>[% LxERP.t8("No groups have been created yet.") %]</p>
133
[% END %]
134
</div>
140 135

  
141
[%- ELSE %]
142
 <p>
143
  [% LxERP.t8("No groups have been created yet.") %]
144
 </p>
145
[%- END %]
136
</div><!-- /.wrapper -->
146 137

  
147
<hr size="3" noshade>
148 138

  
149
<p>
150
 [% L.link(SELF.url_for(action="show"), LxERP.t8("Back")) %]
151 139

  
152
 [% L.button_tag("submit_with_action('save_user')", LxERP.t8("Save")) %]
153
 [% IF SELF.user.id %]
154
  [% L.button_tag("save_as_new()", LxERP.t8("Save as new")) %]
155
  [% L.button_tag("submit_delete()", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %]
156
 [%- END %]
157
</p>
140
<div class="buttons">
141
  [% L.link(SELF.url_for(action="show"), LxERP.t8("Back"), class="button neutral") %]
142
  [% L.button_tag("submit_with_action('save_user')", LxERP.t8("Save")) %]
143
  [% IF SELF.user.id %]
144
    [% L.button_tag("save_as_new()", LxERP.t8("Save as new")) %]
145
    [% L.button_tag("submit_delete()", LxERP.t8("Delete"), confirm=LxERP.t8("Are you sure?")) %]
146
  [% END %]
147
</div>
158 148

  
159 149
</form>
160 150

  
161
<script type="text/javascript">
162
 <!--
151
<script type="text/javascript"><!--
163 152
  function submit_with_action(action) {
164 153
    $("#action").val("Admin/" + action);
165 154
    $("#form").submit();
166 155
  }
167 156

  
168 157
  function submit_delete() {
169
[% SET used_for_task_server_in_clients = SELF.is_user_used_for_task_server(SELF.user) %]
170
[% IF used_for_task_server_in_clients %]
171
   alert('[% JavaScript.escape(LxERP.t8('The user cannot be deleted as it is used in the following clients: #1', used_for_task_server_in_clients)) %]');
172
   return false;
173
[% ELSE %]
174
    submit_with_action('delete_user');
175
[% END %]
158
    [% SET used_for_task_server_in_clients = SELF.is_user_used_for_task_server(SELF.user) %]
159
    [% IF used_for_task_server_in_clients %]
160
      alert('[% JavaScript.escape(LxERP.t8('The user cannot be deleted as it is used in the following clients: #1', used_for_task_server_in_clients)) %]');
161
      return false;
162
    [% ELSE %]
163
      submit_with_action('delete_user');
164
    [% END %]
176 165
  }
177 166

  
178 167
  function save_as_new() {
179 168
    $("#user_id").val("");
180 169
    submit_with_action("save_user");
181 170
  }
182
   -->
183
</script>
171
--></script>
templates/webpages/admin/list_printers.html
1
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%]
2

  
3
[% INCLUDE 'common/flash.html' %]
1
[% USE HTML %]
2
[% USE LxERP %]
3
[% USE L %]
4 4

  
5 5
<h1>[% HTML.escape(title) %]</h1>
6 6

  
7
[% IF !SELF.all_clients.size %]
8
<div class="error">
9
 [% LxERP.t8("Error") %]:
10
 [% LxERP.t8("No clients have been created yet.") %]
11
</div>
12

  
13
[%- ELSE %]
14

  
15
 <p>
16
  [% LxERP.t8("Client to configure the printers for") %]:
17
  [% L.select_tag('client.id', SELF.all_clients, id='client_id', title_key='name', default=SELF.client.id) %]
18
 </p>
19

  
20
 [%- IF !SELF.all_printers.size %]
21

  
22
  <p>
23
   [% LxERP.t8("No printers have been created yet.") %]
24
  </p>
25

  
... Dieser Diff wurde abgeschnitten, weil er die maximale Anzahl anzuzeigender Zeilen überschreitet.

Auch abrufbar als: Unified diff