source: trunk/templates/newdomain.tmpl@ 400

Last change on this file since 400 was 383, checked in by Kris Deugau, 12 years ago

/trunk

Checkpoint adding location support to UI. See #10.

  • Add location entries to new domain, record list, and record add/edit templates
  • Add UI sub to fill location dropdown on new domain and record add/edit templates
  • Fix thinko in initial setting of location_view permission
  • Handle display properly if user does not have location_view permission
  • Add DB-interfacing subs in DNSDB.pm to get the default location set on a zone, and to return a list of locations suitable for a UI dropdown
File size: 1.8 KB
RevLine 
[2]1<!-- <TMPL_VAR NAME=sid> -->
2<table class="wholepage"><tr>
3<TMPL_INCLUDE NAME="menu.tmpl">
4
[100]5<td align="center" valign="top">
[38]6
[2]7<form action="dns.cgi">
[38]8<fieldset>
[2]9
[38]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" />
[2]13
[38]14<table class="container" width="450">
[2]15<tr><td>
[38]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>
[2]19
[38]20 <tr class="datalinelight">
21 <td>Domain Name:</td>
22 <td align="left"><input type="text" name="domain" value="<TMPL_VAR NAME=domain>" /></td>
[2]23 </tr>
[38]24 <tr class="datalinelight">
[2]25 <td>Add domain to group:</td>
[38]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>
[2]28</TMPL_LOOP>
29 </select></td>
30 </tr>
[38]31 <tr class="datalinelight">
[310]32 <td>Make domain active on next DNS propagation</td><td><input type="checkbox" name="makeactive"<TMPL_UNLESS addinactive> checked="checked"</TMPL_UNLESS> /></td>
[2]33 </tr>
[383]34<TMPL_IF location_view>
35 <tr class="datalinelight">
36 <td>Default location/view:</td>
37 <td><select name="defloc">
38 <option value="">(None/public)</option>
39<TMPL_LOOP name=loclist> <option value="<TMPL_VAR NAME=loc>"<TMPL_IF selected> selected="selected"</TMPL_IF>><TMPL_VAR NAME=locname></option>
40</TMPL_LOOP>
41 </select></td>
42 </tr>
43</TMPL_IF>
[38]44 <tr><td colspan="2" class="tblsubmit"><input type="submit" value="Add domain" /></td></tr>
[2]45 </table>
46 </td>
47</tr>
48</table>
49
[38]50</fieldset>
[2]51</form>
52
53</td></tr>
54</table>
Note: See TracBrowser for help on using the repository browser.