Changeset 727


Ignore:
Timestamp:
05/20/15 16:02:58 (10 years ago)
Author:
Kris Deugau
Message:

/trunk

Refine variable passing and template variable names on merge prep pages
for accuracy and clarity. See #8.

Location:
trunk
Files:
3 edited

Legend:

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

    r720 r727  
    12651265  $page->param(mergefree => $fb_list);
    12661266
     1267##fixme:  push this up the stack somewhere so the labels can be fed to the relevant templates when/as needed
    12671268  # scope
    12681269  my %merge_friendly = (
    12691270        keepall   => "Keep mergeable allocations as suballocations of new block",
    1270         mergepeer => "Make suballocations of mergeable allocations direct children of new block",
     1271        mergepeer => "Keep suballocations of mergeable allocations",
    12711272        clearpeer => "Keep only suballocations of $binfo->{block}",
    12721273        clearall  => "Clear all suballocations"
    12731274    );
    1274   $page->param(scope => $merge_friendly{$webvar{mscope}});
     1275  $page->param(vis_scope => $merge_friendly{$webvar{scope}});
     1276  $page->param(scope => $webvar{scope});
    12751277} # confMerge()
    12761278
  • trunk/templates/confmerge.tmpl

    r720 r727  
    1111<input type="hidden" name="action" value="domerge">
    1212<input type="hidden" name="block" value="<TMPL_VAR NAME=block>">
     13<input type="hidden" name="scope" value="<TMPL_VAR NAME=scope>">
    1314<TMPL_IF ismaster>
    1415<input type="hidden" name="typelist" value="mm">
     
    5455<tr>
    5556<td>Merge scope:</td>
    56 <td><TMPL_VAR NAME=scope></td>
     57<td><TMPL_VAR NAME=vis_scope></td>
    5758</tr>
    5859</TMPL_IF>
     
    8384</tr>
    8485</table>
    85 <TMPL_IF ismaster><input type="hidden" name="alloctype" value="mm"></TMPL_IF>
     86<TMPL_IF ismaster>
     87<input type="hidden" name="alloctype" value="mm">
     88</TMPL_IF>
    8689</fieldset>
    8790</form>
  • trunk/templates/merge.tmpl

    r719 r727  
    1313<TMPL_IF ismaster>
    1414<input type="hidden" name="alloctype" value="mm">
     15<input type="hidden" name="scope" value="mergepeer">
    1516</TMPL_IF>
    1617
     
    5354<td>Merge scope:<br>(new or existing container types only)</td>
    5455<td>
    55 <input type="radio" name="mscope" value="keepall">Keep mergable allocations as suballocations of new block<br>
    56 <input type="radio" name="mscope" value="mergepeer" checked="checked">Make suballocations direct children of new block<br>
    57 <input type="radio" name="mscope" value="clearpeer">Keep only suballocations of <TMPL_VAR NAME=oldblock><br>
    58 <input type="radio" name="mscope" value="clearall">Clear all suballocations
     56<input type="radio" name="scope" value="keepall">Keep mergable allocations as suballocations of new block<br>
     57<input type="radio" name="scope" value="mergepeer" checked="checked">Keep suballocations of mergeable allocations<br>
     58<input type="radio" name="scope" value="clearpeer">Keep only suballocations of <TMPL_VAR NAME=oldblock><br>
     59<input type="radio" name="scope" value="clearall">Clear all suballocations
    5960</td>
    6061</tr>
Note: See TracChangeset for help on using the changeset viewer.