Ignore:
Timestamp:
08/05/10 17:34:29 (14 years ago)
Author:
Kris Deugau
Message:

/branches/htmlform

Validation nitpick fix in assign.tmpl - also fixes missing field
name on alloctype list. <headdesk>
Convert new assignment result page to template.
Add missing error handling, missing IP pool selection on confirm.tmpl
Create footer template object earlier to allow pushing bits into
it during processing
Prepare to move initial output further down execution to prepare for
proper error handling in subs
Fix probable bug introduced with r456 where the "Routing" type isn't
available when it should be. Maybe. Probably.
Error messages for sub insertAssign() and confirmAssign could arguably
be further moved into the templates, but the complexity of the template
would go *way* up with little or no benefit.
See #3.

Location:
branches/htmlform/templates
Files:
1 added
2 edited

Legend:

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

    r460 r463  
    3737<TMPL_VAR NAME=fbdisptype><input type="hidden" name="alloctype" value="<TMPL_VAR NAME=type>">
    3838<TMPL_ELSE>
    39 <select>
     39<select name="alloctype">
    4040<TMPL_LOOP name=typelist>
    4141        <option value="<TMPL_VAR NAME=tval>"<TMPL_VAR NAME=sel>><TMPL_VAR NAME=type></option></TMPL_LOOP>
  • branches/htmlform/templates/confirm.tmpl

    r461 r463  
     1<TMPL_IF err>
     2<div class="err">
     3<p><TMPL_VAR NAME=err></p>
     4<input type="button" value="Back" onclick="history.go(-1)">
     5</div>
     6<TMPL_ELSE>
    17<div class="heading">Please confirm</div>
    28<div class="indent">
     9
     10<form method="POST" action="main.cgi" class="regular">
     11<fieldset><legend></legend>
    312<table class="regular" cellspacing="1" cellpadding="1">
    413
     
    1019<tr class="row1">
    1120<td>Block allocation is taken from:</td>
     21<TMPL_IF staticip>
     22<td>
     23<select name="alloc_from">
     24<TMPL_LOOP name=poollist>       <option value="<TMPL_VAR NAME=poolblock>"><TMPL_VAR NAME=poolblock> [<TMPL_VAR NAME=poolfree>] free IP(s) in <TMPL_VAR NAME=poolcit></option>
     25</TMPL_LOOP></select>
     26</td>
     27<TMPL_ELSE>
    1228<td><TMPL_VAR NAME=alloc_from></td>
     29</TMPL_IF>
    1330</tr>
    1431
     
    5875<tr class="<TMPL_IF privdata>row0<TMPL_ELSE>row1</TMPL_IF>">
    5976<td class="center" colspan="2">
    60 <form method="POST" action="main.cgi" class="regular">
    61 <fieldset><legend></legend>
     77<TMPL_UNLESS poollist><input type="hidden" name="alloc_from" value="<TMPL_VAR NAME=alloc_from>"></TMPL_UNLESS>
    6278<input type="hidden" name="fullcidr" value="<TMPL_VAR NAME=cidr>">
    6379<input type="hidden" name="city" value="<TMPL_VAR NAME=city>">
     
    7692<input type="hidden" name="action" value="<TMPL_VAR NAME=action>">
    7793<input type="button" value="Back" onclick="history.go(-1)"><input type="submit" value="Confirm">
     94</td></tr>
     95</table>
    7896</fieldset>
    7997</form>
    80 </td></tr>
    81 </table>
    8298</div>
     99</TMPL_IF>
Note: See TracChangeset for help on using the changeset viewer.