Changeset 620 for branches


Ignore:
Timestamp:
07/04/14 13:03:43 (10 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Small patch to allow click-to-allocate for unassigned static IPs in the
search results

Location:
branches/stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/cgi-bin/search.cgi

    r606 r620  
    467467  my $count = 0;
    468468  my @sresults;
    469   while (my ($block, $custid, $type, $city, $desc, $vrf) = $sth->fetchrow_array) {
     469  while (my ($block, $custid, $type, $city, $desc, $vrf, $avail) = $sth->fetchrow_array) {
    470470    my %row = (
    471471        rowclass => $count++ % 2,
     
    478478        desc => $desc,
    479479        vrf => $vrf,
     480        avail => $avail eq 'y',
    480481        );
    481482    push @sresults, \%row;
  • branches/stable/templates/search/sresults.tmpl

    r605 r620  
    1717<TMPL_LOOP NAME=sresults>
    1818<tr class="row<TMPL_VAR NAME=rowclass>">
    19 <td><TMPL_IF issub>Sub </TMPL_IF><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=edit&amp;block=<TMPL_VAR NAME=block>"><TMPL_VAR NAME=block></a><TMPL_IF ispool>&nbsp; <a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=listpool&amp;pool=<TMPL_VAR NAME=block>">List IPs</a></TMPL_IF></td>
     19<td><TMPL_IF issub>Sub </TMPL_IF><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?<TMPL_IF avail>action=edit&amp;block=<TMPL_VAR NAME=block><TMPL_ELSE>action=assign&block=<TMPL_VAR NAME=block>&fbtype=i</TMPL_IF>"><TMPL_VAR NAME=block></a><TMPL_IF ispool>&nbsp; <a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=listpool&amp;pool=<TMPL_VAR NAME=block>">List IPs</a></TMPL_IF></td>
    2020<td><TMPL_VAR NAME=custid></td>
    2121<td><TMPL_VAR NAME=disptype></td>
Note: See TracChangeset for help on using the changeset viewer.