Ignore:
Timestamp:
08/17/10 15:32:16 (14 years ago)
Author:
Kris Deugau
Message:

/branches/htmlfrom

Block edit page should be complete and even valid.
Still has some slight fishyness with column edges not aligned due
to stupid "can't start a form in between table rows" validation spec
idiocy. (<table><form><tr>...</tr></form><form><tr>...</tr></form></table>
is not valid for strict HTML 4.01.)
See #3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/htmlform/templates/edit.tmpl

    r469 r470  
    22<div class="heading">Edit the information below</div>
    33
    4 <!-- table class="indent" size="33%" cellspacing=1 bgcolor="black" -->
    5 
    6 <table>
     4<table cellpadding="0" cellspacing="0">
    75<tr>
    86<td>
     
    1513</TMPL_IF>
    1614
    17 <table cellspacing=1>
     15<table cellspacing="1">
    1816
    1917<tr class="row0">
     
    4341<TMPL_ELSE>
    4442<TMPL_VAR NAME=disptype>
     43<input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>">
    4544</TMPL_IF>
    4645</td>
     
    5857</select>
    5958<TMPL_ELSE>
    60 <TMPL_VAR NAME=nodename>
     59<TMPL_IF nodename><TMPL_VAR NAME=nodename><TMPL_ELSE>N/A</TMPL_IF>
    6160</TMPL_IF>
    6261<TMPL_ELSE>
     
    8079<td class=heading>SWIPed?:</td>
    8180<td class=regular>
     81<TMPL_IF swipable>
    8282<TMPL_IF maychange>
    83 <input type=checkbox name=swip <TMPL_IF swip>checked=yes</TMPL_IF>>
     83<input type="checkbox" name="swip" <TMPL_IF swip>checked="checked"</TMPL_IF>>
    8484<TMPL_ELSE>
    8585<TMPL_IF swip>Yes<TMPL_ELSE>No</TMPL_IF>
     86</TMPL_IF>
     87<TMPL_ELSE>
     88N/A
    8689</TMPL_IF>
    8790</td>
     
    127130<TMPL_IF nocling>
    128131<tr class="row0">
    129 <td class=heading>Restricted data:</td>
    130 <td class=regular>
     132<td class="heading" valign="top">Restricted data:</td>
     133<td class="regular">
    131134<TMPL_IF maychange>
    132135<textarea rows="3" cols="64" name="privdata" class="regular"><TMPL_VAR NAME=privdata></textarea>
     
    137140</tr>
    138141</TMPL_IF>
    139 </table>
    140142
    141143<TMPL_IF maychange>
    142 <div class="row0"><input type="submit" value=" Update this block " class="regular"></div>
     144<tr class="row<TMPL_IF nocling>1<TMPL_ELSE>0</TMPL_IF>">
     145<td colspan="2" class="center">
     146<input type="submit" value=" Update this block " class="regular">
     147</td>
     148</tr>
     149</TMPL_IF>
     150</table>
     151<TMPL_IF maychange>
    143152</fieldset>
    144153</form>
     
    146155
    147156<TMPL_IF maydel>
     157</td></tr>
     158<tr><td class="center">
    148159<form method="POST" action="main.cgi">
    149 <div class="row1">
     160<fieldset><legend></legend>
     161<div class="row<TMPL_IF nocling><TMPL_IF maychange>0<TMPL_ELSE>1</TMPL_IF><TMPL_ELSE><TMPL_IF maychange>1<TMPL_ELSE>0</TMPL_IF></TMPL_IF>">
    150162<input type="hidden" name="action" value="delete">
    151 <input type="hidden" name="block" value="1.2.14.24/29">
    152 <input type="hidden" name="alloctype" value="me">
     163<input type="hidden" name="block" value="<TMPL_VAR NAME=block>">
     164<input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>">
    153165<input type=submit value=" Delete this block ">
    154166</div>
     167</fieldset>
    155168</form>
    156169</TMPL_IF>
     170
    157171</td>
    158172</tr>
Note: See TracChangeset for help on using the changeset viewer.