Changeset 766 for trunk/templates


Ignore:
Timestamp:
08/24/15 18:10:42 (9 years ago)
Author:
Kris Deugau
Message:

/trunk

Fixes for "Allocation complete" screen:

  • Refine and tune order and source of information for breadcrumbs correctness on guided allocation of a static IP
  • Remove a little stale code lingering from "rdepth"
  • Tweak template parameters and CSS/layout for error reporting
Location:
trunk/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/confirm.tmpl

    r692 r766  
    2626<TMPL_IF staticip>
    2727<td>
    28 <select name="alloc_from">
    29 <TMPL_LOOP name=poollist>       <option value="<TMPL_VAR NAME=poolblock>,<TMPL_VAR NAME=poolrdepth>"><TMPL_VAR NAME=poolblock> [<TMPL_VAR NAME=poolfree>] free IP(s) in <TMPL_VAR NAME=poolcit></option>
     28<select name="parent">
     29<TMPL_LOOP name=poollist>       <option value="<TMPL_VAR NAME=poolid>"><TMPL_VAR NAME=poolblock> [<TMPL_VAR NAME=poolfree>] free IP(s) in <TMPL_VAR NAME=poolcit></option>
    3030</TMPL_LOOP></select>
    3131</td>
     
    6161</div>
    6262</TMPL_IF>
    63 
    6463</td>
    6564</tr>
     
    120119<tr>
    121120<td class="center" colspan="2">
    122 <TMPL_UNLESS poollist><input type="hidden" name="alloc_from" value="<TMPL_VAR NAME=alloc_from>"></TMPL_UNLESS>
     121<TMPL_UNLESS poollist>
     122<input type="hidden" name="alloc_from" value="<TMPL_VAR NAME=alloc_from>">
    123123<input type="hidden" name="parent" value="<TMPL_VAR NAME=parent>">
     124</TMPL_UNLESS>
    124125<input type="hidden" name="fbid" value="<TMPL_VAR NAME=fbid>">
    125126<TMPL_IF resvblock><input type="hidden" name="reserve" value="<TMPL_VAR NAME=reserve>"></TMPL_IF>
  • trunk/templates/insert.tmpl

    r633 r766  
    11<TMPL_IF err>
    22<div class="err">
    3 <p><TMPL_VAR NAME=err></p>
     3<div class="heading"><TMPL_VAR NAME=err></div>
     4<p><TMPL_VAR NAME=errmsg></p>
    45<input type="button" value="Back" onclick="history.go(-1)">
    56</div>
     
    1213</TMPL_IF>
    1314</div>
    14 <div class="center">IPs in <a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=listpool&amp;pool=<TMPL_VAR
    15 NAME=parent>"><TMPL_VAR NAME=pool></a></div>
     15<div class="center">IPs in <a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=listpool&amp;pool=<TMPL_VAR NAME=parentid>"><TMPL_VAR NAME=parentblock></a></div>
    1616<TMPL_ELSE>
    1717<div class="center">
Note: See TracChangeset for help on using the changeset viewer.