source: trunk/templates/record.tmpl@ 92

Last change on this file since 92 was 90, checked in by Kris Deugau, 14 years ago

/trunk

Checkpoint

  • Comment-docu-tweak on addUser()
  • Disallow blank usernames on creation
  • Add docucomment on updateUser()
  • Update getRecLine() to handle long records, switch to more compact $dbh->do() instead of explicit prepare/execute/fetch
  • Update getDomRecs() to handle long records. Clean up SQL formatting.
  • Update addRec() to handle long records
  • Update updateRec() to handle long records
  • Add fixme reminder to handle VegaDNS encrypted passwords (hex-coded MD5)
  • Use getRecData() instead of local SQL for "Edit record" page
  • Log user add and update actions
  • Remember to set $permissions{admin} to 1 on update if user type is "superuser"
  • Uncomment page=deluser segment; this was not integrated with the rest of the user add/update pages
  • HTML-comment "Customer ID" (uid) on log pages; having trouble seeing a use-case
  • Nitpick tweaks on record add/edit page
  • Use HTML::Template's HTML-escaping on the record value on record add/edit page - required for eg SPF records with quotation marks
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
7<form action="dns.cgi" method="post">
8<fieldset>
9
10<input type="hidden" name="page" value="record" />
11<input type="hidden" name="defrec" value="<TMPL_VAR NAME=defrec>" />
12<input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
13<input type="hidden" name="parentid" value="<TMPL_VAR NAME=parentid>" />
14<input type="hidden" name="id" value="<TMPL_VAR NAME=id>" />
15<input type="hidden" name="recact" value="<TMPL_VAR NAME=recact>" />
16
17<table class="container" width="450">
18<tr><td>
19
20 <table border="0" cellspacing="2" cellpadding="2" width="100%">
21<TMPL_IF failed> <tr><td class="errhead" colspan="2">Error <TMPL_VAR NAME=wastrying> record: <TMPL_VARNAME=errmsg></td></tr></TMPL_IF>
22 <tr class="tableheader"><td align="center" colspan="2"><TMPL_VAR NAME=todo>: <TMPL_VAR NAME=dohere></td></tr>
23 <tr class="datalinelight">
24 <td>Hostname</td>
25 <td><input type="text" name="name" value="<TMPL_VAR NAME=name>" /></td>
26 </tr>
27 <tr class="datalinelight">
28 <td>Type</td>
29 <td><select name="type">
30<TMPL_LOOP NAME=typelist>
31 <option value="<TMPL_VAR NAME=recval>"<TMPL_IF NAME=tselect> selected="selected"</TMPL_IF>><TMPL_VAR NAME=recname></option>
32</TMPL_LOOP>
33 </select></td>
34 </tr>
35 <tr class="datalinelight">
36 <td>Address</td>
37 <td><input type="text" name="address" value="<TMPL_VAR ESCAPE=HTML NAME=address>" /></td>
38 </tr>
39 <tr class="datalinelight">
40 <td>Distance (MX and SRV only)</td>
41 <td><input type="text" name="distance" value="<TMPL_VAR NAME=distance>" size="5" maxlength="10" /></td>
42 </tr>
43 <tr class="datalinelight">
44 <td>Weight (SRV only)</td>
45 <td><input type="text" name="weight" value="<TMPL_VAR NAME=weight>" size="5" maxlength="10" /></td>
46 </tr>
47 <tr class="datalinelight">
48 <td>Port (SRV only)</td>
49 <td><input type="text" name="port" value="<TMPL_VAR NAME=port>" size="5" maxlength="10" /></td>
50 </tr>
51 <tr class="datalinelight">
52 <td>TTL</td>
53 <td><input size="7" maxlength="20" type="text" name="ttl" value="<TMPL_VAR NAME=ttl>" /></td>
54 </tr>
55 <tr class="datalinelight">
56 <td colspan="2" align="center"><input type="submit" value=" <TMPL_VAR NAME=todo> " /></td>
57 </tr>
58 </table>
59
60</td></tr>
61</table>
62
63</fieldset>
64</form>
65
66</td>
67</tr>
68</table>
Note: See TracBrowser for help on using the repository browser.