Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision eb9c7b8d

Von Hans Peter Schlaepfer vor fast 5 Jahren hinzugefügt

  • ID eb9c7b8d4739201ecf0a912bd1a6a64b2b640ca0
  • Vorgänger b5433029
  • Nachfolger 75889221

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

Unterschiede anzeigen:

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

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

  
8
 <form method="post" action="am.pl" name="Form" id="form">
9
  <div class="tabwidget">
10
   <ul>
11
    <li><a href="#page_personal_settings">[% 'Personal settings' | $T8 %]</a></li>
12
    <li><a href="#page_display_options">[% 'Display options' | $T8 %]</a></li>
13
    <li><a href="#page_print_options">[% 'Print options' | $T8 %]</a></li>
14
    <li><a href="#page_todo_list_options">[% 'TODO list options' | $T8 %]</a></li>
15
   </ul>
16

  
17
   <div id="page_personal_settings">
18

  
19
    <table>
20
     <tr>
21
      <th align="right">[% 'Name' | $T8 %]</th>
22
      <td><input name="name" size="15" value="[% HTML.escape(MYCONFIG.name) %]"></td>
23
     </tr>
24

  
25
     <tr>
26
      <th align="right">[% 'Password' | $T8 %]</th>
27
      <td>
28
       [%- IF CAN_CHANGE_PASSWORD %]
29
       <input type="password" name="new_password" size="10" value="********">
30
       [%- ELSE %]
31
       <input type="hidden" name="new_password" value="********">
32
       [%- END %]
33
      </td>
34
     </tr>
35

  
36
     <tr>
37
      <th align="right">[% 'E-mail' | $T8 %]</th>
38
      <td><input name="email" size="30" value="[% HTML.escape(MYCONFIG.email) %]"></td>
39
     </tr>
40

  
41
     <tr valign="top">
42
      <th align="right">[% 'Signature' | $T8 %]</th>
43
      <td><textarea id="signature" name="signature" class="toggletextarea" rows="5" cols="50">[% HTML.escape(MYCONFIG.signature) %] </textarea>
44
         <span id="full_signature" class="toggletextarea"> <textarea readonly name="full_signature" rows="10" cols="50" >[% HTML.escape(full_signature) %]</textarea> </span>
45
         <a href="#" class="togglelink">[% 'Check full signature' | $T8 %]</a>
46
         <a href="#" id="edit_signature" class="togglelink">[% 'Edit user signature' | $T8 %]</a>
47
          </td> </tr>
48
     <tr>
49
      <th align="right">[% 'Phone' | $T8 %]</th>
50
      <td><input name="tel" size="14" value="[% HTML.escape(MYCONFIG.tel) %]"></td>
51
     </tr>
52

  
53
     <tr>
54
      <th align="right">[% 'Fax' | $T8 %]</th>
55
      <td><input name="fax" size="14" value="[% HTML.escape(MYCONFIG.fax) %]"></td>
56
     </tr>
57

  
8
<form method="post" action="am.pl" name="Form" id="form">
9
<div class="tabwidget">
10
<ul>
11
  <li><a href="#page_personal_settings">[% 'Personal settings' | $T8 %]</a></li>
12
  <li><a href="#page_display_options">[% 'Display options' | $T8 %]</a></li>
13
  <li><a href="#page_print_options">[% 'Print options' | $T8 %]</a></li>
14
  <li><a href="#page_todo_list_options">[% 'TODO list options' | $T8 %]</a></li>
15
</ul>
16

  
17

  
18
<div id="page_personal_settings">
19
  <div class="wrapper">
20
    <table class="tbl-horizontal">
21
      <colgroup> <col class="wi-mediumsmall"><col class="wi-lightwide"> </colgroup>
22
      <caption> [% 'Personal settings' | $T8 %] </caption>
23
      <colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup>
24
      <tbody>
58 25
      <tr>
59
        <th align="right">[% 'taxincluded checked' | $T8 %]</th>
26
        <th>[% 'Name' | $T8 %]</th>
27
        <td><input type="text" name="name" class="wi-wide" value="[% HTML.escape(MYCONFIG.name) %]"></td>
28
      </tr>
29
      <tr>
30
        <th>[% 'Password' | $T8 %]</th>
60 31
        <td>
61
          [% L.yes_no_tag('taxincluded_checked', MYCONFIG.taxincluded_checked) %]
32
          [% IF CAN_CHANGE_PASSWORD %]
33
            <input type="password" name="new_password" class="wi-wide" value="********">
34
          [% ELSE %]
35
            <input type="hidden" name="new_password" value="********" class="wi-wide">
36
          [% END %]
62 37
        </td>
63 38
      </tr>
64

  
65 39
      <tr>
66
        <th align="right">[% 'Focus position after update' | $T8 %]</th>
40
        <th>[% 'E-mail' | $T8 %]</th>
41
        <td><input type="text" name="email" class="wi-wide" value="[% HTML.escape(MYCONFIG.email) %]"></td>
42
      </tr>
43
      <tr>
44
        <th>[% 'Signature' | $T8 %]</th>
67 45
        <td>
68
          [% L.select_tag(
69
            'focus_position',
70
            [
71
              ['new_description',  LxERP.t8('New row, description')],
72
              ['new_partnumber',   LxERP.t8('New row, partnumber')],
73
              ['new_qty',          LxERP.t8('New row, qty')],
74
              ['last_description', LxERP.t8('Last row, description')],
75
              ['last_partnumber',  LxERP.t8('Last row, partnumber')],
76
              ['last_qty',         LxERP.t8('Last row, qty')],
77
            ],
78
            default => MYCONFIG.focus_position)
79
          %]
46
          <textarea id="signature" name="signature" class="toggletextarea" rows="5" cols="50">[% HTML.escape(MYCONFIG.signature) %] </textarea>
47
          <span id="full_signature" class="toggletextarea"> <textarea readonly name="full_signature" rows="10" cols="50">[% HTML.escape(full_signature) %]</textarea>
48
          </span> <a href="#" class="togglelink">[% 'Check full signature' | $T8 %]</a> <a href="#" id="edit_signature" class="togglelink">[% 'Edit user signature' | $T8 %]</a>
80 49
        </td>
81 50
      </tr>
82

  
83 51
      <tr>
84
        <th align="right">[% 'Item multi selection with qty' | $T8 %]</th>
85
        <td>
86
          [% L.yes_no_tag('item_multiselect', MYCONFIG.item_multiselect) %]
52
        <th>[% 'Phone' | $T8 %]</th>
53
        <td><input type="text" name="tel" class="wi-wide" value="[% HTML.escape(MYCONFIG.tel) %]"></td>
54
      </tr>
55
      <tr>
56
        <th>[% 'Fax' | $T8 %]</th>
57
        <td><input type="text" name="fax" class="wi-wide" value="[% HTML.escape(MYCONFIG.fax) %]"></td>
58
      </tr>
59
      <tr>
60
        <th>[% 'taxincluded checked' | $T8 %]</th>
61
        <td> [% L.yes_no_tag('taxincluded_checked', MYCONFIG.taxincluded_checked, class='wi-small') %]</td>
62
      </tr>
63
      <tr>
64
        <th>[% 'Focus position after update' | $T8 %]</th>
65
        <td> [% L.select_tag( 'focus_position', [ ['new_description', LxERP.t8('New row, description')], ['new_partnumber', LxERP.t8('New row, partnumber')], ['new_qty', LxERP.t8('New row, qty')], ['last_description', LxERP.t8('Last row, description')], ['last_partnumber', LxERP.t8('Last row, partnumber')], ['last_qty', LxERP.t8('Last row, qty')], ], default => MYCONFIG.focus_position, class='wi-wide') %]
87 66
        </td>
88 67
      </tr>
89

  
68
      <tr>
69
        <th>[% 'Item multi selection with qty' | $T8 %]</th>
70
        <td> [% L.yes_no_tag('item_multiselect', MYCONFIG.item_multiselect, class='wi-small') %]
71
        </td>
72
      </tr>
73
    </tbody>
90 74
    </table>
91
   </div>
92

  
93
   <div id="page_display_options">
94

  
95
    <table>
96
     <tr>
97
      <th align="right">[% 'Date Format' | $T8 %]</th>
98
      <td>
99
        [% L.select_tag('dateformat', DATEFORMATS, value_key = 'value', title_key = 'name') %]
100
      </td>
101
     </tr>
102
     <tr>
103
       <th align="right">[% 'Time Format' | $T8 %]</th>
104
       <td>
105
         [% L.select_tag('timeformat', TIMEFORMATS, value_key = 'value', title_key = 'name') %]
106
       </td>
107
     </tr>
108
     <tr>
109
      <th align="right">[% 'Output Number Format' | $T8 %]</th>
110
      <td>
111
        [% L.select_tag('numberformat', NUMBERFORMATS, value_key = 'value', title_key = 'name') %]
112
      </td>
113
     </tr>
114

  
115
     <tr>
116
      <th align="right">[% 'Language' | $T8 %]</th>
117
      <td>
118
        [% L.select_tag('countrycode', COUNTRYCODES, value_key = 'value', title_key = 'name') %]
119
      </td>
120
     </tr>
121

  
122
     <tr>
123
      <th align="right">[% 'Stylesheet' | $T8 %]</th>
124
      <td>
125
        [% L.select_tag('usestylesheet', STYLESHEETS, value_key = 'value', title_key = 'name') %]
126
      </td>
127
     </tr>
128

  
129
     <tr>
130
      <th align="right">[% 'Setup Menu' | $T8 %]</th>
131
      <td>
132
       <select name="menustyle">
133
        <option value="old"[% IF MYCONFIG.menustyle == 'old' %] selected[% END %]>[% 'Old (on the side)' | $T8 %]</option>
134
        <option value="v3"[% IF MYCONFIG.menustyle == 'v3' %] selected[% END %]>[% 'Top (CSS)' | $T8 %]</option>
135
        <option value="neu"[% IF MYCONFIG.menustyle == 'neu' %] selected[% END %]>[% 'Top (Javascript)' | $T8 %]</option>
136
       </select>
137
      </td>
138
     </tr>
139

  
140
     <tr>
141
      <th align="right">[% 'Form details (second row)' | $T8 %]</th>
75
  </div><!-- /.wrapper -->
76
</div><!-- /#page_personal_settings -->
77

  
78
<div id="page_display_options">
79
  <div class="wrapper">
80
    <table class="tbl-horizontal">
81
    <colgroup> <col class="wi-mediumsmall"><col class="wi-lightwide"> </colgroup>
82
    <caption>[% 'Display options' | $T8 %]</caption>
83
    <tbody>
84
    <tr>
85
      <th>[% 'Date Format' | $T8 %]</th>
86
      <td>[% L.select_tag('dateformat', DATEFORMATS, value_key='value', title_key='name', class="wi-small") %]</td>
87
    </tr>
88
    <tr>
89
      <th>[% 'Time Format' | $T8 %]</th>
90
      <td>[% L.select_tag('timeformat', TIMEFORMATS, value_key='value', title_key='name', class="wi-small") %]</td>
91
    </tr>
92
    <tr>
93
      <th>[% 'Output Number Format' | $T8 %]</th>
94
      <td>[% L.select_tag('numberformat', NUMBERFORMATS, value_key='value', title_key='name', class="wi-small") %]</td>
95
    </tr>
96
    <tr>
97
      <th>[% 'Language' | $T8 %]</th>
98
      <td>[% L.select_tag('countrycode', COUNTRYCODES, value_key = 'value', title_key = 'name', class='wi-lightwide') %]</td>
99
    </tr>
100
    <tr>
101
      <th>[% 'Stylesheet' | $T8 %]</th>
102
      <td>[% L.select_tag('usestylesheet', STYLESHEETS, value_key = 'value', title_key = 'name', class='wi-lightwide') %]</td>
103
    </tr>
104
    <tr>
105
      <th>[% 'Setup Menu' | $T8 %]</th>
142 106
      <td>
143
       <select name="show_form_details">
144
        <option value="1"[% IF  MYCONFIG.show_form_details %] selected[% END %]>[% 'Show by default' | $T8 %]</option>
145
        <option value="0"[% IF !MYCONFIG.show_form_details %] selected[% END %]>[% 'Hide by default' | $T8 %]</option>
146
       </select>
107
        <select name="menustyle" class="wi-lightwide">
108
          <option value="old"[% IF MYCONFIG.menustyle == 'old' %] selected[% END %]>[% 'Old (on the side)' | $T8 %]</option>
109
          <option value="v3"[% IF MYCONFIG.menustyle == 'v3' %] selected[% END %]>[% 'Top (CSS)' | $T8 %]</option>
110
          <option value="neu"[% IF MYCONFIG.menustyle == 'neu' %] selected[% END %]>[% 'Top (Javascript)' | $T8 %]</option>
111
        </select>
147 112
      </td>
148 113
     </tr>
149 114

  
......
170 135
     </tr>
171 136
     [%- END -%]
172 137

  
173
     <tr>
174
      <th align="right">[% 'Show custom variable search inputs' | $T8 %]</th>
138
    <tr>
139
      <th>[% 'Form details (second row)' | $T8 %]</th>
175 140
      <td>
176
       <select name="hide_cvar_search_options">
177
        <option value="0"[% IF !MYCONFIG.hide_cvar_search_options %] selected[% END %]>[% 'Show by default' | $T8 %]</option>
178
        <option value="1"[% IF  MYCONFIG.hide_cvar_search_options %] selected[% END %]>[% 'Hide by default' | $T8 %]</option>
179
       </select>
141
        <select name="show_form_details" class="wi-lightwide">
142
          <option value="1"[% IF  MYCONFIG.show_form_details %] selected[% END %]>[% 'Show by default' | $T8 %]</option>
143
          <option value="0"[% IF !MYCONFIG.show_form_details %] selected[% END %]>[% 'Hide by default' | $T8 %]</option>
144
        </select>
180 145
      </td>
181
     </tr>
182

  
183
     <tr>
184
      <th align="right">[% 'Number of columns of custom variables in form details (second row)' | $T8 %]</th>
146
    </tr>
147
    <tr>
148
      <th>[% 'Show custom variable search inputs' | $T8 %]</th>
185 149
      <td>
186
        [% L.input_tag('form_cvars_nr_cols',  MYCONFIG.form_cvars_nr_cols || 3,  size = 5) %]
150
        <select name="hide_cvar_search_options" class="wi-lightwide">
151
          <option value="0"[% IF !MYCONFIG.hide_cvar_search_options %] selected[% END %]>[% 'Show by default' | $T8 %]</option>
152
          <option value="1"[% IF  MYCONFIG.hide_cvar_search_options %] selected[% END %]>[% 'Hide by default' | $T8 %]</option>
153
        </select>
187 154
      </td>
188 155
     </tr>
189

  
190
     <tr>
156
    <tr>
157
      <th>[% 'Number of columns of custom variables in form details (second row)' | $T8 %]</th>
158
      <td>[% L.input_tag('form_cvars_nr_cols', MYCONFIG.form_cvars_nr_cols || 3, class='wi-verysmall') %]</td>
159
    </tr>
160
    <tr>
191 161
      <th align="right">[% 'Quick Searches that will be shown in the header for this user' | $T8 %]</th>
192 162
      <td colspan=2>
193 163
        <div class="clearfix">
......
237 207
           [% END %]
238 208
         </table>
239 209
       </td>
240

  
210
      </tr>
211
    </tbody>
241 212
    </table>
242
   </div>
243

  
244
   <div id="page_print_options">
245

  
246
    <table>
247
     <input name="printer" type="hidden" value="[% HTML.escape(MYCONFIG.printer) %]">
248

  
249
     <tr>
250
      <th align="right">[% 'Default template format' | $T8 %]</th>
251
      <td>
252
        [% L.select_tag('template_format', TEMPLATE_FORMATS, value_key = 'value', title_key = 'name') %]
253
      </td>
254
     </tr>
255

  
256
     <tr>
257
      <th align="right">[% 'Default output medium' | $T8 %]</th>
258
      <td>
259
        [% L.select_tag('default_media', MEDIA, value_key = 'value', title_key = 'name') %]
260
      </td>
261
     </tr>
262

  
263
     <tr>
264
      <th align="right">[% 'Default printer' | $T8 %]</th>
265
      <td>
266
       [% L.select_tag('default_printer_id', PRINTERS, default = MYCONFIG.default_printer_id, title_key = 'printer_description', with_empty = 1) %]
267
      </td>
268
     </tr>
269

  
270
     <tr>
271
      <th align="right">[% 'Number of copies' | $T8 %]</th>
272
      <td><input name="copies" size="10" value="[% HTML.escape(MYCONFIG.copies) %]"></td>
273
     </tr>
213
  </div><!-- /.wrapper -->
214
</div><!-- /#page_display_options -->
215

  
216

  
217
<div id="page_print_options">
218
  <div class="wrapper">
219
    <input name="printer" type="hidden" value="[% HTML.escape(MYCONFIG.printer) %]">
220
    <table class="tbl-horizontal">
221
      <caption>[% 'Print options' | $T8 %]</caption>
222
      <tbody>
223
        <tr>
224
          <th>[% 'Default template format' | $T8 %]</th>
225
          <td> [% L.select_tag('template_format', TEMPLATE_FORMATS, value_key = 'value', title_key = 'name', class='wi-normal') %]
226
          </td>
227
        </tr>
228
        <tr>
229
          <th>[% 'Default output medium' | $T8 %]</th>
230
          <td> [% L.select_tag('default_media', MEDIA, value_key = 'value', title_key = 'name', class='wi-normal') %]
231
          </td>
232
        </tr>
233
        <tr>
234
          <th>[% 'Default printer' | $T8 %]</th>
235
          <td> [% L.select_tag('default_printer_id', PRINTERS, default = MYCONFIG.default_printer_id, title_key = 'printer_description', with_empty = 1, class='wi-normal') %]
236
          </td>
237
        </tr>
238
        <tr>
239
          <th>[% 'Number of copies' | $T8 %]</th>
240
          <td>
241
          <input type="text" name="copies" size="10" value="[% HTML.escape(MYCONFIG.copies) %]" class="wi-normal">
242
          </td>
243
        </tr>
244
      </tbody>
274 245
    </table>
275
   </div>
246
  </div><!-- /.wrapper -->
247
</div><!-- /#page_print_options -->
276 248

  
277
   <div id="page_todo_list_options">
278 249

  
279
    <table>
280
     <tr>
281
      <th align="right">[% 'Show your TODO list after logging in' | $T8 %]</th>
282
      <td colspan="2">
283
       <input type="radio" name="todo_cfg.show_after_login" id="todo_cfg_show_after_login_1" value="1"[% IF todo_cfg.show_after_login %] checked[% END %]>
284
       <label for="todo_cfg_show_after_login_1">[% 'Yes' | $T8 %]</label>
285
       <input type="radio" name="todo_cfg.show_after_login" id="todo_cfg_show_after_login_0" value="0"[% IF !todo_cfg.show_after_login %] checked[% END %]>
286
       <label for="todo_cfg_show_after_login_0">[% 'No' | $T8 %]</label>
287
      </td>
288
     </tr>
289

  
290
     <tr class="listheading">
291
      <th colspan="3">[% 'Configuration of individual TODO items' | $T8 %]</th>
292
     </tr>
250
<div id="page_todo_list_options">
251
  <div class="wrapper">
252
    <table class="tbl-horizontal">
253
    <caption>[% 'Todo list options' | $T8 %]</caption>
254
      <colgroup> <col class="wi-normal"><col class="wi-normal"> </colgroup>
255
    <tbody>
256
      <tr>
257
        <th>[% 'Show your TODO list after logging in' | $T8 %]</th>
258
        <td>
259
        <input type="radio" name="todo_cfg.show_after_login" id="todo_cfg_show_after_login_1" value="1"[% IF todo_cfg.show_after_login %] checked[% END %]>
260
        <label for="todo_cfg_show_after_login_1">[% 'Yes' | $T8 %]</label>
261
        <input type="radio" name="todo_cfg.show_after_login" id="todo_cfg_show_after_login_0" value="0"[% IF !todo_cfg.show_after_login %] checked[% END %]>
262
        <label for="todo_cfg_show_after_login_0">[% 'No' | $T8 %]</label>
263
        </td>
264
      </tr>
265
      <tr>
266
        <th colspan="2" class="caption">[% 'Configuration of individual TODO items' | $T8 %]</th>
267
      </tr>
268
      <tr>
269
        <th>[% 'Show follow ups...' | $T8 %]</th>
270
        <td>
271
          <input type="checkbox" name="todo_cfg.show_follow_ups" id="todo_cfg_show_follow_ups" value="1"[% IF todo_cfg.show_follow_ups %] checked[% END %]>
272
          <label for="todo_cfg_show_follow_ups">[% '...on the TODO list' | $T8 %]</label> <br>
273
          <input type="checkbox" name="todo_cfg.show_follow_ups_login" id="todo_cfg_show_follow_ups_login" value="1"[% IF todo_cfg.show_follow_ups_login %] checked[% END %]>
274
          <label for="todo_cfg_show_follow_ups_login">[% '...after logging in' | $T8 %]</label>
275
        </td>
276
      </tr>
277
      [% IF AUTH.assert('sales_quotation_edit', 'may_fail') %]
278
      <tr>
279
        <th>[% 'Show overdue sales quotations and requests for quotations...' | $T8 %]</th>
280
        <td>
281
          <input type="checkbox" name="todo_cfg.show_overdue_sales_quotations" id="todo_cfg_show_overdue_sales_quotations" value="1"[% IF todo_cfg.show_overdue_sales_quotations %] checked[% END %]>
282
          <label for="todo_cfg_show_overdue_sales_quotations">[% '...on the TODO list' | $T8 %]</label> <br>
283
          <input type="checkbox" name="todo_cfg.show_overdue_sales_quotations_login" id="todo_cfg_show_overdue_sales_quotations_login" value="1"[% IF todo_cfg.show_overdue_sales_quotations_login %] checked[% END %]>
284
          <label for="todo_cfg_show_overdue_sales_quotations_login">[% '...after logging in' | $T8 %]</label>
285
        </td>
286
      </tr>
287
      [% END %]
288
    </tbody>
289
    </table>
290
  </div><!-- /.wrapper -->
291
</div><!-- /#page_todo_list_options -->
293 292

  
294
     <tr>
295
      <th align="right">[% 'Show follow ups...' | $T8 %]</th>
296
      <td>
297
       <input type="checkbox" name="todo_cfg.show_follow_ups" id="todo_cfg_show_follow_ups" value="1"[% IF todo_cfg.show_follow_ups %] checked[% END %]>
298
       <label for="todo_cfg_show_follow_ups">[% '...on the TODO list' | $T8 %]</label>
299
      </td>
300
      <td>
301
       <input type="checkbox" name="todo_cfg.show_follow_ups_login" id="todo_cfg_show_follow_ups_login" value="1"[% IF todo_cfg.show_follow_ups_login %] checked[% END %]>
302
       <label for="todo_cfg_show_follow_ups_login">[% '...after logging in' | $T8 %]</label>
303
      </td>
304
     </tr>
305 293

  
306
     [%- IF AUTH.assert('sales_quotation_edit', 'may_fail') %]
307
     <tr>
308
      <th align="right">[% 'Show overdue sales quotations and requests for quotations...' | $T8 %]</th>
309
      <td>
310
       <input type="checkbox" name="todo_cfg.show_overdue_sales_quotations" id="todo_cfg_show_overdue_sales_quotations" value="1"[% IF todo_cfg.show_overdue_sales_quotations %] checked[% END %]>
311
       <label for="todo_cfg_show_overdue_sales_quotations">[% '...on the TODO list' | $T8 %]</label>
312
      </td>
313
      <td>
314
       <input type="checkbox" name="todo_cfg.show_overdue_sales_quotations_login" id="todo_cfg_show_overdue_sales_quotations_login" value="1"[% IF todo_cfg.show_overdue_sales_quotations_login %] checked[% END %]>
315
       <label for="todo_cfg_show_overdue_sales_quotations_login">[% '...after logging in' | $T8 %]</label>
316
      </td>
317
     </tr>
318
     [%- END %]
319
    </table>
320
   </div>
321
  </div>
322
 </form>
294
</div>
295
</form>
323 296

  
324 297
 <script type="text/javascript">
325 298
  <!--

Auch abrufbar als: Unified diff