source: trunk/templates/record.tmpl@ 98

Last change on this file since 98 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
RevLine 
[14]1<!-- <TMPL_VAR NAME=sid> -->
2<table class="wholepage"><tr>
3<TMPL_INCLUDE NAME="menu.tmpl">
4
5<td align="center">
6
[38]7<form action="dns.cgi" method="post">
8<fieldset>
[14]9
[38]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">
[14]18<tr><td>
19
[38]20 <table border="0" cellspacing="2" cellpadding="2" width="100%">
[90]21<TMPL_IF failed> <tr><td class="errhead" colspan="2">Error <TMPL_VAR NAME=wastrying> record: <TMPL_VARNAME=errmsg></td></tr></TMPL_IF>
[38]22 <tr class="tableheader"><td align="center" colspan="2"><TMPL_VAR NAME=todo>: <TMPL_VAR NAME=dohere></td></tr>
[14]23 <tr class="datalinelight">
24 <td>Hostname</td>
[38]25 <td><input type="text" name="name" value="<TMPL_VAR NAME=name>" /></td>
[14]26 </tr>
27 <tr class="datalinelight">
28 <td>Type</td>
29 <td><select name="type">
[90]30<TMPL_LOOP NAME=typelist>
[38]31 <option value="<TMPL_VAR NAME=recval>"<TMPL_IF NAME=tselect> selected="selected"</TMPL_IF>><TMPL_VAR NAME=recname></option>
[90]32</TMPL_LOOP>
[14]33 </select></td>
34 </tr>
35 <tr class="datalinelight">
36 <td>Address</td>
[90]37 <td><input type="text" name="address" value="<TMPL_VAR ESCAPE=HTML NAME=address>" /></td>
[14]38 </tr>
39 <tr class="datalinelight">
40 <td>Distance (MX and SRV only)</td>
[38]41 <td><input type="text" name="distance" value="<TMPL_VAR NAME=distance>" size="5" maxlength="10" /></td>
[14]42 </tr>
43 <tr class="datalinelight">
44 <td>Weight (SRV only)</td>
[38]45 <td><input type="text" name="weight" value="<TMPL_VAR NAME=weight>" size="5" maxlength="10" /></td>
[14]46 </tr>
47 <tr class="datalinelight">
48 <td>Port (SRV only)</td>
[38]49 <td><input type="text" name="port" value="<TMPL_VAR NAME=port>" size="5" maxlength="10" /></td>
[14]50 </tr>
51 <tr class="datalinelight">
52 <td>TTL</td>
[38]53 <td><input size="7" maxlength="20" type="text" name="ttl" value="<TMPL_VAR NAME=ttl>" /></td>
[14]54 </tr>
55 <tr class="datalinelight">
[87]56 <td colspan="2" align="center"><input type="submit" value=" <TMPL_VAR NAME=todo> " /></td>
[14]57 </tr>
58 </table>
59
60</td></tr>
61</table>
62
[38]63</fieldset>
[14]64</form>
65
[38]66</td>
67</tr>
68</table>
Note: See TracBrowser for help on using the repository browser.