Revision 9bc49620
Von Hans P. Schlaepfer vor fast 5 Jahren hinzugefügt
templates/webpages/am/edit_templates.html | ||
---|---|---|
1 |
<h1>[% title %]</h1> |
|
2 |
|
|
3 |
[% IF type == 'templates' %] |
|
4 |
<p style="text-align: right;">[<a href="doc/html/ch03s03.html" target="_blank" title="[% 'Open in new window' | $T8 %]">[% 'Help Template Variables' | $T8 %]</a>]</p> |
|
5 |
[% END %] |
|
6 |
|
|
7 |
<form method="post" name="Form" action="amtemplates.pl" id="form"> |
|
8 |
|
|
9 |
[% FOREACH var = HIDDEN %]<input type="hidden" name="[% HTML.escape(var.name) %]" value="[% HTML.escape(var.value) %]">[% END %] |
|
10 |
|
|
11 |
[% IF SHOW_EDIT_OPTIONS %] |
|
12 |
<p> |
|
13 |
[% 'Template' | $T8 %] |
|
14 |
<select name="formname"> |
|
15 |
[% FOREACH row = FORMNAME %]<option value="[% HTML.escape(row.value) %]" [% IF row.value == formname %]selected[% END %]>[% HTML.escape(row.label) %]</option>[% END %] |
|
16 |
</select> |
|
17 |
|
|
18 | 1 |
[% USE T8 %] |
19 | 2 |
[% USE HTML %] |
3 |
|
|
4 |
<h1>[% title %]</h1> |
|
5 |
|
|
6 |
[% IF type == 'templates' %] |
|
7 |
<p style="text-align: right;">[<a href="doc/html/ch03s03.html" target="_blank" title="[% 'Open in new window' | $T8 %]">[% 'Help Template Variables' | $T8 %]</a>]</p> |
|
8 |
[% END %] |
|
9 |
|
|
10 |
<form method="post" name="Form" action="amtemplates.pl" id="form"> |
|
11 |
[% FOREACH var = HIDDEN %]<input type="hidden" name="[% HTML.escape(var.name) %]" value="[% HTML.escape(var.value) %]">[% END %] |
|
12 |
|
|
13 |
[% IF SHOW_EDIT_OPTIONS %] |
|
14 |
<table class="tbl-horizontal"> |
|
15 |
<caption>[% '' | $T8 %]</caption> |
|
16 |
<colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup> |
|
17 |
<tbody> |
|
18 |
<tr> |
|
19 |
<th>[% 'Template' | $T8 %]</th> |
|
20 |
<td> |
|
21 |
<select name="formname"> |
|
22 |
[% FOREACH row = FORMNAME %]<option value="[% HTML.escape(row.value) %]" [% IF row.value == formname %]selected[% END %]>[% HTML.escape(row.label) %]</option>[% END %] |
|
23 |
</select> |
|
24 |
</td> |
|
25 |
</tr> |
|
20 | 26 |
[% IF LANGUAGE.size %] |
21 |
[% 'Language' | $T8 %] |
|
22 |
<select name="language"> |
|
23 |
<option></option> |
|
24 |
[% FOREACH row = LANGUAGE %]<option value="[% HTML.escape(row.value) %]" [% IF row.value == language %]selected[% END %]>[% HTML.escape(row.label) %]</option>[% END %] |
|
25 |
</select> |
|
27 |
<tr> |
|
28 |
<th>[% 'Language' | $T8 %]</th> |
|
29 |
<td> |
|
30 |
<select name="language"> |
|
31 |
<option></option> |
|
32 |
[% FOREACH row = LANGUAGE %]<option value="[% HTML.escape(row.value) %]" [% IF row.value == language %]selected[% END %]>[% HTML.escape(row.label) %]</option>[% END %] |
|
33 |
</select> |
|
34 |
</td> |
|
35 |
</tr> |
|
26 | 36 |
[% END %] |
27 |
|
|
28 | 37 |
[% IF PRINTER.size %] |
29 |
[% 'Printer' | $T8 %] |
|
30 |
<select name="printer"> |
|
31 |
<option></option> |
|
32 |
[% FOREACH row = PRINTER %]<option value="[% HTML.escape(row.value) %]" [% IF row.value == printer %]selected[% END %]>[% HTML.escape(row.label) %]</option>[% END %] |
|
33 |
</select> |
|
38 |
<tr> |
|
39 |
<th>[% 'Printer' | $T8 %]</th> |
|
40 |
<td> |
|
41 |
<select name="printer"> |
|
42 |
<option></option> |
|
43 |
[% FOREACH row = PRINTER %]<option value="[% HTML.escape(row.value) %]" [% IF row.value == printer %]selected[% END %]>[% HTML.escape(row.label) %]</option>[% END %] |
|
44 |
</select> |
|
45 |
</td> |
|
46 |
</tr> |
|
34 | 47 |
[% END %] |
48 |
</tbody> |
|
49 |
</table> |
|
35 | 50 |
|
36 |
<input type="hidden" name="display_nextsub" value="display_template"> |
|
51 |
<input type="hidden" name="display_nextsub" value="display_template"> |
|
52 |
<input name="action" type="submit" value="[% 'Display' | $T8 %]"> |
|
53 |
[% END %] |
|
37 | 54 |
|
38 |
<input name="action" type="submit" class="submit" value="[% 'Display' | $T8 %]"> |
|
55 |
[% IF SHOW_CONTENT %] |
|
56 |
<h2> |
|
57 |
[% IF CAN_EDIT %][% 'Edit file' | $T8 %][% ELSE %][% 'Display file' | $T8 %][% END %] |
|
58 |
[% HTML.escape(display_filename) %] |
|
59 |
</h2> |
|
39 | 60 |
|
40 |
</p> |
|
41 |
|
|
42 |
<hr> |
|
43 |
[% END %] |
|
44 |
|
|
45 |
[% IF SHOW_CONTENT %] |
|
46 |
<h2> |
|
47 |
[% IF CAN_EDIT %][% 'Edit file' | $T8 %][% ELSE %][% 'Display file' | $T8 %][% END %] [% HTML.escape(display_filename) %] |
|
48 |
</h2> |
|
49 |
|
|
50 |
[% IF CAN_EDIT %] |
|
61 |
[% IF CAN_EDIT %] |
|
51 | 62 |
<p><textarea name="content" id="edit_content" cols="100" rows="25"[% IF edit %] class="initial_focus"[% END %]>[% HTML.escape(content) %]</textarea></p> |
52 |
|
|
53 |
[% ELSE %] |
|
54 |
|
|
63 |
[% ELSE %] |
|
55 | 64 |
<p><pre class="filecontent">[% HTML.escape(content) %]</pre></p> |
65 |
[% END %] <!-- CAN_EDIT --> |
|
56 | 66 |
|
57 |
[% END %] <!-- CAN_EDIT --> |
|
58 |
|
|
59 |
[% END %] <!-- SHOW_CONTENT --> |
|
67 |
[% END %] <!-- SHOW_CONTENT --> |
|
60 | 68 |
|
61 |
</form> |
|
69 |
</form> |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/am/edit_templates.html