Changeset 570 for trunk


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

/trunk

Work in progress, see #5:
Update IP pool listing with new fields.
Also update the listing itself to allow allocation of unassigned IPs
right from the list, rather than forcing use of either admin tools
or guided assignment.

Location:
trunk
Files:
2 edited

Legend:

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

    r567 r570  
    252252
    253253  # Snag pool info for heading
    254   my $poolinfo = getBlockData($ip_dbh, $webvar{pool});
     254  my $poolinfo = getBlockData($ip_dbh, $webvar{pool}, $webvar{rdepth});
    255255
    256256  $page->param(disptype => $disp_alloctypes{$poolinfo->{type}});
  • trunk/templates/listpool.tmpl

    r528 r570  
    2929<TMPL_LOOP name=poolips>
    3030<tr class="row<TMPL_IF __odd__>0<TMPL_ELSE>1</TMPL_IF>">
    31 <td><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=edit&amp;block=<TMPL_VAR NAME=ip>"><TMPL_VAR NAME=ip></a></td>
     31<td>
     32<TMPL_IF delme>
     33<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=edit&amp;block=<TMPL_VAR NAME=ip>&amp;rdepth=<TMPL_VAR NAME=ipdepth>"><TMPL_VAR NAME=ip></a>
     34<TMPL_ELSE>
     35<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=assign&amp;block=<TMPL_VAR NAME=ip>&amp;rdepth=<TMPL_VAR NAME=ipdepth>&amp;fbtype=i"><TMPL_VAR NAME=ip></a>
     36</TMPL_IF>
     37</td>
    3238<td><TMPL_VAR NAME=custid></td>
    3339<td><TMPL_VAR NAME=available></td>
Note: See TracChangeset for help on using the changeset viewer.