Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 58ca9076

Von Hans Peter Schlaepfer vor etwa 5 Jahren hinzugefügt

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

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

Unterschiede anzeigen:

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

  

Auch abrufbar als: Unified diff