// Localization Bootstrap design

This commit is contained in:
Jerome Nadaud
2013-09-26 11:36:28 +02:00
parent 10e472e141
commit b9ccfe858b
13 changed files with 326 additions and 241 deletions
@@ -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'
)
);
@@ -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(
+11 -6
View File
@@ -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'
)
);
@@ -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:'),
+6 -3
View File
@@ -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'
)
);
@@ -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')
+3 -3
View File
@@ -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 = '';
+4 -2
View File
@@ -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(