From a03bf13b8fc43ac4b2d1af1cfc5d951774fc2efd Mon Sep 17 00:00:00 2001 From: gRoussac Date: Mon, 11 Mar 2013 19:01:58 +0100 Subject: [PATCH] [-] FO : Fix bug #PSCFV-5168, required phone in all templates --- controllers/front/OrderOpcController.php | 4 +--- themes/default/address.tpl | 6 +++--- themes/default/authentication.tpl | 4 ++-- themes/default/css/authentication.css | 9 ++------- themes/default/css/global.css | 2 +- themes/default/css/order-opc.css | 6 +++--- themes/default/order-opc-new-account.tpl | 18 ++++++++++++------ 7 files changed, 24 insertions(+), 25 deletions(-) diff --git a/controllers/front/OrderOpcController.php b/controllers/front/OrderOpcController.php index 5c0b16fc8..d8284cae3 100644 --- a/controllers/front/OrderOpcController.php +++ b/controllers/front/OrderOpcController.php @@ -321,9 +321,7 @@ class OrderOpcControllerCore extends ParentOrderController 'errorTOS' => Tools::displayError('You must accept the Terms of Service before', false), 'isPaymentStep' => (bool)(isset($_GET['isPaymentStep']) && $_GET['isPaymentStep']), 'genders' => Gender::getGenders(), - )); - /* Call a hook to display more information on form */ - $this->context->smarty->assign(array( + 'one_phone_at_least' => (int)Configuration::get('PS_ONE_PHONE_AT_LEAST'), 'HOOK_CREATE_ACCOUNT_FORM' => Hook::exec('displayCustomerAccountForm'), 'HOOK_CREATE_ACCOUNT_TOP' => Hook::exec('displayCustomerAccountFormTop') )); diff --git a/themes/default/address.tpl b/themes/default/address.tpl index 7c33539ef..79b1d1474 100644 --- a/themes/default/address.tpl +++ b/themes/default/address.tpl @@ -206,14 +206,14 @@ $(function(){ldelim}

{if $one_phone_at_least} -

{l s='You must register at least one phone number.'} *

+

{l s='You must register at least one phone number.'}

{/if}

-

- +

+

diff --git a/themes/default/authentication.tpl b/themes/default/authentication.tpl index 3c846cfca..811ef0e6f 100644 --- a/themes/default/authentication.tpl +++ b/themes/default/authentication.tpl @@ -551,8 +551,8 @@ $(document).ready(function() {

-

- +

+

diff --git a/themes/default/css/authentication.css b/themes/default/css/authentication.css index 305b31f23..5649e0179 100644 --- a/themes/default/css/authentication.css +++ b/themes/default/css/authentication.css @@ -68,14 +68,9 @@ font-size: 12px; color:#666; } -#account-creation_form span.form_info { +#account-creation_form span.form_info, #account-creation_form p.inline-infos { display:block; - margin:5px 0 0 265px; - color:#666; -} -#account-creation_form p.inline-infos { - margin:0 0 0 100px !important; - font-size:12px; + margin:5px 0 0 265px!important; color:#666; } #account-creation_form .id_state, #account-creation_form .dni, #account-creation_form .postcode { diff --git a/themes/default/css/global.css b/themes/default/css/global.css index 18ee641ab..84d6bc9ca 100644 --- a/themes/default/css/global.css +++ b/themes/default/css/global.css @@ -1403,7 +1403,7 @@ a.iframe {font-weight:bold} #addresses #center_column{width:757px} #address p.inline-infos { - margin:0 0 0 100px !important; + margin:0 0 0 265px !important; font-size:12px; color:#666; } diff --git a/themes/default/css/order-opc.css b/themes/default/css/order-opc.css index b40575fd1..5209953f2 100644 --- a/themes/default/css/order-opc.css +++ b/themes/default/css/order-opc.css @@ -70,9 +70,9 @@ color:#666 } #new_account_form span.form_info, -#new_account_form span.inline-infos { +#new_account_form span.inline-infos, #new_account_form p.inline-infos { display:block; - margin:5px 0 0 265px; + margin:5px 0 0 265px!important; color:#666 } #new_account_form .id_state, #new_account_form .dni, #new_account_form .postcode { @@ -87,4 +87,4 @@ float: right; margin-right: 20px; padding: 0; -} +} \ No newline at end of file diff --git a/themes/default/order-opc-new-account.tpl b/themes/default/order-opc-new-account.tpl index 419002291..bd7a1a0e6 100644 --- a/themes/default/order-opc-new-account.tpl +++ b/themes/default/order-opc-new-account.tpl @@ -259,12 +259,15 @@

-

+ {if $one_phone_at_least} +

{l s='You must register at least one phone number.'}

+ {/if} +

-

- +

+

@@ -357,12 +360,15 @@

-

+ {if $one_phone_at_least} +

{l s='You must register at least one phone number.'}

+ {/if} +

-

- +

+