Changeset 513


Ignore:
Timestamp:
10/12/12 15:48:06 (12 years ago)
Author:
Kris Deugau
Message:

/branches/htmlform

Finally dug up a least-nasty way to effectively get rid of the
useless <legend> tag (required in a <fieldset>, in turn required
in a <form>, if you want to be valid HTML 4.01 Strict).
See #3.

Location:
branches/htmlform
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • branches/htmlform/ipdb.css

    r511 r513  
    209209        background: #d0e0e0;
    210210}
     211
     212.noshow {
     213        visibility: none;
     214        height: 0;
     215        width: 0;
     216}
  • branches/htmlform/templates/addmaster.tmpl

    r511 r513  
    22<div class="heading">Add new master IP block</div><br>
    33<form method="POST" action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi">
    4 <fieldset><legend></legend>
     4<fieldset><legend class="noshow">&nbsp;</legend>
    55<table class="regular" cellspacing="1" cellpadding="1">
    66<tr class="row0">
  • branches/htmlform/templates/admin/alloc.tmpl

    r511 r513  
    33<TMPL_ELSE>
    44<form method="POST" action="admin.cgi">
    5 <fieldset><legend></legend>
     5<fieldset><legend class="noshow">&nbsp;</legend>
    66<table class="regular">
    77<tr class="row0">
  • branches/htmlform/templates/admin/edcust.tmpl

    r483 r513  
    11<form action="admin.cgi" method="POST">
    2 <fieldset><legend></legend>
     2<fieldset><legend class="noshow">&nbsp;</legend>
    33<input type="hidden" name="action" value="updcust">
    44<table border="1">
  • branches/htmlform/templates/admin/ednotice.tmpl

    r487 r513  
    11<h4>Editing recipient list for '<TMPL_VAR NAME=dispnotice>':</h4>
    22<form action="admin.cgi" method="POST">
    3 <fieldset><legend></legend>
     3<fieldset><legend class="noshow">&nbsp;</legend>
    44<input type="hidden" name="code" value="<TMPL_VAR NAME=code>">
    55<input type="hidden" name="action" value="updnotice">
  • branches/htmlform/templates/admin/emailnotice.tmpl

    r487 r513  
    1919
    2020<form action=admin.cgi method="POST">
    21 <fieldset><legend></legend>
     21<fieldset><legend class="noshow">&nbsp;</legend>
    2222<input type="hidden" name="action" value="addnotice">
    2323<table border="1">
  • branches/htmlform/templates/admin/listcust.tmpl

    r483 r513  
    11Add new entry:
    22<form action="admin.cgi" method="POST">
    3 <fieldset><legend></legend>
     3<fieldset><legend class="noshow">&nbsp;</legend>
    44<input type="hidden" name="action" value="edcust">
    55<input type="hidden" name="newcust" value="1">
  • branches/htmlform/templates/admin/main.tmpl

    r483 r513  
    33main interface if at all possible.</div>
    44<hr>
    5 <form action="admin.cgi" method="POST"><fieldset><legend></legend>
     5<form action="admin.cgi" method="POST"><fieldset><legend class="noshow">&nbsp;</legend>
    66
    77<input type="hidden" name="action" value="alloc">
     
    1616
    1717<hr>
    18 <form action="admin.cgi" method="POST"><fieldset><legend></legend>
     18<form action="admin.cgi" method="POST"><fieldset><legend class="noshow">&nbsp;</legend>
    1919<input type="hidden" name="action" value="alloctweak">
    2020Manually update allocation data in this /24: <input name="allocfrom">
     
    2525<div>
    2626rWHOIS tools:
    27 <form action="admin.cgi" method="POST"><fieldset><legend></legend>
     27<form action="admin.cgi" method="POST"><fieldset><legend class="noshow">&nbsp;</legend>
    2828<input type="hidden" name="action" value="touch">
    2929Bump "last updated" timestamp on this master:
  • branches/htmlform/templates/admin/showallocs.tmpl

    r487 r513  
    44<tr>
    55<form action="admin.cgi" method="POST">
    6 <fieldset><legend></legend>
     6<fieldset><legend class="noshow">&nbsp;</legend>
    77<input type="hidden" name="action" value="update">
    88<td><TMPL_VAR NAME=cidr><input type="hidden" value="<TMPL_VAR NAME=cidr>" name=block></td>
  • branches/htmlform/templates/admin/showusers.tmpl

    r484 r513  
    55</ul>
    66<hr>Add new user:<form action="admin.cgi" method="POST">
    7 <fieldset><legend></legend>
     7<fieldset><legend class="noshow">&nbsp;</legend>
    88Username: <input name=username><br>
    99Password: <input name=password> <input type=checkbox name=preenc>Password is pre-encrypted (MUST be crypt() encrypted)<br>
     
    2020<tr>
    2121<form action="admin.cgi" method="POST">
    22 <fieldset><legend></legend>
     22<fieldset><legend class="noshow">&nbsp;</legend>
    2323<input type="hidden" name="action" value="updacl">
    2424<td><TMPL_VAR NAME=username><input type="hidden" name="username" value="<TMPL_VAR NAME=username>"></td>
     
    3232<td>
    3333<form action="admin.cgi" method="POST">
    34 <fieldset><legend></legend>
     34<fieldset><legend class="noshow">&nbsp;</legend>
    3535<input type=hidden name=action value=deluser>
    3636<input type=hidden name=username value="<TMPL_VAR NAME=username>">
  • branches/htmlform/templates/admin/tweakpool.tmpl

    r487 r513  
    11Listing pool <TMPL_VAR NAME=pool>:
    22<form action="admin.cgi" method="POST">
    3 <fieldset><legend></legend>
     3<fieldset><legend class="noshow">&nbsp;</legend>
    44<input type="hidden" name="action" value="updatepool">
    55<table border="1">
  • branches/htmlform/templates/assign.tmpl

    r511 r513  
    1010
    1111<form method="post" action="main.cgi" class="regular">
    12 <fieldset><legend></legend>
     12<fieldset><legend class="noshow">&nbsp;</legend>
    1313
    1414<TMPL_IF block>
  • branches/htmlform/templates/confirm.tmpl

    r512 r513  
    1010
    1111<form method="POST" action="main.cgi" class="regular">
    12 <fieldset><legend></legend>
     12<fieldset><legend class="noshow">&nbsp;</legend>
    1313<table class="regular" cellspacing="1" cellpadding="1">
    1414
  • branches/htmlform/templates/delete.tmpl

    r512 r513  
    5757<td class="center" colspan="2">
    5858<form action="main.cgi" method="POST" class="regular">
    59 <fieldset><legend></legend>
     59<fieldset><legend class="noshow">&nbsp;</legend>
    6060<input type="button" value="Back" onclick="history.go(-1)"><input type="submit" value="Confirm">
    6161<input type="hidden" name="block" value="<TMPL_VAR NAME=block>">
  • branches/htmlform/templates/edit.tmpl

    r512 r513  
    99<TMPL_IF maychange>
    1010<form method="POST" action="main.cgi">
    11 <fieldset><legend></legend>
     11<fieldset><legend class="noshow">&nbsp;</legend>
    1212<input type="hidden" name="action" value="update">
    1313<input type="hidden" name="block" value="<TMPL_VAR NAME=block>">
     
    159159<tr><td class="center">
    160160<form method="POST" action="main.cgi">
    161 <fieldset><legend></legend>
     161<fieldset><legend class="noshow">&nbsp;</legend>
    162162<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>">
    163163<input type="hidden" name="action" value="delete">
  • branches/htmlform/templates/header.tmpl

    r511 r513  
    2727<div id="qsearch">
    2828<form method="post" action="<TMPL_VAR NAME=webpath>/cgi-bin/search.cgi">
    29 <fieldset><legend></legend>
     29<fieldset><legend class="noshow">&nbsp;</legend>
    3030Quick Search:
    3131<input type="text" name="input" size="20" maxlength="50" class="regular">
  • branches/htmlform/templates/newcity.tmpl

    r511 r513  
    1919<TMPL_ELSE>
    2020<form action="newcity.cgi" method="POST">
    21 <fieldset><legend></legend>
     21<fieldset><legend class="noshow">&nbsp;</legend>
    2222<table>
    2323<tr class="color1"><td>Enter new city:</td><td><input name="city"></td></tr>
  • branches/htmlform/templates/newnode.tmpl

    r511 r513  
    1919<TMPL_ELSE>
    2020<form action="newnode.cgi" method="POST">
    21 <fieldset><legend></legend>
     21<fieldset><legend class="noshow">&nbsp;</legend>
    2222<table>
    2323<tr class="color1"><td>Enter new AP/switch name/location:</td><td><input name="nodename"></td></tr>
  • branches/htmlform/templates/nodesearch.tmpl

    r511 r513  
    55<div class="heading">Switch/tower search</div>
    66<form action="<TMPL_VAR NAME=webpath>/cgi-bin/search.cgi" method=POST>
    7 <fieldset><legend></legend>
     7<fieldset><legend class="noshow">&nbsp;</legend>
    88<table cellspacing="1" cellpadding="2">
    99<tr class="row0">
  • branches/htmlform/templates/search/compsearch.tmpl

    r511 r513  
    33
    44<form action="<TMPL_VAR NAME=webpath>/cgi-bin/search.cgi" method=POST>
    5 <fieldset><legend></legend>
     5<fieldset><legend class="noshow">&nbsp;</legend>
    66<input type="hidden" name="stype" value="c">
    77<input type="hidden" name="page" value="1">
  • branches/htmlform/templates/showmaster.tmpl

    r511 r513  
    2828<br>
    2929<form action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi" method=POST>
    30 <fieldset><legend></legend>
     30<fieldset><legend class="noshow">&nbsp;</legend>
    3131<input type=hidden name=action value="delete">
    3232<input type=hidden name=block value="<TMPL_VAR NAME=master>">
  • branches/htmlform/templates/showrouted.tmpl

    r511 r513  
    3434<br>
    3535<form action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi" method=POST>
    36 <fieldset><legend></legend>
     36<fieldset><legend class="noshow">&nbsp;</legend>
    3737<input type=hidden name=action value="delete">
    3838<input type=hidden name=block value="1.2.12.0/23">
Note: See TracChangeset for help on using the changeset viewer.