Changeset 582 for trunk/templates


Ignore:
Timestamp:
01/04/13 17:19:57 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Begin adding DNS integration via RPC. See #1.
IPDB.pm

  • Add a global in IPDB.pm to identify the URL for RPC DNS changes. A blank URL means this capability is disabled. (also MyIPDB.pm)
  • Accept extra parameters in addMaster() for DNS changes (default rDNS pattern, DNS location/scope/view) and while we're at it, add space to handle VRF as an informational field
  • Drop maskbits from INSERTs in addMaster()
  • Make the RPC call to add a reverse zone when adding a new master block. To assist with export caching, we split the zone into /16 or /24 chunks and add each one separately.

main.cgi

  • Retrieve DNS locations for adding a master block
  • Pass the HTTP user in to addMaster() for logging in the DNS backend

Modify templates for add master
Remove long-obsolete function in widgets.js, add function for:
Add rDNS pattern reference page

Note the RPC calls require at least dnsadmin:trunk@r447 to work properly.

Location:
trunk/templates
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/addmaster.tmpl

    r517 r582  
    99</tr>
    1010<tr class="row1">
     11<td>Default VRF:</td>
     12<td><input type="text" name="vrf"></td>
     13</tr>
     14<tr class="row0">
     15<td>Default rDNS pattern:</td>
     16<td><input type="text" name="rdns"><input type="button" value=" ? " onclick="helpRDNS()" class="regular"></td>
     17</tr>
     18<tr class="row1">
     19<TMPL_IF loclist>
     20<td>Default DNS scope:</td>
     21<td>
     22<select name="loc">
     23<TMPL_LOOP loclist>
     24<option value="<TMPL_VAR NAME=loc>"<TMPL_IF selected> selected</TMPL_IF>><TMPL_VAR NAME=locname></option>
     25</TMPL_LOOP>
     26</select>
     27</td>
     28</tr>
     29<tr class="row0">
     30<TMPL_ELSE>
     31</TMPL_IF>
    1132<td class="center" colspan="2"><input type="submit" value="  Assign  "></td>
    1233</tr>
  • trunk/templates/newmaster.tmpl

    r517 r582  
    66<TMPL_ELSE>
    77<div class="heading">Success!</div>
     8<TMPL_IF warn>
     9<div class="warning"><TMPL_VAR NAME=warn></div>
     10</TMPL_IF>
    811</TMPL_IF>
    912</div>
  • trunk/templates/widgets.js

    r517 r582  
    1414        window.open(webPath() + "help.html", "help_window", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=700,height=400")
    1515}
    16 function openTables() {
    17         window.open(webPath() + "tables.html", "subnet_tables", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=250") 
    18 }
    1916function helpAllocTypes() {
    2017        window.open(webPath() + "alloctypes.html", "alloc_window", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=750,height=550")
     18}
     19function helpRDNS() {
     20        window.open(webPath() + "rDNS.html", "rdns_window", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=850,height=450")
    2121}
    2222function popNotes(page) {
Note: See TracChangeset for help on using the changeset viewer.