Jump to content
thirty bees forum
  • 0

Localization/states and /countries missing select all


vzex

Question

After too many clicks to disable states around the world when I only wanted US states found this fix to add bulk actions:

for states selection in file admin\themes\default\template\controllers\states\helpers\list\list_footer.tpl after

on line 43

for countries selection in admin\themes\default\template\controllers\countries\helpers\list\list_footer.tpl after

on line 41

<div class="col-lg-8"> {if $bulk_actions} <div class="btn-group bulk-actions"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> {l s='Bulk actions'} <span class="caret"></span> </button> <ul class="dropdown-menu"> <li> <a href="#" onclick="javascript:checkDelBoxes($(this).closest('form').get(0), '{$table}Box[]', true);return false;"> <i class="icon-check-sign"></i>&nbsp;{l s='Select all'} </a> </li> <li> <a href="#" onclick="javascript:checkDelBoxes($(this).closest('form').get(0), '{$table}Box[]', false);return false;"> <i class="icon-check-empty"></i>&nbsp;{l s='Unselect all'} </a> </li> <li class="divider"></li> {foreach $bulk_actions as $key => $params} <li{if $params.text == 'divider'} class="divider"{/if}> {if $params.text != 'divider'} <a href="#" onclick="{if isset($params.confirm)}if (confirm('{$params.confirm}')){/if}sendBulkAction($(this).closest('form').get(0), 'submitBulk{$key}{$table}');"> {if isset($params.icon)}<i class="{$params.icon}"></i>{/if}&nbsp;{$params.text} </a> {/if} </li> {/foreach} </ul> </div> {/if} </div>

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...