diff --git a/core/lib/Thelia/Controller/Admin/CustomerController.php b/core/lib/Thelia/Controller/Admin/CustomerController.php old mode 100644 new mode 100755 index 895490cb2..2a1497919 --- a/core/lib/Thelia/Controller/Admin/CustomerController.php +++ b/core/lib/Thelia/Controller/Admin/CustomerController.php @@ -91,6 +91,7 @@ class CustomerController extends AbstractCrudController 'email' => $object->getEmail(), 'title' => $object->getTitleId(), 'discount' => $object->getDiscount(), + 'reseller' => $object->getReseller(), ); if ($address !== null) { diff --git a/core/lib/Thelia/Form/CustomerUpdateForm.php b/core/lib/Thelia/Form/CustomerUpdateForm.php old mode 100644 new mode 100755 index ae7f446a7..21e653cff --- a/core/lib/Thelia/Form/CustomerUpdateForm.php +++ b/core/lib/Thelia/Form/CustomerUpdateForm.php @@ -164,6 +164,12 @@ class CustomerUpdateForm extends BaseForm 'for' => 'discount' ) )) + ->add('reseller', 'integer', array( + 'label' => Translator::getInstance()->trans('Reseller'), + 'label_attr' => array( + 'for' => 'reseller' + ) + )) ; } diff --git a/templates/backOffice/default/customer-edit.html b/templates/backOffice/default/customer-edit.html old mode 100644 new mode 100755 index fd14c4cb9..c39147489 --- a/templates/backOffice/default/customer-edit.html +++ b/templates/backOffice/default/customer-edit.html @@ -95,6 +95,17 @@ {/form_field} + {form_field form=$form field='reseller'} +
+
+ +
+
+ {/form_field} + {form_field form=$form field='password'}