Changeset 589 for trunk


Ignore:
Timestamp:
01/18/13 16:36:48 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Tweak and fiddle allocation delete stage 1 for rDNS. See #1.
Note the autosetting of the "Remove forward entry?" checkbox
needs to be reviewed and tweaked further, probably.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/main.cgi

    r588 r589  
    846846
    847847  $page->param(block => $blockdata->{block});
     848
     849  $page->param(rdns => $blockdata->{rdns});
     850
     851  # maybe need to apply more magic here?
     852  # most allocations we *do* want to autodelete the forward as well as reverse;  for a handful we don't.
     853  # -> all real blocks (nb: pool IPs need extra handling)
     854  # -> NOC/private-IP (how to ID?)
     855  # -> anything with a pattern matching $IPDB::domain?
     856  if ($blockdata->{type} !~ /^.i$/) {
     857    $page->param(autodel => 1);
     858  }
     859
    848860  $page->param(rdepth => $blockdata->{rdepth});
    849861  $page->param(disptype => $disp_alloctypes{$blockdata->{type}});
  • trunk/templates/delete.tmpl

    r577 r589  
    88<td>IP block:</td>
    99<td><TMPL_VAR NAME=block></td>
     10</tr>
     11
     12<tr class="row1">
     13<td>Reverse DNS pattern:</td>
     14<td><TMPL_VAR NAME=rdns></td>
     15</tr>
     16
     17<tr class="row0">
     18<td>Remove associated forward DNS entry?</td>
     19<td><input type="checkbox" name="delforward"<TMPL_IF autodel> checked</TMPL_IF>></td>
    1020</tr>
    1121
Note: See TracChangeset for help on using the changeset viewer.