Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 922f961c

Von G. Richardson vor etwa 6 Jahren hinzugefügt

  • ID 922f961cb091c49dbc02693faf50382ceb9cd5a2
  • Vorgänger 1d1f3140

Änderungen HP Design

Unterschiede anzeigen:

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

  
6
 <form method="post" action="am.pl" name="Form" id="form">
7
  <div class="tabwidget">
8
   <ul>
9
    <li><a href="#page_personal_settings">[% 'Personal settings' | $T8 %]</a></li>
10
    <li><a href="#page_display_options">[% 'Display options' | $T8 %]</a></li>
11
    <li><a href="#page_print_options">[% 'Print options' | $T8 %]</a></li>
12
    <li><a href="#page_todo_list_options">[% 'TODO list options' | $T8 %]</a></li>
13
   </ul>
1
[% USE T8 %]
2
[% USE LxERP %]
3
[% USE HTML %]
4
[% USE L %]
14 5

  
15
   <div id="page_personal_settings">
16

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

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

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

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

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

  
56
      <tr>
57
        <th align="right">[% 'taxincluded checked' | $T8 %]</th>
58
        <td>
59
          [% L.yes_no_tag('taxincluded_checked', MYCONFIG.taxincluded_checked) %]
60
        </td>
61
      </tr>
62

  
63
      <tr>
64
        <th align="right">[% 'Focus position after update' | $T8 %]</th>
65
        <td>
66
          [% L.select_tag(
67
            'focus_position',
68
            [
69
              ['new_description',  LxERP.t8('New row, description')],
70
              ['new_partnumber',   LxERP.t8('New row, partnumber')],
71
              ['new_qty',          LxERP.t8('New row, qty')],
72
              ['last_description', LxERP.t8('Last row, description')],
73
              ['last_partnumber',  LxERP.t8('Last row, partnumber')],
74
              ['last_qty',         LxERP.t8('Last row, qty')],
75
            ],
76
            default => MYCONFIG.focus_position)
77
          %]
78
        </td>
79
      </tr>
80

  
81
      <tr>
82
        <th align="right">[% 'Item multi selection with qty' | $T8 %]</th>
83
        <td>
84
          [% L.yes_no_tag('item_multiselect', MYCONFIG.item_multiselect) %]
85
        </td>
86
      </tr>
87

  
88
    </table>
89
   </div>
90

  
91
   <div id="page_display_options">
6
<h1>[% title %]</h1>
92 7

  
93
    <table>
94
     <tr>
95
      <th align="right">[% 'Date Format' | $T8 %]</th>
96
      <td>
97
        [% L.select_tag('dateformat', DATEFORMATS, value_key = 'value', title_key = 'name') %]
98
      </td>
99
     </tr>
100
     <tr>
101
       <th align="right">[% 'Time Format' | $T8 %]</th>
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
      <caption> [% 'Personal settings' | $T8 %] </caption>
22
      <tbody>
23
			<tr>
24
				<th>[% 'Name' | $T8 %]</th>
25
				<td>
26
          <input type="text" name="name" class="wi-wide" value="[% HTML.escape(MYCONFIG.name) %]">
27
				</td>
28
			</tr>
29
			<tr>
30
				<th>[% 'Password' | $T8 %]</th>
31
				<td> 
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 %] 
37
				</td>
38
			</tr>
39
			<tr>
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>
45
				<td>
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> 
49
				</td>
50
			</tr>
51
			<tr>
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') %] 
66
				</td>
67
			</tr>
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>
74
		</table>
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-lightwide"><col class="wi-lightwide"> </colgroup> 
82
    <caption>[% 'Display options' | $T8 %]</caption>
83
    <tbody>
84
     <tr>
85
      <th>[% 'Date Format' | $T8 %]</th>
86
      <td>
87
        [% L.select_tag('dateformat', DATEFORMATS, value_key='value', title_key='name', class="wi-small") %]
88
      </td>
89
     </tr>
90
     <tr>
91
       <th>[% 'Time Format' | $T8 %]</th>
102 92
       <td>
103
         [% L.select_tag('timeformat', TIMEFORMATS, value_key = 'value', title_key = 'name') %]
93
         [% L.select_tag('timeformat', TIMEFORMATS, value_key='value', title_key='name', class="wi-small") %]
104 94
       </td>
105 95
     </tr>
106 96
     <tr>
107
      <th align="right">[% 'Output Number Format' | $T8 %]</th>
97
      <th>[% 'Output Number Format' | $T8 %]</th>
108 98
      <td>
109
        [% L.select_tag('numberformat', NUMBERFORMATS, value_key = 'value', title_key = 'name') %]
99
        [% L.select_tag('numberformat', NUMBERFORMATS, value_key='value', title_key='name', class="wi-small") %]
110 100
      </td>
111 101
     </tr>
112

  
113 102
     <tr>
114
      <th align="right">[% 'Language' | $T8 %]</th>
103
      <th>[% 'Language' | $T8 %]</th>
115 104
      <td>
116
        [% L.select_tag('countrycode', COUNTRYCODES, value_key = 'value', title_key = 'name') %]
105
        [% L.select_tag('countrycode', COUNTRYCODES, value_key = 'value', title_key = 'name', class='wi-lightwide') %]
117 106
      </td>
118 107
     </tr>
119

  
120 108
     <tr>
121
      <th align="right">[% 'Stylesheet' | $T8 %]</th>
109
      <th>[% 'Stylesheet' | $T8 %]</th>
122 110
      <td>
123
        [% L.select_tag('usestylesheet', STYLESHEETS, value_key = 'value', title_key = 'name') %]
111
        [% L.select_tag('usestylesheet', STYLESHEETS, value_key = 'value', title_key = 'name', class='wi-lightwide') %]
124 112
      </td>
125 113
     </tr>
126

  
127 114
     <tr>
128
      <th align="right">[% 'Setup Menu' | $T8 %]</th>
115
      <th>[% 'Setup Menu' | $T8 %]</th>
129 116
      <td>
130
       <select name="menustyle">
117
       <select name="menustyle" class="wi-lightwide">
131 118
        <option value="old"[% IF MYCONFIG.menustyle == 'old' %] selected[% END %]>[% 'Old (on the side)' | $T8 %]</option>
132 119
        <option value="v3"[% IF MYCONFIG.menustyle == 'v3' %] selected[% END %]>[% 'Top (CSS)' | $T8 %]</option>
133 120
        <option value="neu"[% IF MYCONFIG.menustyle == 'neu' %] selected[% END %]>[% 'Top (Javascript)' | $T8 %]</option>
134 121
       </select>
135 122
      </td>
136 123
     </tr>
137

  
138 124
     <tr>
139
      <th align="right">[% 'Form details (second row)' | $T8 %]</th>
125
      <th>[% 'Form details (second row)' | $T8 %]</th>
140 126
      <td>
141
       <select name="show_form_details">
127
       <select name="show_form_details" class="wi-lightwide">
142 128
        <option value="1"[% IF  MYCONFIG.show_form_details %] selected[% END %]>[% 'Show by default' | $T8 %]</option>
143 129
        <option value="0"[% IF !MYCONFIG.show_form_details %] selected[% END %]>[% 'Hide by default' | $T8 %]</option>
144 130
       </select>
145 131
      </td>
146 132
     </tr>
147

  
148 133
     <tr>
149
      <th align="right">[% 'Show custom variable search inputs' | $T8 %]</th>
134
      <th>[% 'Show custom variable search inputs' | $T8 %]</th>
150 135
      <td>
151
       <select name="hide_cvar_search_options">
136
       <select name="hide_cvar_search_options" class="wi-lightwide">
152 137
        <option value="0"[% IF !MYCONFIG.hide_cvar_search_options %] selected[% END %]>[% 'Show by default' | $T8 %]</option>
153 138
        <option value="1"[% IF  MYCONFIG.hide_cvar_search_options %] selected[% END %]>[% 'Hide by default' | $T8 %]</option>
154 139
       </select>
155 140
      </td>
156 141
     </tr>
157

  
158 142
     <tr>
159
      <th align="right">[% 'Number of columns of custom variables in form details (second row)' | $T8 %]</th>
143
      <th>[% 'Number of columns of custom variables in form details (second row)' | $T8 %]</th>
160 144
      <td>
161
        [% L.input_tag('form_cvars_nr_cols',  MYCONFIG.form_cvars_nr_cols || 3,  size = 5) %]
145
        [% L.input_tag('form_cvars_nr_cols',  MYCONFIG.form_cvars_nr_cols || 3, class='wi-verysmall') %]
162 146
      </td>
163 147
     </tr>
164

  
148
    </tbody>
165 149
    </table>
166
   </div>
167

  
168
   <div id="page_print_options">
169

  
170
    <table>
171
     <input name="printer" type="hidden" value="[% HTML.escape(MYCONFIG.printer) %]">
172

  
173
     <tr>
174
      <th align="right">[% 'Default template format' | $T8 %]</th>
175
      <td>
176
        [% L.select_tag('template_format', TEMPLATE_FORMATS, value_key = 'value', title_key = 'name') %]
177
      </td>
178
     </tr>
179

  
180
     <tr>
181
      <th align="right">[% 'Default output medium' | $T8 %]</th>
182
      <td>
183
        [% L.select_tag('default_media', MEDIA, value_key = 'value', title_key = 'name') %]
184
      </td>
185
     </tr>
186

  
187
     <tr>
188
      <th align="right">[% 'Default printer' | $T8 %]</th>
189
      <td>
190
       [% L.select_tag('default_printer_id', PRINTERS, default = MYCONFIG.default_printer_id, title_key = 'printer_description', with_empty = 1) %]
191
      </td>
192
     </tr>
193

  
194
     <tr>
195
      <th align="right">[% 'Number of copies' | $T8 %]</th>
196
      <td><input name="copies" size="10" value="[% HTML.escape(MYCONFIG.copies) %]"></td>
197
     </tr>
150
  </div><!-- /.wrapper -->
151
</div><!-- /#page_display_options -->
152

  
153
 
154
<div id="page_print_options">
155
	<div class="wrapper">
156
		<input name="printer" type="hidden" value="[% HTML.escape(MYCONFIG.printer) %]">
157
		<table class="tbl-horizontal">
158
		  <caption>[% 'Print options' | $T8 %]</caption>
159
			<tbody>
160
				<tr>
161
					<th>[% 'Default template format' | $T8 %]</th>
162
					<td> [% L.select_tag('template_format', TEMPLATE_FORMATS, value_key = 'value', title_key = 'name', class='wi-normal') %] 
163
					</td>
164
				</tr>
165
				<tr>
166
					<th>[% 'Default output medium' | $T8 %]</th>
167
					<td> [% L.select_tag('default_media', MEDIA, value_key = 'value', title_key = 'name', class='wi-normal') %] 
168
					</td>
169
				</tr>
170
				<tr>
171
					<th>[% 'Default printer' | $T8 %]</th>
172
					<td> [% L.select_tag('default_printer_id', PRINTERS, default = MYCONFIG.default_printer_id, title_key = 'printer_description', with_empty = 1, class='wi-normal') %] 
173
					</td>
174
				</tr>
175
				<tr>
176
					<th>[% 'Number of copies' | $T8 %]</th>
177
					<td>
178
					<input type="text" name="copies" size="10" value="[% HTML.escape(MYCONFIG.copies) %]" class="wi-normal">
179
					</td>
180
				</tr>
181
			</tbody>
182
		</table>
183
	</div><!-- /.wrapper -->
184
</div><!-- /#page_print_options -->
185

  
186

  
187
<div id="page_todo_list_options"> 
188
  <div class="wrapper">
189
    <table class="tbl-horizontal">
190
    <caption>[% 'Todo list options' | $T8 %]</caption>
191
      <colgroup> <col class="wi-normal"><col class="wi-normal"> </colgroup> 
192
    <tbody>
193
      <tr>
194
        <th>[% 'Show your TODO list after logging in' | $T8 %]</th>
195
        <td> 
196
        <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 %]>
197
        <label for="todo_cfg_show_after_login_1">[% 'Yes' | $T8 %]</label> 
198
        <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 %]>
199
        <label for="todo_cfg_show_after_login_0">[% 'No' | $T8 %]</label> 
200
        </td>
201
      </tr>
202
      <tr>
203
        <th colspan="2" class="caption">[% 'Configuration of individual TODO items' | $T8 %]</th>
204
      </tr>
205
      <tr>
206
        <th>[% 'Show follow ups...' | $T8 %]</th>
207
        <td> 
208
          <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 %]>
209
          <label for="todo_cfg_show_follow_ups">[% '...on the TODO list' | $T8 %]</label> <br>
210
          <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 %]>
211
          <label for="todo_cfg_show_follow_ups_login">[% '...after logging in' | $T8 %]</label> 
212
        </td>
213
      </tr>
214
      [% IF AUTH.assert('sales_quotation_edit', 'may_fail') %] 
215
      <tr>
216
        <th>[% 'Show overdue sales quotations and requests for quotations...' | $T8 %]</th>
217
        <td> 
218
          <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 %]>
219
          <label for="todo_cfg_show_overdue_sales_quotations">[% '...on the TODO list' | $T8 %]</label> <br>
220
          <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 %]>
221
          <label for="todo_cfg_show_overdue_sales_quotations_login">[% '...after logging in' | $T8 %]</label> 
222
        </td>
223
      </tr>
224
      [% END %] 
225
    </tbody>
198 226
    </table>
199
   </div>
200

  
201
   <div id="page_todo_list_options">
202

  
203
    <table>
204
     <tr>
205
      <th align="right">[% 'Show your TODO list after logging in' | $T8 %]</th>
206
      <td colspan="2">
207
       <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 %]>
208
       <label for="todo_cfg_show_after_login_1">[% 'Yes' | $T8 %]</label>
209
       <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 %]>
210
       <label for="todo_cfg_show_after_login_0">[% 'No' | $T8 %]</label>
211
      </td>
212
     </tr>
227
  </div><!-- /.wrapper -->
228
</div><!-- /#page_todo_list_options -->
213 229

  
214
     <tr class="listheading">
215
      <th colspan="3">[% 'Configuration of individual TODO items' | $T8 %]</th>
216
     </tr>
217

  
218
     <tr>
219
      <th align="right">[% 'Show follow ups...' | $T8 %]</th>
220
      <td>
221
       <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 %]>
222
       <label for="todo_cfg_show_follow_ups">[% '...on the TODO list' | $T8 %]</label>
223
      </td>
224
      <td>
225
       <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 %]>
226
       <label for="todo_cfg_show_follow_ups_login">[% '...after logging in' | $T8 %]</label>
227
      </td>
228
     </tr>
229 230

  
230
     [%- IF AUTH.assert('sales_quotation_edit', 'may_fail') %]
231
     <tr>
232
      <th align="right">[% 'Show overdue sales quotations and requests for quotations...' | $T8 %]</th>
233
      <td>
234
       <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 %]>
235
       <label for="todo_cfg_show_overdue_sales_quotations">[% '...on the TODO list' | $T8 %]</label>
236
      </td>
237
      <td>
238
       <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 %]>
239
       <label for="todo_cfg_show_overdue_sales_quotations_login">[% '...after logging in' | $T8 %]</label>
240
      </td>
241
     </tr>
242
     [%- END %]
243
    </table>
244
   </div>
245
  </div>
246
 </form>
231
</div>
232
</form>
247 233

  
248 234
 <script type="text/javascript">
249 235
  <!--

Auch abrufbar als: Unified diff