source: trunk/templates/editsoa.tmpl@ 38

Last change on this file since 38 was 38, checked in by Kris Deugau, 15 years ago

/trunk

checkpoint - big changes!

dns.cgi and DNSDB.pm:

  • all output pages should validate as XHTML 1.0 Strict. For at least another five minutes.
  • add variable to control env dump (which doesn't validate...)
  • fiddle username add to use "uname" as username field, since username seems to cause HTML::Template to barf suddenly... O_o
  • tweak "change current group" form URI for XHTML's idiotic "all ampersands must be exscapededed ALL EVARWERE!!!one11!"
  • check for existence of group, domain, user at beginning of respective add* subs in DNSDB.pm

templates/*:

  • adjust all templates to account for oddities and stupidities of XHTML 1.0. Templates do NOT validate on their own, but the final output should. WTFisms include (but are not limited to):
    • escaped ampersands in links?
    • "<form> can't go here"?
    • <td> can't use nowrap, width?
    • "<fieldset>"?
    • and now that the form fields are enclosed in a fieldset... apparently you can't right-click in "noncontent" space "inside" that element. GRRRRRRR!!!!!
  • CSS now needs work to make things appear properly, due largely to the WTFisms above
  • all this XHTML fixing got me to also normalize and clean up inconsistent usage, general structures, and things that wouldn't even pass HTML 4.0.1 Transitional (I think) - eg missing closing tags on <tr> or <td>
  • delete raw dump of Vega's login page (need to delete a couple others)
File size: 2.3 KB
Line 
1<!-- <TMPL_VAR NAME=sid> -->
2<table class="wholepage"><tr>
3<TMPL_INCLUDE NAME="menu.tmpl">
4
5<td align="center">
6<TMPL_IF update_failed><div class="errmsg">Error updating SOA record: <TMPL_VAR NAME=msg></div></TMPL_IF>
7<div>edit SOA</div>
8<div id="tableholder">
9<table border=0 cellspacing=2 cellpadding=1 width="100%">
10<tr class="darkrowheader">
11 <td colspan=2 class="title"><TMPL_IF NAME=defrec>Edit default SOA record for group <TMPL_VAR NAME=group><TMPL_ELSE>Edit SOA record for <TMPL_VAR NAME=domain></TMPL_IF></td>
12 <td class="title">Systemwide defaults:</td>
13</tr>
14
15<form action="dns.cgi" method=POST>
16<input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>">
17<input type="hidden" name="recid" value="<TMPL_VAR NAME=recid>">
18<input type="hidden" name="page" value="updatesoa">
19<input type="hidden" name="domainid" value="<TMPL_VAR NAME=domainid>">
20
21<tr class="datalinelight">
22 <td class="inputlabel">Primary Name Server</td>
23 <td><input name=prins value="<TMPL_VAR NAME=prins>"></td>
24 <td class="data"><TMPL_VAR NAME=defns></td>
25</tr>
26<tr class="datalinelight">
27 <td class="inputlabel">Contact Address</td>
28 <td><input name=contact value="<TMPL_VAR NAME=contact>"></td>
29 <td class="data"><TMPL_VAR NAME=defcontact></td>
30</tr>
31<tr class="datalinelight">
32 <td class="inputlabel">SOA TTL</td>
33 <td><input name=ttl value="<TMPL_VAR NAME=ttl>"></td>
34 <td class="data"><TMPL_VAR NAME=defsoattl></td>
35</tr>
36<tr class="datalinelight">
37 <td class="inputlabel">Refresh</td>
38 <td><input name=refresh value="<TMPL_VAR NAME=refresh>"></td>
39 <td class="data"><TMPL_VAR NAME=defrefresh></td>
40</tr>
41<tr class="datalinelight">
42 <td class="inputlabel">Retry</td>
43 <td><input name=retry value="<TMPL_VAR NAME=retry>"></td>
44 <td class="data"><TMPL_VAR NAME=defretry></td>
45</tr>
46<tr class="datalinelight">
47 <td class="inputlabel">Expire</td>
48 <td><input name=expire value="<TMPL_VAR NAME=expire>"></td>
49 <td class="data"><TMPL_VAR NAME=defexpire></td>
50</tr>
51<tr class="datalinelight">
52 <td class="inputlabel">Minimum TTL</td>
53 <td><input name=minttl value="<TMPL_VAR NAME=minttl>"></td>
54 <td class="data"><TMPL_VAR NAME=defminttl></td>
55</tr>
56<tr class="datalinelight">
57 <td colspan=3 align=center><input type=submit value=" Update record "></td>
58</tr>
59</table>
60
61</form>
62
63</div>
64
65</td></tr>
66</table>
67
68<hr /><hr />
69
70
Note: See TracBrowser for help on using the repository browser.