diff --git a/admin-dev/themes/default/template/controllers/tax_rules/helpers/list/list_content.tpl b/admin-dev/themes/default/template/controllers/tax_rules/helpers/list/list_content.tpl index 1799c9aaf..d9f6edfbf 100644 --- a/admin-dev/themes/default/template/controllers/tax_rules/helpers/list/list_content.tpl +++ b/admin-dev/themes/default/template/controllers/tax_rules/helpers/list/list_content.tpl @@ -22,109 +22,132 @@ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} - - {foreach $list AS $index => $tr} - - - {if $bulk_actions} - {assign var=bulkActionPossible value=true} - {foreach $list_skip_actions as $key => $value} - {if in_array($tr.$identifier, $value) == true} - {assign var=bulkActionPossible value=false} - {/if} - {/foreach} - {if $bulkActionPossible == true} - + + {foreach $list AS $index => $tr} + + + {if $bulk_actions} + {assign var=bulkActionPossible value=true} + {foreach $list_skip_actions as $key => $value} + {if in_array($tr.$identifier, $value) == true} + {assign var=bulkActionPossible value=false} {/if} + {/foreach} + {if $bulkActionPossible == true} + {/if} - - {foreach $fields_display AS $key => $params} - + {foreach $fields_display AS $key => $params} + {if isset($params.prefix)}{$params.prefix}{/if} + {if (!isset($params.position) && !$no_link)} + onclick="document.location = '{$current_index}&{$identifier}={$tr.$identifier}{if $view}&view{else}&update{/if}{$table}&token={$token}'">{if isset($params.prefix)}{$params.prefix}{/if} + {else} + > + {/if} + {if isset($params.active)} + {$tr.$key} + {elseif isset($params.activeVisu)} + {if $tr.$key}{l s='Enabled'}{else}{l s='Disabled'}{/if} + {elseif isset($params.position)} + {if $order_by == 'position' && $order_way != 'DESC'} + + {l s='Down'} + + + + {l s='Up'} + {else} - > + {$tr.$key.position + 1} {/if} - {if isset($params.active)} - {$tr.$key} - {elseif isset($params.activeVisu)} - {if $tr.$key}{l s='Enabled'}{else}{l s='Disabled'}{/if} - {elseif isset($params.position)} - {if $order_by == 'position' && $order_way != 'DESC'} - - {l s='Down'} - - - - {l s='Up'} - - {else} - {$tr.$key.position + 1} + {elseif isset($params.image)} + {$tr.$key} + {elseif (isset($params.icon))} + {$tr[$key]} + {elseif isset($params.price)} + {$tr.$key} + {elseif isset($params.float)} + {$tr.$key} + {elseif isset($params.type) && $params.type == 'date'} + {$tr.$key} + {elseif isset($params.type) && $params.type == 'datetime'} + {$tr.$key} + {elseif isset($params.callback)} + {$tr.$key} + {elseif isset($tr.$key)} + {if $key == 'behavior'} + {if $tr.$key == 0} + {l s='This tax only'} + {elseif $tr.$key == 1} + {l s='Compute with others'} + {elseif $tr.$key == 2} + {l s='One after another'} {/if} - {elseif isset($params.image)} - {$tr.$key} - {elseif (isset($params.icon))} - {$tr[$key]} - {elseif isset($params.price)} - {$tr.$key} - {elseif isset($params.float)} - {$tr.$key} - {elseif isset($params.type) && $params.type == 'date'} - {$tr.$key} - {elseif isset($params.type) && $params.type == 'datetime'} - {$tr.$key} - {elseif isset($params.callback)} - {$tr.$key} - {elseif isset($tr.$key)} - {if $key == 'behavior'} - {if $tr.$key == 0} - {l s='This tax only'} - {elseif $tr.$key == 1} - {l s='Compute with others'} - {elseif $tr.$key == 2} - {l s='One after another'} - {/if} - {elseif $key == 'rate'} - {$tr.$key|string_format:"%.2f"}% - {elseif $key == 'zipcode'} - {if $tr.$key == '0 - 0'} - -- - {else} - {$tr.$key|escape:'htmlall':'UTF-8'} - {/if} + {elseif $key == 'rate'} + {$tr.$key|string_format:"%.2f"}% + {elseif $key == 'zipcode'} + {if $tr.$key == '0 - 0'} + -- {else} {$tr.$key|escape:'htmlall':'UTF-8'} {/if} {else} - -- + {$tr.$key|escape:'htmlall':'UTF-8'} {/if} - {if isset($params.suffix)}{$params.suffix}{/if} - - {/foreach} - - {if $shop_link_type} - {if isset($tr.shop_short_name)}{$tr.shop_short_name}{else}{$tr.shop_name}{/if} - {/if} - {if $has_actions} - - {foreach $actions AS $action} - {if isset($tr.$action)} - {$tr.$action} - {/if} - {/foreach} + {else} + -- + {/if} + {if isset($params.suffix)}{$params.suffix}{/if} - {/if} - - {/foreach} - + {/foreach} + + {if $shop_link_type} + {if isset($tr.shop_short_name)}{$tr.shop_short_name}{else}{$tr.shop_name}{/if} + {/if} + {if $has_actions} + + {assign var='compiled_actions' value=array()} + {foreach $actions AS $key => $action} + {if isset($tr.$action)} + {if $key == 0} + {assign var='action' value=$action} + {/if} + {$compiled_actions[] = $tr.$action} + {/if} + {/foreach} + {if $compiled_actions|count > 0} +
+ {$compiled_actions[0]|regex_replace:'/class\s*=\s*"(\w*)"/':'class="$1 btn btn-default"'} + {if $compiled_actions|count > 1} + + + {/if} +
+ {/if} + + {/if} + + {/foreach} + \ No newline at end of file diff --git a/admin-dev/themes/default/template/controllers/tax_rules/helpers/list/list_footer.tpl b/admin-dev/themes/default/template/controllers/tax_rules/helpers/list/list_footer.tpl new file mode 100644 index 000000000..ffe89a413 --- /dev/null +++ b/admin-dev/themes/default/template/controllers/tax_rules/helpers/list/list_footer.tpl @@ -0,0 +1,104 @@ +{* +* 2007-2013 PrestaShop +* +* NOTICE OF LICENSE +* +* This source file is subject to the Academic Free License (AFL 3.0) +* that is bundled with this package in the file LICENSE.txt. +* It is also available through the world-wide-web at this URL: +* http://opensource.org/licenses/afl-3.0.php +* If you did not receive a copy of the license and are unable to +* obtain it through the world-wide-web, please send an email +* to license@prestashop.com so we can send you a copy immediately. +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade PrestaShop to newer +* versions in the future. If you wish to customize PrestaShop for your +* needs please refer to http://www.prestashop.com for more information. +* +* @author PrestaShop SA +* @copyright 2007-2013 PrestaShop SA +* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) +* International Registered Trademark & Property of PrestaShop SA +*} + + + + {if $bulk_actions} +
+ + +
+ {/if} + + {if !$simple_header && $list_total > 20} +
+ + {if $page > 1} +   + + {/if} + {l s='Page'} {$page} / {$total_pages} + {if $page < $total_pages} +   + + {/if} + + + +  |  + + + + / {$list_total} {l s='result(s)'} +
+ {/if} + + + +{if !$simple_header} + + + +{/if} + +{hook h='displayAdminListAfter'} +{if isset($name_controller)} + {capture name=hookName assign=hookName}display{$name_controller|ucfirst}ListAfter{/capture} + {hook h=$hookName} +{elseif isset($smarty.get.controller)} + {capture name=hookName assign=hookName}display{$smarty.get.controller|ucfirst|htmlentities}ListAfter{/capture} + {hook h=$hookName} +{/if} + + +{block name="after"}{/block} diff --git a/admin-dev/themes/default/template/controllers/tax_rules/helpers/list/list_header.tpl b/admin-dev/themes/default/template/controllers/tax_rules/helpers/list/list_header.tpl index 00bae4d83..2f3fcf298 100644 --- a/admin-dev/themes/default/template/controllers/tax_rules/helpers/list/list_header.tpl +++ b/admin-dev/themes/default/template/controllers/tax_rules/helpers/list/list_header.tpl @@ -33,81 +33,48 @@ {/if}
+
- - - - - -
- - {if $page > 1} -   - - {/if} - {l s='Page'} {$page} / {$total_pages} - {if $page < $total_pages} -   - - {/if} - | {l s='Display'} - - / {$list_total} {l s='result(s)'} - - - - - -
- - +
+
+ + {foreach $fields_display AS $key => $params} + + {/foreach} + {if $shop_link_type} + + {/if} + {if $has_actions} + + {/if} + + + {foreach $fields_display AS $key => $params} - + + {if isset($params.hint)}{$params.hint} {/if} + + {$params.title} + + {/foreach} {if $shop_link_type} - + {/if} {if $has_actions} - + {/if} - - - - {foreach $fields_display AS $key => $params} - - {/foreach} - {if $shop_link_type} - - {/if} - {if $has_actions} - - {/if} - - + + diff --git a/admin-dev/themes/default/template/controllers/tax_rules_group/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/tax_rules_group/helpers/form/form.tpl deleted file mode 100644 index 5b16474bb..000000000 --- a/admin-dev/themes/default/template/controllers/tax_rules_group/helpers/form/form.tpl +++ /dev/null @@ -1,29 +0,0 @@ -{* -* 2007-2013 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2013 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*} -{extends file="helpers/form/form.tpl"} - -{block name="after"} -
-{/block} \ No newline at end of file diff --git a/admin-dev/themes/default/template/controllers/translations/helpers/view/main.tpl b/admin-dev/themes/default/template/controllers/translations/helpers/view/main.tpl index d75c82432..a7363fcbf 100644 --- a/admin-dev/themes/default/template/controllers/translations/helpers/view/main.tpl +++ b/admin-dev/themes/default/template/controllers/translations/helpers/view/main.tpl @@ -96,22 +96,20 @@
-
- - -
+ +
@@ -233,7 +231,7 @@

{l s='Copies data from one language to another.'}
{l s='Warning: This will replace all of the existing data inside the destination language.'}
- {l s='If necessary'}, {l s='you must first create a new language.'}. + {l s='If necessary'}, {l s='you must first create a new language.'}.

diff --git a/controllers/admin/AdminCountriesController.php b/controllers/admin/AdminCountriesController.php index 7e7e197e7..95efe2fa9 100644 --- a/controllers/admin/AdminCountriesController.php +++ b/controllers/admin/AdminCountriesController.php @@ -74,7 +74,8 @@ class AdminCountriesControllerCore extends AdminController $this->fields_list = array( 'id_country' => array( 'title' => $this->l('ID'), - 'align' => 'center' + 'align' => 'center', + 'class' => 'fixed-width-xs' ), 'name' => array( 'title' => $this->l('Country'), @@ -82,12 +83,14 @@ class AdminCountriesControllerCore extends AdminController ), 'iso_code' => array( 'title' => $this->l('ISO code'), - 'align' => 'center' + 'align' => 'center', + 'class' => 'fixed-width-xs' ), 'call_prefix' => array( 'title' => $this->l('Call prefix'), 'align' => 'center', - 'callback' => 'displayCallPrefix' + 'callback' => 'displayCallPrefix', + 'class' => 'fixed-width-sm' ), 'zone' => array( 'title' => $this->l('Zone'), @@ -103,7 +106,8 @@ class AdminCountriesControllerCore extends AdminController 'active' => 'status', 'type' => 'bool', 'orderby' => false, - 'filter_key' => 'a!active' + 'filter_key' => 'a!active', + 'class' => 'fixed-width-sm' ) ); diff --git a/controllers/admin/AdminCurrenciesController.php b/controllers/admin/AdminCurrenciesController.php index 7bae0a54e..b0f80bf4c 100644 --- a/controllers/admin/AdminCurrenciesController.php +++ b/controllers/admin/AdminCurrenciesController.php @@ -34,13 +34,13 @@ class AdminCurrenciesControllerCore extends AdminController $this->lang = false; $this->fields_list = array( - 'id_currency' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), + 'id_currency' => array('title' => $this->l('ID'), 'align' => 'center', 'class' => 'fixed-width-xs'), 'name' => array('title' => $this->l('Currency')), - 'iso_code' => array('title' => $this->l('ISO code'), 'align' => 'center', 'width' => 80), - 'iso_code_num' => array('title' => $this->l('ISO code number'), 'align' => 'center', 'width' => 120), - 'sign' => array('title' => $this->l('Symbol'), 'width' => 20, 'align' => 'center', 'orderby' => false, 'search' => false), + 'iso_code' => array('title' => $this->l('ISO code'), 'align' => 'center', 'class' => 'fixed-width-xs'), + 'iso_code_num' => array('title' => $this->l('ISO code number'), 'align' => 'center', 'class' => 'fixed-width-xs'), + 'sign' => array('title' => $this->l('Symbol'), 'width' => 20, 'align' => 'center', 'orderby' => false, 'search' => false, 'class' => 'fixed-width-xs'), 'conversion_rate' => array('title' => $this->l('Exchange rate'), 'type' => 'float', 'align' => 'center', 'width' => 130, 'search' => false, 'filter_key' => 'currency_shop!conversion_rate'), - 'active' => array('title' => $this->l('Enabled'), 'width' => 25, 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => false), + 'active' => array('title' => $this->l('Enabled'), 'width' => 25, 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => false, 'class' => 'fixed-width-sm'), ); $this->bulk_actions = array( diff --git a/controllers/admin/AdminLanguagesController.php b/controllers/admin/AdminLanguagesController.php index e7ed7af78..e23e9e460 100644 --- a/controllers/admin/AdminLanguagesController.php +++ b/controllers/admin/AdminLanguagesController.php @@ -51,25 +51,29 @@ class AdminLanguagesControllerCore extends AdminController $this->fields_list = array( 'id_lang' => array( 'title' => $this->l('ID'), - 'align' => 'center' + 'align' => 'center', + 'class' => 'fixed-width-xs' ), 'flag' => array( - 'title' => $this->l('Logo'), + 'title' => $this->l('Flag'), 'align' => 'center', 'image' => 'l', 'orderby' => false, - 'search' => false + 'search' => false, + 'class' => 'fixed-width-xs' ), 'name' => array( 'title' => $this->l('Name') ), 'iso_code' => array( 'title' => $this->l('ISO code'), - 'align' => 'center' + 'align' => 'center', + 'class' => 'fixed-width-xs' ), 'language_code' => array( 'title' => $this->l('Language code'), - 'align' => 'center' + 'align' => 'center', + 'class' => 'fixed-width-xs' ), 'date_format_lite' => array( 'title' => $this->l('Date format') @@ -81,7 +85,8 @@ class AdminLanguagesControllerCore extends AdminController 'title' => $this->l('Enabled'), 'align' => 'center', 'active' => 'status', - 'type' => 'bool' + 'type' => 'bool', + 'class' => 'fixed-width-sm' ) ); diff --git a/controllers/admin/AdminLocalizationController.php b/controllers/admin/AdminLocalizationController.php index f687089fc..84fbe17f4 100644 --- a/controllers/admin/AdminLocalizationController.php +++ b/controllers/admin/AdminLocalizationController.php @@ -65,7 +65,7 @@ class AdminLocalizationControllerCore extends AdminController ), 'localization' => array( 'title' => $this->l('Localization'), - 'icon' => 'localization', + 'icon' => 'icon-globe', 'fields' => array( 'PS_WEIGHT_UNIT' => array( 'title' => $this->l('Weight unit:'), @@ -100,7 +100,6 @@ class AdminLocalizationControllerCore extends AdminController ), 'options' => array( 'title' => $this->l('Advanced'), - 'icon' => 'localization', 'fields' => array( 'PS_LOCALE_LANGUAGE' => array( 'title' => $this->l('Language locale:'), diff --git a/controllers/admin/AdminStatesController.php b/controllers/admin/AdminStatesController.php index 7f5ef47b3..c1b95db7b 100644 --- a/controllers/admin/AdminStatesController.php +++ b/controllers/admin/AdminStatesController.php @@ -65,7 +65,8 @@ class AdminStatesControllerCore extends AdminController $this->fields_list = array( 'id_state' => array( 'title' => $this->l('ID'), - 'align' => 'center' + 'align' => 'center', + 'class' => 'fixed-width-xs' ), 'name' => array( 'title' => $this->l('Name'), @@ -73,7 +74,8 @@ class AdminStatesControllerCore extends AdminController ), 'iso_code' => array( 'title' => $this->l('ISO code'), - 'align' => 'center' + 'align' => 'center', + 'class' => 'fixed-width-xs' ), 'zone' => array( 'title' => $this->l('Zone'), @@ -97,7 +99,8 @@ class AdminStatesControllerCore extends AdminController 'filter_key' => 'a!active', 'align' => 'center', 'type' => 'bool', - 'orderby' => false + 'orderby' => false, + 'class' => 'fixed-width-sm' ) ); diff --git a/controllers/admin/AdminTaxRulesGroupController.php b/controllers/admin/AdminTaxRulesGroupController.php index ff18f7f60..551b6b09f 100644 --- a/controllers/admin/AdminTaxRulesGroupController.php +++ b/controllers/admin/AdminTaxRulesGroupController.php @@ -42,7 +42,9 @@ class AdminTaxRulesGroupControllerCore extends AdminController $this->fields_list = array( 'id_tax_rules_group' => array( - 'title' => $this->l('ID') + 'title' => $this->l('ID'), + 'align' => 'center', + 'class' => 'fixed-width-xs' ), 'name' => array( 'title' => $this->l('Name') @@ -52,12 +54,13 @@ class AdminTaxRulesGroupControllerCore extends AdminController 'active' => 'status', 'type' => 'bool', 'orderby' => false, - 'align' => 'center' + 'align' => 'center', + 'class' => 'fixed-width-sm' ) ); $this->bulk_actions = array( - 'delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')), + 'delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'), 'icon' => 'icon-trash'), 'enableSelection' => array('text' => $this->l('Enable selection')), 'disableSelection' => array('text' => $this->l('Disable selection')) ); @@ -95,6 +98,10 @@ class AdminTaxRulesGroupControllerCore extends AdminController $this->toolbar_btn = null; $this->list_no_link = true; + $this->bulk_actions = array( + 'delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'), 'icon' => 'icon-trash') + ); + $this->fields_list = array( 'country_name' => array( 'title' => $this->l('Country') @@ -103,13 +110,15 @@ class AdminTaxRulesGroupControllerCore extends AdminController 'title' => $this->l('State') ), 'zipcode' => array( - 'title' => $this->l('Zip Code') + 'title' => $this->l('Zip Code'), + 'class' => 'fixed-width-md' ), 'behavior' => array( 'title' => $this->l('Behavior') ), 'rate' => array( - 'title' => $this->l('Tax') + 'title' => $this->l('Tax'), + 'class' => 'fixed-width-sm' ), 'description' => array( 'title' => $this->l('Description') diff --git a/controllers/admin/AdminTaxesController.php b/controllers/admin/AdminTaxesController.php index 0739c9c04..d21cb85c3 100644 --- a/controllers/admin/AdminTaxesController.php +++ b/controllers/admin/AdminTaxesController.php @@ -42,10 +42,10 @@ class AdminTaxesControllerCore extends AdminController ); $this->fields_list = array( - 'id_tax' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), + 'id_tax' => array('title' => $this->l('ID'), 'align' => 'center', 'class' => 'fixed-width-xs'), 'name' => array('title' => $this->l('Name'), 'width' => 'auto'), - 'rate' => array('title' => $this->l('Rate'), 'align' => 'center', 'suffix' => '%', 'width' => 50), - 'active' => array('title' => $this->l('Enabled'), 'width' => 25, 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => false) + 'rate' => array('title' => $this->l('Rate'), 'align' => 'center', 'suffix' => '%' , 'class' => 'fixed-width-md'), + 'active' => array('title' => $this->l('Enabled'), 'width' => 25, 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => false, 'class' => 'fixed-width-sm') ); $ecotax_desc = ''; diff --git a/controllers/admin/AdminZonesController.php b/controllers/admin/AdminZonesController.php index 2209b7ac7..c54ad30eb 100644 --- a/controllers/admin/AdminZonesController.php +++ b/controllers/admin/AdminZonesController.php @@ -38,7 +38,8 @@ class AdminZonesControllerCore extends AdminController $this->fields_list = array( 'id_zone' => array( 'title' => $this->l('ID'), - 'align' => 'center' + 'align' => 'center', + 'class' => 'fixed-width-xs' ), 'name' => array( 'title' => $this->l('Zone'), @@ -48,7 +49,8 @@ class AdminZonesControllerCore extends AdminController 'align' => 'center', 'active' => 'status', 'type' => 'bool', - 'orderby' => false + 'orderby' => false, + 'class' => 'fixed-width-sm' ) ); $this->bulk_actions = array(
+
+ {if $shop_link_type == 'shop'} + {l s='Shop'} + {else} + {l s='Group shop'} + {/if} +
+
- {if $has_bulk_actions} - - {/if} - - {if isset($params.hint)}{$params.hint} {/if} - - {$params.title} - -
  -
- {if $shop_link_type == 'shop'} - {l s='Shop'} - {else} - {l s='Group shop'} - {/if} -
  -
{l s='Actions'}