Ignore:
Timestamp:
Apr 18, 2007, 4:26:14 PM (15 years ago)
Author:
kake
Message:

Rewrote the HTML of the edit page to use <div>s instead of tables, and to be vaguely more sane in general.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/openguides_information_boxes.tt

    r725 r1020  
    1 <fieldset>
    2   <legend>OpenGuides information</legend>
    3   <table summary="Fields for entering additional information summarising the node and the change being made to it">
    4     <tr>
    5       <td colspan="2"><label for="summary">One-line summary of this node:</label></td>
    6     </tr>
    7     <tr>
    8       <td colspan="2"><input type="text" size="50" id="summary" name="summary" value="[% summary %]" /></td>
    9     </tr>
    10     <tr>
    11       <td>
    12         <strong><label for="username">Your username</label> (<a href="preferences.cgi">set</a>)</strong>
    13       </td>
    14       <td>
    15         <input type="text" size="30" name="username" id="username" value="[% username %]" />
    16       </td>
    17     </tr>
    18     <tr>
    19       <td><strong><label for="comment">Comment about your changes:</label></strong></td>
    20       <td><input type="text" size="30" name="comment" id="comment" value="[% comment %]" /></td>
    21     </tr>
    22     <tr>
    23       <td><strong><label for="edit_type">Type of edit:</label></strong></td>
    24       <td>
    25         <select name="edit_type" id="edit_type">
    26           <option [% IF edit_type == "Normal edit" %] selected="1" [% END %] value="Normal edit">Normal edit</option>
    27           <option [% IF edit_type == "Minor tidying" %] selected="1" [% END %] value="Minor tidying">Minor tidying</option>
    28         </select>
    29       </td>
    30     </tr>
    31   </table>
     1<fieldset id="openguides_information">
     2  <legend>About your edit</legend>
     3
     4  <div class="edit_form_group" id="username_group">
     5    <label for="username">
     6      Your username (<a href="preferences.cgi">set it</a>):
     7    </label>
     8    <div class="edit_box">
     9      <input type="text" size="30" name="username" id="username"
     10       value="[% username %]" />
     11    </div>
     12  </div>
     13
     14  <div class="edit_form_group" id="comment_group">
     15    <label for="comment">
     16      Comment about your changes:
     17    </label>
     18    <div class="edit_box">
     19      <input type="text" size="30" name="comment" id="comment"
     20       value="[% comment %]" />
     21    </div>
     22  </div>
     23
     24  <div class="edit_form_group" id="edit_type_group">
     25    <label for="edit_type">
     26      Type of edit:
     27    </label>
     28    <div class="edit_box">
     29      <select name="edit_type" id="edit_type">
     30        <option [% IF edit_type == "Normal edit" %] selected="selected" [% END %] value="Normal edit">Normal edit</option>
     31        <option [% IF edit_type == "Minor tidying" %] selected="selected" [% END %] value="Minor tidying">Minor tidying</option>
     32      </select>
     33    </div>
     34  </div>
     35
    3236</fieldset>
    3337
Note: See TracChangeset for help on using the changeset viewer.