diff --git a/admin-dev/themes/default/template/controllers/geolocation/helpers/options/options.tpl b/admin-dev/themes/default/template/controllers/geolocation/helpers/options/options.tpl index 0ceac7a93..7558ca2e5 100644 --- a/admin-dev/themes/default/template/controllers/geolocation/helpers/options/options.tpl +++ b/admin-dev/themes/default/template/controllers/geolocation/helpers/options/options.tpl @@ -53,7 +53,9 @@ {block name="input"} {if $field['type'] == 'textarea_newlines'} - +
+ +
{else} {$smarty.block.parent} {/if} diff --git a/admin-dev/themes/default/template/controllers/images/content.tpl b/admin-dev/themes/default/template/controllers/images/content.tpl index 5799d028e..fb8df2852 100644 --- a/admin-dev/themes/default/template/controllers/images/content.tpl +++ b/admin-dev/themes/default/template/controllers/images/content.tpl @@ -79,16 +79,26 @@ {l s='Erase previous images'}
-
- +
+
+ + + + + + + +
+ {l s='Select "No" only if your server timed out and you need to resume the regeneration.'}
-
+
diff --git a/admin-dev/themes/default/template/controllers/stores/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/stores/helpers/form/form.tpl index 6d1f2cedf..0e4da98d6 100644 --- a/admin-dev/themes/default/template/controllers/stores/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/stores/helpers/form/form.tpl @@ -34,18 +34,22 @@ {block name="input"} {if $input.type == 'latitude'} - / - +
+
+ / + +
+
{else} {$smarty.block.parent} {/if} @@ -57,9 +61,9 @@ {if $input.type == 'file'}
-
+
-

{$input.desc}

+ {if isset($input.desc)}

{$input.desc}

{/if} {if isset($fields_value.image) && $fields_value.image}
{$fields_value.image} @@ -74,23 +78,15 @@
{/if}
- - - - - - - - - {foreach $fields_value.days as $k => $value} - - - - - {/foreach} - -
{l s='Hours:'}{l s='e.g. 10:00AM - 9:30PM'}
{$value}
+ +

{l s='e.g. 10:00AM - 9:30PM'}

+ {foreach $fields_value.days as $k => $value} +
+ +
+
+ {/foreach} {/foreach} {/if} {/block} diff --git a/admin-dev/themes/default/template/controllers/stores/helpers/options/options.tpl b/admin-dev/themes/default/template/controllers/stores/helpers/options/options.tpl index bac61db89..697adf6a5 100644 --- a/admin-dev/themes/default/template/controllers/stores/helpers/options/options.tpl +++ b/admin-dev/themes/default/template/controllers/stores/helpers/options/options.tpl @@ -37,13 +37,13 @@ { if (html == 'false') { - $("#conf_id_PS_SHOP_STATE_ID").fadeOut(); + $("#conf_id_PS_SHOP_STATE_ID").parent().fadeOut(); $('#PS_SHOP_STATE_ID option[value=0]').attr("selected", "selected"); } else { $("#PS_SHOP_STATE_ID").html(html); - $("#conf_id_PS_SHOP_STATE_ID").fadeIn(); + $("#conf_id_PS_SHOP_STATE_ID").parent().fadeIn(); $('#PS_SHOP_STATE_ID option[value=' + id_state_selected + ']').attr("selected", "selected"); } } @@ -52,13 +52,13 @@ $(document).ready(function(){ {if isset($categoryData.fields.PS_SHOP_STATE_ID.value)} - if ($('#PS_SHOP_COUNTRY_ID') && $('#PS_SHOP_STATE_ID')) - { - ajaxStoreStates({$categoryData.fields.PS_SHOP_STATE_ID.value}); - $('#PS_SHOP_COUNTRY_ID').change(function() { - ajaxStoreStates(); - }); - } + if ($('#PS_SHOP_COUNTRY_ID') && $('#PS_SHOP_STATE_ID')) + { + ajaxStoreStates({$categoryData.fields.PS_SHOP_STATE_ID.value}); + $('#PS_SHOP_COUNTRY_ID').change(function() { + ajaxStoreStates(); + }); + } {/if} }); diff --git a/admin-dev/themes/default/template/helpers/form/form.tpl b/admin-dev/themes/default/template/helpers/form/form.tpl index fc412b6f8..a4a7d8c37 100644 --- a/admin-dev/themes/default/template/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/helpers/form/form.tpl @@ -48,13 +48,10 @@
{$field}
{elseif $key == 'input'} {foreach $field as $input} -
+
{if $input.type == 'hidden'} {else} - {if $input.name == 'id_state'} -
- {/if} {block name="label"} {if isset($input.label)}
{/block}{* end block field *} - {if $input.name == 'id_state'} -
- {/if} {/if}
{/foreach} diff --git a/controllers/admin/AdminGeolocationController.php b/controllers/admin/AdminGeolocationController.php index edb6bb68b..665c838c9 100755 --- a/controllers/admin/AdminGeolocationController.php +++ b/controllers/admin/AdminGeolocationController.php @@ -72,7 +72,7 @@ class AdminGeolocationControllerCore extends AdminController 'icon' => 'world', 'description' => $this->l('You can add IP addresses that will always be allowed to access your shop (e.g. Google bots\' IP).'), 'fields' => array( - 'PS_GEOLOCATION_WHITELIST' => array('title' => $this->l('Whitelisted IP addresses'), 'type' => 'textarea_newlines', 'cols' => 80, 'rows' => 30), + 'PS_GEOLOCATION_WHITELIST' => array('title' => $this->l('Whitelisted IP addresses'), 'type' => 'textarea_newlines', 'cols' => 15, 'rows' => 30), ), 'submit' => array(), ), diff --git a/controllers/admin/AdminStoresController.php b/controllers/admin/AdminStoresController.php index 336a79d54..adcb0c673 100644 --- a/controllers/admin/AdminStoresController.php +++ b/controllers/admin/AdminStoresController.php @@ -125,7 +125,7 @@ class AdminStoresControllerCore extends AdminController if ($this->display == 'options') unset($this->toolbar_btn['new']); - else + else if ($this->display != 'add' && $this->display != 'edit') unset($this->toolbar_btn['save']); }