Changeset 588 for trunk


Ignore:
Timestamp:
01/17/13 17:25:46 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Allocation update should be complete for DNS changes. See #1.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/IPDB.pm

    r587 r588  
    11181118  my @fieldlist;
    11191119  my @vallist;
    1120   foreach ('custid', 'city', 'description', 'notes', 'circuitid', 'privdata') {
     1120  foreach ('custid', 'city', 'description', 'notes', 'circuitid', 'privdata', 'rdns') {
    11211121    if ($args{$_}) {
    11221122      push @fieldlist, $_;
     
    11731173    return ('FAIL', $msg);
    11741174  }
    1175   return 0;
     1175
     1176  _rpc('addOrUpdateRevRec', cidr => $args{block}, name => $args{rdns}, rpcuser => $args{user});
     1177  return ('OK','OK');
    11761178} # end updateBlock()
    11771179
  • trunk/cgi-bin/main.cgi

    r586 r588  
    749749        swip            => $webvar{swip},
    750750        rdepth          => $webvar{rdepth},
     751        rdns            => $webvar{rdns},
     752        user            => $authuser,
    751753        );
    752754
     
    796798
    797799  $page->param(cidr => $webvar{block});
     800  $page->param(rdns => $webvar{rdns});
    798801  $page->param(city => $webvar{city});
    799802  $page->param(disptype => $disp_alloctypes{$webvar{alloctype}});
  • trunk/templates/update.tmpl

    r576 r588  
    1515
    1616<tr class="row1">
     17<td>Reverse DNS pattern:</td>
     18<td><TMPL_VAR NAME=rdns>
     19<input type="button" value=" ? " onclick="helpRDNS()" class="regular">
     20</td>
     21</tr>
     22
     23<tr class="row0">
    1724<td>City:</td>
    1825<td><TMPL_VAR NAME=city></td>
    1926</tr>
    2027
    21 <tr class="row0">
     28<tr class="row1">
    2229<td>Type:</td>
    2330<td><TMPL_VAR NAME=disptype></td>
    2431</tr>
    2532
    26 <tr class="row1">
     33<tr class="row0">
    2734<td>Demarc/tower:</td>
    2835<td><TMPL_IF nodename><TMPL_VAR NAME=nodename><TMPL_ELSE>N/A</TMPL_IF></td>
    2936</tr>
    3037
    31 <tr class="row0">
     38<tr class="row1">
    3239<td>Customer ID:</td>
    3340<td><TMPL_VAR NAME=custid></td>
    3441</tr>
    3542
    36 <tr class="row1">
     43<tr class="row0">
    3744<td>SWIPed?:</td>
    3845<td><TMPL_VAR NAME=swip></td>
    3946</tr>
    4047
    41 <tr class="row0">
     48<tr class="row1">
    4249<td>Circuit ID:</td>
    4350<td><TMPL_VAR ESCAPE=HTML NAME=circid></td>
    4451</tr>
    4552
    46 <tr class="row1">
     53<tr class="row0">
    4754<td valign="top">Description/Name:</td>
    4855<td><TMPL_VAR ESCAPE=HTML NAME=desc></td>
    4956</tr>
    5057
    51 <tr class="row0">
     58<tr class="row1">
    5259<td valign="top">Notes:</td>
    5360<td><TMPL_VAR NAME=notes></td>
     
    5562
    5663<TMPL_IF privdata>
    57 <tr class="row1">
     64<tr class="row0">
    5865<td valign="top">Restricted data:</td>
    5966<td><TMPL_VAR NAME=privdata></td>
Note: See TracChangeset for help on using the changeset viewer.