add missing phone number on customer page. Fix #218

This commit is contained in:
Manuel Raynaud
2014-02-18 17:06:50 +01:00
parent 82bcb05611
commit 0af9f7d6fb
2 changed files with 18 additions and 2 deletions

View File

@@ -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(

View File

@@ -146,6 +146,20 @@
</div>
{/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}
</div>