6 [% IF type == 'templates' %]
7 <p style="text-align: right;">[<a href="doc/html/ch03s02.html" target="_blank" title="[% 'Open in new window' | $T8 %]">[% 'Help Template Variables' | $T8 %]</a>]</p>
10 <form method="post" name="Form" action="amtemplates.pl">
12 [% FOREACH var = HIDDEN %]<input type="hidden" name="[% HTML.escape(var.name) %]" value="[% HTML.escape(var.value) %]">[% END %]
14 [% IF SHOW_EDIT_OPTIONS %]
16 [% 'Template' | $T8 %]
17 <select name="formname">
18 [% FOREACH row = FORMNAME %]<option value="[% HTML.escape(row.value) %]" [% IF row.value == formname %]selected[% END %]>[% HTML.escape(row.label) %]</option>[% END %]
21 [% IF LANGUAGE.size %]
22 [% 'Language' | $T8 %]
23 <select name="language">
25 [% FOREACH row = LANGUAGE %]<option value="[% HTML.escape(row.value) %]" [% IF row.value == language %]selected[% END %]>[% HTML.escape(row.label) %]</option>[% END %]
31 <select name="printer">
33 [% FOREACH row = PRINTER %]<option value="[% HTML.escape(row.value) %]" [% IF row.value == printer %]selected[% END %]>[% HTML.escape(row.label) %]</option>[% END %]
37 <input type="hidden" name="display_nextsub" value="display_template">
39 <input name="action" type="submit" class="submit" value="[% 'Display' | $T8 %]">
50 [% IF CAN_EDIT %][% 'Edit file' | $T8 %][% ELSE %][% 'Display file' | $T8 %][% END %] [% HTML.escape(display_filename) %]
54 <p><textarea name="content" id="edit_content" cols="100" rows="25"[% IF edit %] class="initial_focus"[% END %]>[% HTML.escape(content) %]</textarea></p>
57 <input type="hidden" name="save_nextsub" value="save_template">
58 <input type="submit" name="action" value="[% 'Save' | $T8 %]">
59 <input type="button" onclick="history.back()" value="[% 'Back' | $T8 %]">
64 <input type="hidden" name="edit_nextsub" value="edit_template">
66 <p><input name="action" type="submit" class="submit" value="[% 'Edit' | $T8 %]"></p>
68 <p><pre class="filecontent">[% HTML.escape(content) %]</pre></p>
70 [% IF SHOW_SECOND_EDIT_BUTTON %]
71 <p><input name="action" type="submit" class="submit" value="[% 'Edit' | $T8 %]"></p>
74 [% END %] <!-- CAN_EDIT -->
76 [% END %] <!-- SHOW_CONTENT -->