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


Ignore:
Timestamp:
05/06/15 17:28:38 (10 years ago)
Author:
Kris Deugau
Message:

/trunk

Begin committing "merge/extend blocks". See #8.

This commit adds the first merge page to the UI.

File:
1 edited

Legend:

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

    r707 r717  
    177177elsif($webvar{action} eq 'dosplit') {
    178178  doSplit();
     179}
     180elsif($webvar{action} eq 'merge') {
     181  prepMerge();
    179182}
    180183elsif($webvar{action} eq 'delete') {
     
    12051208
    12061209
     1210# Set up for merge
     1211sub prepMerge {
     1212  my $binfo = getBlockData($ip_dbh, $webvar{block});
     1213  $page->param(block => $webvar{block});
     1214  $page->param(ispool => $binfo->{type} =~ /.[dp]/);
     1215  $page->param(ismaster => $binfo->{type} eq 'mm');
     1216  $page->param(oldblock => $binfo->{block});
     1217  $page->param(oldtype => $disp_alloctypes{$binfo->{type}});
     1218  $page->param(typelist => getTypeList($ip_dbh, 'n', $binfo->{type}));  # down the rabbit hole we go...
     1219
     1220  # Tree navigation
     1221  my $crumbs = getBreadCrumbs($ip_dbh, $binfo->{parent_id});
     1222  my @rcrumbs = reverse (@$crumbs);
     1223  $utilbar->param(breadcrumb => \@rcrumbs);
     1224} # prepMerge()
     1225
     1226
    12071227# Delete an allocation.
    12081228sub remove {
Note: See TracChangeset for help on using the changeset viewer.