Changeset 934

Show
Ignore:
Timestamp:
12/15/06 21:11:13 (2 years ago)
Author:
bchoate
Message:

Adding itemset action dropdown to edit template screen. BugId: 32680

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/wheeljack/lib/MT/App/CMS.pm

    r929 r934  
    29142914            $param{published_url} = $published_url if $published_url; 
    29152915            $param{saved_rebuild} = 1 if $q->param('saved_rebuild'); 
     2916            my $plugin_actions = $app->plugin_itemset_actions('template'); 
     2917            $param{plugin_itemset_action_loop} = $plugin_actions || []; 
     2918            my $core_actions = $app->core_itemset_actions('template'); 
     2919            $param{core_itemset_action_loop} = $core_actions || []; 
     2920            $param{has_itemset_actions} = 
     2921        (scalar(@$plugin_actions) || scalar(@$core_actions)) ? 1 : 0; 
    29162922        } elsif ($type eq 'blog') { 
    29172923            require MT::IPBanList; 
  • branches/wheeljack/tmpl/cms/edit_template.tmpl

    r886 r934  
    133133<input type="hidden" name="_type" value="template" /> 
    134134<input type="hidden" name="rebuild" value="" /> 
     135<input type="hidden" name="action_name" value="" /> 
     136<input type="hidden" name="action_input" value="" /> 
    135137<input type="hidden" name="return_args" value="<TMPL_VAR NAME=RETURN_ARGS ESCAPE=HTML>" /> 
    136138<input type="hidden" name="magic_token" value="<TMPL_VAR NAME=MAGIC_TOKEN>" /> 
     
    266268</div> 
    267269 
     270<div class="list-actions"> 
     271 
     272<div class="button-bar"> 
    268273<input accesskey="s" type="submit" value="<MT_TRANS phrase="Save">" title="<MT_TRANS phrase="Save this template (s)">" onclick="return validate(this.form);" /> 
    269274<TMPL_UNLESS NAME=NEW_OBJECT> 
     
    275280</TMPL_UNLESS> 
    276281</TMPL_UNLESS> 
     282</div> 
     283 
     284<div class="button-bar-alt"> 
     285<TMPL_INCLUDE NAME="itemset_action_widget.tmpl"> 
     286</div> 
     287 
     288</div> 
     289 
    277290</form> 
    278291