source: trunk/templates/newdomain.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: 1.5 KB
Line 
1<!-- <TMPL_VAR NAME=sid> -->
2<table class="wholepage"><tr>
3<TMPL_INCLUDE NAME="menu.tmpl">
4
5<td align="center">
6
7<form action="dns.cgi">
8<fieldset>
9
10<input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
11<input type="hidden" name="page" value="adddomain" />
12<input type="hidden" name="newdomain" value="yes" />
13
14<table class="container" width="450">
15<tr><td>
16 <table border="0" cellspacing="2" cellpadding="2" width="100%">
17<TMPL_IF add_failed> <tr><td class="errhead" colspan="2">Error adding domain <TMPL_VAR NAME=domain>: <TMPL_VAR NAME=errmsg></td></tr></TMPL_IF>
18 <tr class="darkrowheader"><td colspan="2" align="center">Add Domain</td></tr>
19
20 <tr class="datalinelight">
21 <td>Domain Name:</td>
22 <td align="left"><input type="text" name="domain" value="<TMPL_VAR NAME=domain>" /></td>
23 </tr>
24 <tr class="datalinelight">
25 <td>Add domain to group:</td>
26 <td><select name="group">
27<TMPL_LOOP name=grouplist> <option value="<TMPL_VAR NAME=groupval>"<TMPL_IF groupactive> selected="selected"</TMPL_IF>><TMPL_VAR name=groupname></option>
28</TMPL_LOOP>
29 </select></td>
30 </tr>
31 <tr class="datalinelight">
32 <td>Make domain active on next DNS propagation</td><td><input type="checkbox" name="makeactive" checked="checked" /></td>
33 </tr>
34 <tr><td colspan="2" class="tblsubmit"><input type="submit" value="Add domain" /></td></tr>
35<tr><td colspan="2">tmp note: radio button select "group template" vs "clone domain"?</td></tr>
36 </table>
37 </td>
38</tr>
39</table>
40
41</fieldset>
42</form>
43
44</td></tr>
45</table>
Note: See TracBrowser for help on using the repository browser.