[*] BO : you can now affect a zone to multiple countries and to multiple states

This commit is contained in:
vChabot
2011-12-02 15:41:05 +00:00
parent 1e1eec8f8d
commit 375ca90e6e
10 changed files with 303 additions and 9 deletions
@@ -40,7 +40,12 @@ class AdminCountriesControllerCore extends AdminController
$this->context = Context::getContext();
$this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
$this->bulk_actions = array('delete' => array(
'text' => $this->l('Delete selected'),
'confirm' => $this->l('Delete selected items?')),
'affectzone' => array(
'text' => $this->l('Affect a new zone'))
);
$this->fieldImageSettings = array(
'name' => 'logo',
@@ -127,6 +132,7 @@ class AdminCountriesControllerCore extends AdminController
$this->_select = 'z.`name` AS zone';
$this->_join = 'LEFT JOIN `'._DB_PREFIX_.'zone` z ON (z.`id_zone` = a.`id_zone`)';
$this->tpl_list_vars['zones'] = Zone::getZones();
return parent::renderList();
}