Changeset 815 for trunk/cgi-bin/main.cgi


Ignore:
Timestamp:
03/09/16 17:25:26 (8 years ago)
Author:
Kris Deugau
Message:

/trunk

Pass VRF in to add master page, and include it in the database checks. See #54.
Add missing breadcrumb links on add master entry and confirmation pages.

File:
1 edited

Legend:

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

    r813 r815  
    165165  }
    166166
     167  # we don't have a netblock;  pass 0 for the block ID
     168  # Tree navigation
     169  my $crumbs = getBreadCrumbs($ip_dbh, 0, $webvar{vrf});
     170  my @rcrumbs = reverse (@$crumbs);
     171  $utilbar->param(breadcrumb => \@rcrumbs);
     172
     173  $page->param(vrf => $webvar{vrf});
     174
    167175} elsif ($webvar{action} eq 'newmaster') {
    168176
     
    188196      syslog "info", "$authuser added master block $webvar{cidr}";
    189197    }
     198
     199    # we don't have a netblock;  pass 0 for the block ID
     200    # Tree navigation
     201    my $crumbs = getBreadCrumbs($ip_dbh, 0, $webvar{vrf});
     202    my @rcrumbs = reverse (@$crumbs);
     203    $utilbar->param(breadcrumb => \@rcrumbs);
    190204
    191205  } # ACL check
Note: See TracChangeset for help on using the changeset viewer.