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>
10 <form method="post" name="Form" action="amtemplates.pl" id="form">
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 %]">
48 [% IF CAN_EDIT %][% 'Edit file' | $T8 %][% ELSE %][% 'Display file' | $T8 %][% END %] [% HTML.escape(display_filename) %]
52 <p><textarea name="content" id="edit_content" cols="100" rows="25"[% IF edit %] class="initial_focus"[% END %]>[% HTML.escape(content) %]</textarea></p>
56 <p><pre class="filecontent">[% HTML.escape(content) %]</pre></p>
58 [% END %] <!-- CAN_EDIT -->
60 [% END %] <!-- SHOW_CONTENT -->