source: trunk/templates/edit_form.tt @ 559

Last change on this file since 559 was 559, checked in by kake, 17 years ago

Huge-ass pile of changes to make geo stuff work worldwide.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.3 KB
Line 
1[% INCLUDE header.tt page_title = "Edit $node_name - $site_name" %]
2<div id="content">
3
4<h1 align="center">Edit &quot;[% node_name %]&quot;</h1>
5
6[% IF preview_html AND preview_above_edit_box %]
7  <h2>Preview</h2>
8  [% INCLUDE display_metadata.tt %]
9  [% preview_html %]
10  <br clear="all" />
11[% END %]
12
13<form action="[% cgi_url %]" method="POST" enctype="application/x-www-form-urlencoded">
14  <table summary="Form for editing page attributes">
15    <tr>
16      <td colspan="2">
17        [%# Put the td outside the TRY-CATCH because TT will print everything
18            up to where it gets the error - avoid mismatched tags. %]
19        [% TRY %]
20          [% INCLUDE custom_licence.tt %]
21        [% CATCH %]
22        [% END %]
23      </td>
24    </tr>
25    <tr>
26      <td align="center"><input type="submit" name="preview" value="Preview changes" class="form_button" /></td>
27      <td align="center"><input type="submit" name="Save" value="Save changes" class="form_button" /></td>
28    </tr>
29    <tr>
30      <td colspan="2" align="center"><a href="[% cgi_url %]?[% node_param %]">(cancel edit)</a></td>
31    </tr>
32    <tr>
33      <td colspan="2">
34        <fieldset>
35          <legend>Main information (required)</legend>
36          <table summary="Fields containing the node's main content and its category and locale listings">
37            <tr>
38              <td class="label"><label for="content">Content:</label></td>
39              <td><textarea name="content" id="content" rows="21" cols="70" wrap="virtual">[% content %]</textarea></td>
40            </tr>
41            <tr>
42              <td class="label"><label for="locales">Locales:<br />(one per line)</label></td>
43[%# NOTE: The whitespace in the next two textareas is deliberate, to avoid
44  getting bogus tabs and blank lines in the textarea content.  Please
45  do not reintroduce this bug.  Test on more than one browser. #%]
46              <td><textarea name="locales" id="locales" rows="5" cols="70">[% FOREACH locale = locales %][% locale.name %]
47[% END %]</textarea></td>
48            </tr>
49            <tr>
50              <td class="label"><label for="categories">Categories:<br />(one per line)</label></td>
51              <td><textarea name="categories" id="categories" rows="5" cols="70">[% FOREACH category = categories %][% category.name %]
52[% END %]</textarea></td>
53            </tr>
54          </table>
55        </fieldset>
56        &nbsp;
57        <fieldset>
58          <legend>Metadata (optional)</legend>
59          <table summary="Form for entering metadata about the subject of this node">
60            <tr>
61              <td class="label"><label for="phone">Phone:</label></td>
62              <td><input type="text" size="50" id="phone" name="phone" value="[% phone %]" /></td>
63            </tr>
64            <tr>
65              <td class="label"><label for="fax">Fax:</label></td>
66              <td><input type="text" size="50" id="fax" name="fax" value="[% fax %]" /></td>
67            </tr>
68            <tr>
69              <td class="label"><label for="website">Website:</label></td>
70              <td><input type="text" size="50" id="website" name="website" value="[% website %]" /></td>
71            </tr>
72            <tr>
73              <td class="label"><label for="hours">Opening hours:</label></td>
74              <td><input type="text" size="50" id="hours" name="hours_text" value="[% hours_text %]" /></td>
75            </tr>
76            <tr>
77              <td class="label"><label for="address">Address:</label></td>
78              <td><input type="text" size="50" id="address" name="address" value="[% address %]" /></td>
79            </tr>
80            <tr>
81              <td class="label"><label for="postcode">Postcode:</label></td>
82              <td><input type="text" size="50" id="postcode" name="postcode" value="[% postcode %]" /></td>
83            </tr>
84            <tr>
85              <td class="label"><label for="[% coord_field_1 %]">[% coord_field_1_name %]:</label></td>
86              <td><input type="text" size="50" id="[% coord_field_1 %]" name="[% coord_field_1 %]" value="[% coord_field_1_value %]" /></td>
87            </tr>
88            <tr>
89              <td class="label"><label for="[% coord_field_2 %]">[% coord_field_2_name %]:</label></td>
90              <td><input type="text" size="50" id="[% coord_field_2 %]" name="[% coord_field_2 %]" value="[% coord_field_2_value %]" /></td>
91            </tr>
92            <tr>
93              <td class="label"><label for="map_link">Map link:</label></td>
94              <td><input type="text" size="70" id="map_link" name="map_link" value="[% map_link %]" /></td>
95            </tr>
96          </table>
97        </fieldset>
98        &nbsp;
99        [% INCLUDE openguides_information_boxes.tt %]
100      </td>
101    </tr>
102    <tr>
103      <td align="center"><input type="submit" name="preview" value="Preview changes" class="form_button" /></td>
104      <td align="center"><input type="submit" name="Save" value="Save changes" class="form_button" /></td>
105    </tr>
106    <tr>
107      <td colspan="2" align="center">
108        <a href="[% cgi_url %]?[% node_param %]">(cancel edit)</a>
109      </td>
110    </tr>
111  </table>
112  <input type="hidden" name="title" value="[% node_name %]" />
113  <input type="hidden" name="checksum" value="[% checksum %]" />
114</form>
115
116[% IF preview_html AND NOT preview_above_edit_box %]
117  <h2>Preview</h2>
118  [% INCLUDE display_metadata.tt %]
119  [% preview_html %]
120  <br clear="all" />
121[% END %]
122
123[% INCLUDE footer.tt %]
Note: See TracBrowser for help on using the repository browser.