// update localization and modules tabs

This commit is contained in:
Sarah Lorenzini
2013-07-31 14:47:21 +02:00
parent a1cc4d14d0
commit d744b9dbf2
14 changed files with 294 additions and 236 deletions
@@ -394,21 +394,26 @@ class AdminModulesPositionsControllerCore extends AdminController
if (!is_array($file_list))
$file_list = ($file_list) ? array($file_list) : array();
$content = '<input type="text" name="exceptions['.$shop_id.']" size="40" value="'.implode(', ', $file_list).'" id="em_text_'.$shop_id.'">';
$content = '<p><input type="text" name="exceptions['.$shop_id.']" size="40" value="'.implode(', ', $file_list).'" id="em_text_'.$shop_id.'"/></p>';
if ($shop_id)
{
$shop = new Shop($shop_id);
$content .= ' ('.$shop->name.')';
}
$content .= '<br /><select id="em_list_'.$shop_id.'">';
$content .= '<p>
<select id="em_list_'.$shop_id.'">';
// @todo do something better with controllers
$controllers = Dispatcher::getControllers(_PS_FRONT_CONTROLLER_DIR_);
ksort($controllers);
foreach ($controllers as $k => $v)
$content .= '<option value="'.$k.'">'.$k.'</option>';
$content .= '</select> <input type="button" class="button" value="'.$this->l('Add').'" onclick="position_exception_add('.$shop_id.')" />
<input type="button" class="button" value="'.$this->l('Remove').'" onclick="position_exception_remove('.$shop_id.')" /><br /><br />';
$content .= '</select>
</p>
<p>
<input type="button" class="btn btn-default" value="'.$this->l('Add').'" onclick="position_exception_add('.$shop_id.')" />
<input type="button" class="btn btn-default" value="'.$this->l('Remove').'" onclick="position_exception_remove('.$shop_id.')" />
</p>';
return $content;
}
+3 -3
View File
@@ -172,21 +172,21 @@ class AdminPaymentControllerCore extends AdminController
'desc' => $this->l('Please mark each checkbox for the currency, or currencies, in which you want the payment module(s) to be available.'),
'name_id' => 'currency',
'identifier' => 'id_currency',
'icon' => 'dollar',
'icon' => 'icon-money',
),
array('items' => Group::getGroups($this->context->language->id),
'title' => $this->l('Group restrictions'),
'desc' => $this->l('Please mark each checkbox for the currency, or currencies, in which you want the payment module(s) to be available.'),
'name_id' => 'group',
'identifier' => 'id_group',
'icon' => 'group',
'icon' => 'icon-group',
),
array('items' =>Country::getCountries($this->context->language->id),
'title' => $this->l('Country restrictions'),
'desc' => $this->l('Please mark each checkbox for the country, or countries, in which you want the payment module(s) to be available.'),
'name_id' => 'country',
'identifier' => 'id_country',
'icon' => 'world',
'icon' => 'icon-globe',
)
);
+1 -1
View File
@@ -124,7 +124,7 @@ class AdminStatesControllerCore extends AdminController
'id' => 'id_country',
'name' => 'name',
),
'desc' => $this->l('Country where the state, region or city is located')
'hint' => $this->l('Country where the state, region or city is located')
),
array(
'type' => 'select',