field($model, 'cardNumber')->widget(CardNumberTypeahead::className(),[]) ?>
customerCardNumber ?>
field($model, 'partnerCardNumber')->textInput() ?>
= $form->field($model, 'sex')->dropDownList(Customer::sexes()) ?>
field($model, 'birthdate',[ ] )->widget(DatePicker::classname(), [
'pluginOptions' => [
'autoclose'=>true,
'format' => 'yyyy.mm.dd'
]
]) ?>
= $form->field($model, 'phone')->textInput(['maxlength' => true]) ?>
= $form->field($model, 'date_stundent_card_expire')->widget(DatePicker::classname(), [
'pluginOptions' => [
'autoclose'=>true,
'format' => 'yyyy.mm.dd'
]
]) ?>
= $form->field($model, 'zip')->widget(CityZipTypeahead::className(),[
'pluginEvents' =>[
"typeahead:select" => "function(a,b) {
$('#customercreate-city').typeahead( 'val', b.name );
}",]
])?>
field($model, 'city')->widget(CityNameTypeahead::className(),[
'pluginEvents' =>[
"typeahead:select" => "function(a,b) {
$('#customercreate-zip').typeahead( 'val', b.zip );
}",]
])?>
= $form->field($model, 'address')->textInput(['maxlength' => true]) ?>
= Html::submitButton($model->isNewRecord ? Yii::t('common/customer', 'Create') : Yii::t('common/customer', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>