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