Changeset 928 for trunk/templates
- Timestamp:
- 03/10/07 23:49:39 (21 months ago)
- Files:
-
- 1 modified
-
trunk/templates/edit_form.tt (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/templates/edit_form.tt
r859 r928 1 [% USE CGI %] 1 2 [% INCLUDE header.tt page_title = "Edit $node_name - $site_name" %] 2 3 <div id="content"> … … 4 5 <div id="maincontent"> 5 6 <h1 align="center">Edit "[% node_name %]"</h1> 7 8 [% IF conflict %] 9 <div class="warning_text"> 10 Someone has committed changes to this node since you began editing. 11 You will need to manually merge your changes into the new version. 12 </div> 13 [% END %] 6 14 7 15 [% IF preview_html AND preview_above_edit_box %] … … 15 23 <table summary="Form for editing page attributes"> 16 24 <tr> 17 <td colspan=" 2">25 <td colspan="[% IF conflict %]3[% ELSE %]2[% END %]"> 18 26 [%# Put the td outside the TRY-CATCH because TT will print everything 19 27 up to where it gets the error - avoid mismatched tags. %] … … 39 47 </tr> 40 48 <tr> 41 <td colspan=" 2" align="center"><a href="[% cgi_url %]?[% node_param %]">(cancel edit)</a></td>49 <td colspan="[% IF conflict %]3[% ELSE %]2[% END %]" align="center"><a href="[% cgi_url %]?[% node_param %]">(cancel edit)</a></td> 42 50 </tr> 43 51 <tr> 44 <td colspan=" 2">52 <td colspan="[% IF conflict %]3[% ELSE %]2[% END %]"> 45 53 <fieldset> 46 54 <legend>Main information (required)</legend> … … 49 57 <td class="label"><label for="content">Content:</label></td> 50 58 <td><textarea name="content" id="content_textarea" rows="21" cols="70" wrap="virtual">[% content %]</textarea></td> 59 [% IF conflict %] 60 <td><small>[% CGI.escapeHTML(new_content) %]</small></td> 61 [% END %] 51 62 </tr> 52 63 <tr> … … 57 68 <td><textarea name="locales" id="locales" rows="5" cols="70">[% FOREACH locale = locales %][% locale.name %] 58 69 [% END %]</textarea></td> 70 [% IF conflict %] 71 <td>[% FOREACH locale = new_locales %][% CGI.escapeHTML(locale) %]<br/>[% END %]</td> 72 [% END %] 59 73 </tr> 60 74 <tr> … … 62 76 <td><textarea name="categories" id="categories" rows="5" cols="70">[% FOREACH category = categories %][% category.name %] 63 77 [% END %]</textarea></td> 78 [% IF conflict %] 79 <td>[% FOREACH category = new_categories %][% CGI.escapeHTML(category) %]<br/>[% END %]</td> 80 [% END %] 64 81 </tr> 65 82 </table> … … 76 93 [% INCLUDE node_photo_notes.tt %] 77 94 </td> 95 [% IF conflict %] 96 <td>[% CGI.escapeHTML(new_node_image) %]</td> 97 [% END %] 78 98 </tr> 79 99 [% END %] … … 81 101 <td class="label"><label for="phone">Phone:</label></td> 82 102 <td><input type="text" size="50" id="phone" name="phone" value="[% phone %]" /></td> 103 [% IF conflict %] 104 <td>[% CGI.escapeHTML(new_phone) %]</td> 105 [% END %] 83 106 </tr> 84 107 <tr> 85 108 <td class="label"><label for="fax">Fax:</label></td> 86 109 <td><input type="text" size="50" id="fax" name="fax" value="[% fax %]" /></td> 110 [% IF conflict %] 111 <td>[% CGI.escapeHTML(new_fax) %]</td> 112 [% END %] 87 113 </tr> 88 114 <tr> 89 115 <td class="label"><label for="website">Website:</label></td> 90 116 <td><input type="text" size="50" id="website" name="website" value="[% website %]" /></td> 117 [% IF conflict %] 118 <td>[% CGI.escapeHTML(new_website) %]</td> 119 [% END %] 91 120 </tr> 92 121 <tr> 93 122 <td class="label"><label for="hours">Opening hours:</label></td> 94 123 <td><input type="text" size="50" id="hours" name="hours_text" value="[% hours_text %]" /></td> 124 [% IF conflict %] 125 <td>[% CGI.escapeHTML(hours_text) %]</td> 126 [% END %] 95 127 </tr> 96 128 <tr> 97 129 <td class="label"><label for="address">Address:</label></td> 98 130 <td><input type="text" size="50" id="address" name="address" value="[% address %]" /></td> 131 [% IF conflict %] 132 <td>[% CGI.escapeHTML(new_address) %]</td> 133 [% END %] 99 134 </tr> 100 135 <tr> 101 136 <td class="label"><label for="postcode">Postcode:</label></td> 102 137 <td><input type="text" size="50" id="postcode" name="postcode" value="[% postcode %]" /></td> 138 [% IF conflict %] 139 <td>[% CGI.escapeHTML(new_postcode) %]</td> 140 [% END %] 103 141 </tr> 104 142 <tr> 105 143 <td class="label"><label for="[% coord_field_1 %]">[% coord_field_1_name %]:</label></td> 106 144 <td><input type="text" size="50" id="[% coord_field_1 %]" name="[% coord_field_1 %]" value="[% coord_field_1_value %]" /></td> 145 [% IF conflict %] 146 <td>[% CGI.escapeHTML(new_coord_field_1_value) %]</td> 147 [% END %] 107 148 </tr> 108 149 <tr> 109 150 <td class="label"><label for="[% coord_field_2 %]">[% coord_field_2_name %]:</label></td> 110 151 <td><input type="text" size="50" id="[% coord_field_2 %]" name="[% coord_field_2 %]" value="[% coord_field_2_value %]" /></td> 152 [% IF conflict %] 153 <td>[% CGI.escapeHTML(new_coord_field_2_value) %]</td> 154 [% END %] 111 155 </tr> 112 156 <tr> … … 131 175 </tr> 132 176 <tr> 133 <td colspan=" 2" align="center">177 <td colspan="[% IF conflict %]3[% ELSE %]2[% END %]" align="center"> 134 178 <a href="[% cgi_url %]?[% node_param %]">(cancel edit)</a> 135 179 </td>
