add missing phone number on customer page. Fix #218
This commit is contained in:
@@ -123,13 +123,15 @@ class CustomerUpdateForm extends BaseForm
|
|||||||
"label" => Translator::getInstance()->trans("Phone"),
|
"label" => Translator::getInstance()->trans("Phone"),
|
||||||
"label_attr" => array(
|
"label_attr" => array(
|
||||||
"for" => "phone"
|
"for" => "phone"
|
||||||
)
|
),
|
||||||
|
"required" => false
|
||||||
))
|
))
|
||||||
->add("cellphone", "text", array(
|
->add("cellphone", "text", array(
|
||||||
"label" => Translator::getInstance()->trans("Cellphone"),
|
"label" => Translator::getInstance()->trans("Cellphone"),
|
||||||
"label_attr" => array(
|
"label_attr" => array(
|
||||||
"for" => "cellphone"
|
"for" => "cellphone"
|
||||||
)
|
),
|
||||||
|
"required" => false
|
||||||
))
|
))
|
||||||
->add("zipcode", "text", array(
|
->add("zipcode", "text", array(
|
||||||
"constraints" => array(
|
"constraints" => array(
|
||||||
|
|||||||
@@ -146,6 +146,20 @@
|
|||||||
</div>
|
</div>
|
||||||
{/form_field}
|
{/form_field}
|
||||||
|
|
||||||
|
{form_field form=$form field='phone'}
|
||||||
|
<div class="form-group {if $error}has-error{/if}">
|
||||||
|
<label for="{$label_attr.for}" class="control-label">{$label}{if $required} <span class="required">*</span>{/if} : </label>
|
||||||
|
<input type="text" id="{$label_attr.for}" name="{$name}" class="form-control" value="{$value}" title="{$label}" placeholder="{intl l='Address'}">
|
||||||
|
</div>
|
||||||
|
{/form_field}
|
||||||
|
|
||||||
|
{form_field form=$form field='cellphone'}
|
||||||
|
<div class="form-group {if $error}has-error{/if}">
|
||||||
|
<label for="{$label_attr.for}" class="control-label">{$label}{if $required} <span class="required">*</span>{/if} : </label>
|
||||||
|
<input type="text" id="{$label_attr.for}" name="{$name}" class="form-control" value="{$value}" title="{$label}" placeholder="{intl l='Address'}">
|
||||||
|
</div>
|
||||||
|
{/form_field}
|
||||||
|
|
||||||
{/loop}
|
{/loop}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user