From 0af9f7d6fb4b3c0ed4a9c2b29aa2546b93ed845b Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Tue, 18 Feb 2014 17:06:50 +0100 Subject: [PATCH] add missing phone number on customer page. Fix #218 --- core/lib/Thelia/Form/CustomerUpdateForm.php | 6 ++++-- templates/backOffice/default/customer-edit.html | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/core/lib/Thelia/Form/CustomerUpdateForm.php b/core/lib/Thelia/Form/CustomerUpdateForm.php index 9c83fc354..6f4411113 100644 --- a/core/lib/Thelia/Form/CustomerUpdateForm.php +++ b/core/lib/Thelia/Form/CustomerUpdateForm.php @@ -123,13 +123,15 @@ class CustomerUpdateForm extends BaseForm "label" => Translator::getInstance()->trans("Phone"), "label_attr" => array( "for" => "phone" - ) + ), + "required" => false )) ->add("cellphone", "text", array( "label" => Translator::getInstance()->trans("Cellphone"), "label_attr" => array( "for" => "cellphone" - ) + ), + "required" => false )) ->add("zipcode", "text", array( "constraints" => array( diff --git a/templates/backOffice/default/customer-edit.html b/templates/backOffice/default/customer-edit.html index 9747c935c..37d007cf4 100644 --- a/templates/backOffice/default/customer-edit.html +++ b/templates/backOffice/default/customer-edit.html @@ -146,6 +146,20 @@ {/form_field} + {form_field form=$form field='phone'} +
+ + +
+ {/form_field} + + {form_field form=$form field='cellphone'} +
+ + +
+ {/form_field} + {/loop}