Changeset 702 for trunk/templates


Ignore:
Timestamp:
02/23/15 18:16:11 (9 years ago)
Author:
Kris Deugau
Message:

/trunk

Add "split block" feature. See #7. May still need a little tweaking
("List IPs" link for pools, refiddle rDNS template records?)

Also stubbed out "shrink block" (branch for "split block"), and added
a placeholder for "merge blocks".

Location:
trunk/templates
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/edit.tmpl

    r695 r702  
    55
    66<tr>
    7 <td>
     7<td colspan="3">
    88
    99<TMPL_IF maychange>
     
    221221</TMPL_IF>
    222222
     223</td></tr>
     224<tr>
     225<td class="center">
     226
     227<div class="revdata">
     228
     229<TMPL_IF maymerge>
     230<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
     231<fieldset><legend class="noshow">&nbsp;</legend>
     232<input type="hidden" name="action" value="merge">
     233<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
     234<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
     235<div class="button_l">
     236<input type="submit" value=" Merge with adjacent block(s) ">
     237</div>
     238</fieldset>
     239</form>
     240</TMPL_IF>
     241
    223242<TMPL_IF maydel>
    224 </td></tr>
    225 <tr><td class="center">
    226 <form method="POST" action="main.cgi">
    227 <fieldset><legend class="noshow">&nbsp;</legend>
    228 <div class="revdata">
     243<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
     244<fieldset><legend class="noshow">&nbsp;</legend>
    229245<input type="hidden" name="action" value="delete">
    230246<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
    231247<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
    232248<input type=submit value=" Delete this block ">
    233 </div>
    234 </fieldset>
    235 </form>
    236 </TMPL_IF>
    237 
    238 </td>
     249</fieldset>
     250</form>
     251</TMPL_IF>
     252
     253<TMPL_IF maysplit>
     254<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
     255<fieldset><legend class="noshow">&nbsp;</legend>
     256<input type="hidden" name="action" value="split">
     257<input type="hidden" name="block" value="<TMPL_VAR NAME=id>">
     258<input type="hidden" name="basetype" value="<TMPL_VAR NAME=basetype>">
     259<div class="button_r">
     260<input type=submit value=" Split/shrink this block ">
     261</div>
     262</fieldset>
     263</form>
     264</TMPL_IF>
     265
     266</div>
     267
     268</td>
     269
    239270</tr>
    240271</table>
Note: See TracChangeset for help on using the changeset viewer.