echo $form->field($model, 'cargo')->widget(Select2::classname(), ['data' => array_merge(["" => ""], $data_cargos), 'options' => ['placeholder' => 'Selecione o cargo...'], 'pluginOptions' => ['allowClear' => true]]); ?> <?php echo $form->field($model, 'nome')->textInput(['maxlength' => true, 'placeholder' => 'Nome completo...']); ?> <?php echo $form->field($model, "datanascimento")->widget(DateControl::classname(), ['type' => DateControl::FORMAT_DATETIME, 'displayFormat' => 'dd/MM/yyyy', 'autoWidget' => false, 'widgetClass' => 'yii\\widgets\\MaskedInput', 'options' => ['mask' => '99/99/9999', 'options' => ['class' => 'form-control', 'placeholder' => 'Data nascimento...']]]); ?> <?php echo Form::widget(['model' => $model, 'form' => $form, 'columns' => 4, 'attributes' => ['cpf' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Informe seu CPF...']], 'identidade' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Informe seu RG...']], 'orgao_exped' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Informe o orgão expedidor...']], 'sexo' => ['type' => Form::INPUT_RADIO_LIST, 'items' => [true => 'Masculino', false => 'Feminino'], 'options' => ['inline' => true]]]]); ?> <?php echo Form::widget(['model' => $model, 'form' => $form, 'columns' => 4, 'attributes' => ['email' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Informe seu e-mail...']], 'emailAlt' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Informe seu e-mail alternativo...']], 'telefone' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Informe seu telefone...']], 'telefoneAlt' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Informe seu telefone alternativo...']]]]); ?> <?php $form->field($model, 'cpf')->hiddenInput()->widget(\yii\widgets\MaskedInput::className(), ['mask' => '999.999.999-99']); ?> <?php $form->field($model, 'telefone')->hiddenInput()->widget(\yii\widgets\MaskedInput::className(), ['mask' => '(99)99999-999[9]']); ?> <?php $form->field($model, 'telefoneAlt')->hiddenInput()->widget(\yii\widgets\MaskedInput::className(), ['mask' => '(99)99999-999[9]']);
<h3>Форма обратной связи</h3> <?php $form = ActiveForm::begin(['id' => 'form', 'errorCssClass' => '', 'fieldConfig' => ['template' => "{input}\n{error}", 'options' => ['tag' => 'label'], 'errorOptions' => ['class' => 'error-message']]]); ?> <?php echo $form->field($model, 'name')->textInput(['placeholder' => 'ФИО*:']); ?> <?php echo $form->field($model, 'email')->input('email', ['placeholder' => 'Email*:']); ?> <?php echo $form->field($model, 'phone')->widget(\yii\widgets\MaskedInput::className(), ['mask' => '+7-999-999-99-99', 'options' => ['placeholder' => 'phone*:']]); ?> <?php echo $form->field($model, 'body', ['options' => ['class' => "message"]])->textarea(['placeholder' => 'Текст сообщения*:']); ?> <div> <div class="clear"></div> <div class="btns"> <?php echo Html::submitInput('Отправить', ['class' => 'btn']); ?> <span>* - Необходимо заполнить поля</span>
?> <?php echo $form->field($model, 'contact_first_name', ['options' => ['class' => 'col-xs-6']])->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'contact_last_name', ['options' => ['class' => 'col-xs-6']])->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'email', ['options' => ['class' => 'col-xs-6']])->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'phone', ['options' => ['class' => 'col-xs-6']])->widget(MaskedInput::className(), ['mask' => '999-999-9999']); ?> <?php echo $form->field($model, 'address_street', ['options' => ['class' => 'col-xs-6']])->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'address_city', ['options' => ['class' => 'col-xs-6']])->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'address_state', ['options' => ['class' => 'col-xs-6 padding-right0']])->label('State')->widget(Select2::classname(), ['data' => ArrayHelper::map(State::find()->all(), 'abbreviation', 'abbreviation'), 'options' => ['placeholder' => 'Select a state ...'], 'pluginOptions' => ['allowClear' => true]]); ?> <?php
?> <?php echo $form->field($model, 'city')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'state')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'zip')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'phone')->textInput(['maxlength' => true])->widget(MaskedInput::className(), ['mask' => '999-999-9999']); ?> <div class="form-group"> <div class="col-sm-2"></div> <div class="col-sm-10"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> </div> <?php ActiveForm::end(); ?>
?> <?php echo $form->field($model, 'author_id')->dropDownList(ArrayHelper::map($authors, 'author_id', 'name'), ['prompt' => 'Select...']); ?> <?php echo $form->field($model, 'name'); ?> <br/> <?php echo $form->field($model, 'date_from')->widget(MaskedInput::className(), ['mask' => '99-99-9999']); ?> <?php echo $form->field($model, 'date_to')->widget(MaskedInput::className(), ['mask' => '99-99-9999']); ?> <br/> <div class="form-group"> <?php echo Html::submitButton('Искать', ['class' => 'btn btn-primary']); ?> <?php echo Html::a('Сброс', \yii\helpers\Url::toRoute('index'), ['class' => 'btn btn-default']); ?> </div> <?php ActiveForm::end(); ?>
?> </div> <div class="col-md-6"><?php echo $form->field($model, 'lname')->textInput(); ?> </div> </div> <div class="row"> <div class="col-sm-7"><?php echo $form->field($model, 'email')->textInput(); ?> </div> <!--col--> <div class="col-sm-5"> <?php echo $form->field($model, 'phone')->widget(\yii\widgets\MaskedInput::className(), ['mask' => '999-999-9999']); ?> </div> <!--col--> </div> <!--row--> <div class="form-group"> <?php echo $form->field($model, 'password')->passwordInput(); ?> </div> <div class="form-group"> <?php echo $form->field($model, 'password_repeat')->passwordInput(); ?> </div>
echo $form->field($model, 'sn')->widget(\kartik\widgets\Select2::classname(), ['initValueText' => $model->sn, 'pluginOptions' => ['allowClear' => true, 'minimumInputLength' => 1, 'ajax' => ['url' => \yii\helpers\Url::to(['/admin/brand/get-brand']), 'dataType' => 'json', 'data' => new JsExpression('function(params) { return {q:params.term}; }')], 'escapeMarkup' => new JsExpression('function (markup) { return markup; }'), 'templateResult' => new JsExpression('formatRepo'), 'templateSelection' => new JsExpression('function (brand) {return brand.id;}')]]); ?> <?php echo $form->field($model, 'cn_name')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'en_name')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'py_name')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'initial')->widget(\yii\widgets\MaskedInput::className(), ['mask' => 'A']); ?> <?php echo $form->field($model, 'show_type_name')->widget(SwitchInput::classname(), ['type' => SwitchInput::RADIO, 'items' => $model->showTypeNameItems]); ?> <?php echo $form->field($model, 'logo')->widget(CoreFileInput::classname(), []); ?> <?php echo $form->field($model, 'is_show')->widget(SwitchInput::classname(), ['pluginOptions' => ['onText' => '是', 'offText' => '否']]); ?> </div> <div class="box-footer"> <?php
use yii\helpers\Html; use yii\widgets\ActiveForm; use kartik\datetime\DateTimePicker; /* @var $this yii\web\View */ /* @var $model app\models\History */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="history-form"> <?php $form = ActiveForm::begin(); ?> <?php echo $form->field($model, 'number')->widget(\yii\widgets\MaskedInput::className(), ['mask' => '9999 9999 9999 9999'])->textInput(['placeholder' => '9999 9999 9999 9999', 'value' => $number, 'readonly' => '']); ?> <?php echo $form->field($model, 'use_date')->widget(DateTimePicker::classname(), ['options' => ['placeholder' => 'Choose date and time'], 'convertFormat' => true, 'pluginOptions' => ['format' => 'yyyy-MM-dd HH:i', 'startDate' => date('yyyy-MM-dd HH:i'), 'todayHighlight' => true]]); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?>
<?php echo $form->field($model, 'date_start')->widget(DatePicker::className(), ['inline' => false, 'language' => 'ru', 'clientOptions' => ['autoclose' => true, 'format' => 'dd.mm.yyyy']]); ?> <?php echo $form->field($model, 'date_end')->widget(DatePicker::className(), ['inline' => false, 'language' => 'ru', 'clientOptions' => ['autoclose' => true, 'format' => 'dd.mm.yyyy']]); ?> <?php echo $form->field($model, 'id_phone_code')->dropDownList(ArrayHelper::map(PhoneCode::find()->all(), 'id', 'code'))->label('Код телефона'); ?> <?php echo $form->field($model, 'phone_number')->widget(MaskedInput::className(), ['name' => 'phone_number', 'mask' => '999-99-99', 'clientOptions' => ['removeMaskOnSubmit' => true]]); ?> <?php echo $form->field($model, 'id_department')->dropDownList(ArrayHelper::map(Deparment::find()->all(), 'id', 'title'))->label('Секция'); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Создать' : 'Обновить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?>
<?php echo $form->field($model, 'detalheLocal')->textInput(['maxlength' => true, 'style' => 'width:300px']); ?> <?php echo $form->field($model, 'data')->widget(DatePicker::className(), ['inline' => false, 'language' => 'pt', 'clientOptions' => ['autoclose' => true, 'format' => 'dd/mm/yyyy', 'todayHighlight' => true, 'todayBtn' => true]]); ?> <?php echo $form->field($model, 'dataConclusao')->widget(DatePicker::className(), ['inline' => false, 'language' => 'pt', 'clientOptions' => ['autoclose' => true, 'format' => 'dd/mm/yyyy', 'todayHighlight' => true, 'todayBtn' => true]]); ?> <?php echo $form->field($model, 'hora')->textInput(['style' => 'width:180px'])->widget(MaskedInput::className(), ['mask' => '99:99']); ?> <?php echo $form->field($model, 'descricao')->textarea(['rows' => 6]); ?> <?php echo $form->field($model, 'procedimento')->textarea(['rows' => 6]); ?> <?php echo $form->field($model, 'imageFiles[]')->fileInput(['multiple' => true, 'accept' => 'image/*']); ?>
?> <section class="content-wrap"> <div class="container"> <div class="row pt50"> <main class="col-md-9 main-content"> <?php $form = ActiveForm::begin(); ?> <div class="draw-main"> <div class="draw-column frame mb20 clearfix"> <div class="col-xs-2 padding-left0"> <i class="ico-01 ico-money"></i> </div> <?php echo $form->field($model, 'amount', ['options' => ['class' => 'col-xs-10 pt40 padding-left0'], 'template' => '<div class="input-group"> <div class="input-group-addon color-f3">$</div> {input} </div>{hint}{error}'])->widget(MaskedInput::className(), ['clientOptions' => ['alias' => 'decimal', 'groupSeparator' => ',', 'digits' => '0', 'max' => '2000000000', 'autoGroup' => true]]); ?> <div class="col-xs-2 padding-left0"></div> <div class="col-xs-10 padding-left0"> <a href="<?php echo Url::to(['/loan/index']); ?> " type="button" class="btn btn-default form-padding-but mr10">Cancel</a> <?php if (count($request) == 0) { ?> <?php echo Html::submitButton('SEND REQUEST', ['class' => 'btn btn-primary form-padding-but btn-loading']); ?> <?php
$.pjax({ type: "POST", url: "update-phone.html", data: jQuery("#form").serialize(), container: "#w0", push: false })']); ?> </div> <div class="col-md-6"> <?php if ($model->country_id) { if (!isset($phoneMask)) { $phoneMask = $model->getPhoneMask(); } echo $form->field($model, 'phone')->widget(MaskedInput::className(), ['name' => 'phone', 'mask' => $phoneMask[0], 'options' => ['placeholder' => $phoneMask[1], 'class' => 'form-control']]); ?> <?php } else { ?> <?php echo $form->field($model, 'phone')->textInput(['class' => 'form-control disabled', 'disabled' => true]); ?> <?php } ?> </div> </div> <div class="row"> <div class="col-md-6 offset6"> <?php
/** * Outputs masked input * @param string $mask * @param array $options * @return static the field object itself */ public function maskedInput($mask = '', $options = []) { return $this->widget(MaskedInput::className(), array_merge(['mask' => $mask], $options)); }
echo $form->field($searchModel, 'razonSocialAdquiriente'); ?> </div> <div class="col-md-2 control-group"> <label class="control-label" for="input">Estado Doc</label> <div class="controls"> </div> </div> <div class="col-md-2 control-group"> <?php echo $form->field($searchModel, 'fechaEmisiondesde')->widget(\yii\widgets\MaskedInput::className(), ['mask' => '99/99/9999']); ?> </div> <div class="col-md-2 control-group"> <?php echo $form->field($searchModel, 'fechaEmisionhasta')->widget(\yii\widgets\MaskedInput::className(), ['mask' => '99/99/9999']); ?> </div> </div> <div class="row" id="crud-datatable-filters"> <div class="col-md-2 control-group"> <?php echo $form->field($searchModel, 'tipoMoneda')->dropDownList($listaTipoMoneda, ['prompt' => 'Todos']); ?> </div> <div class="col-md-3 control-group"> </div> <div class="col-md-2 control-group"> <?php echo $form->field($searchModel, 'bl_estadoRegistro')->dropDownList($listaEstadoSunat, ['prompt' => 'Todos']); ?>
<div style="font-size: 12px;"> <?php echo \yii\widgets\Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [], 'encodeLabels' => false]); ?> </div> <h1 class="title"><?php echo Html::encode($this->title); ?> </h1> <p style="font-size: 14px;">Пожалуйста заполнителе поле номер телефона. Новый пароль будет выслан вам на номер мобильного телефона.</p> <?php echo $form->field($model, 'phone')->widget(\yii\widgets\MaskedInput::className(), ['mask' => '+7(999)-999-9999', 'model' => $model, 'attribute' => 'phone', 'options' => ['placeholder' => '+7(___)-___-____', 'class' => 'input-type-text-medium', 'style' => 'width:400px; font-size:14px;']]); ?> <div class="form-group"> <?php echo Html::submitButton('Выслать новый пароль', ['class' => 'btn btn-primary']); ?> </div> </div> <?php ActiveForm::end(); ?> </div> </div> </div> </div>
?> <?php echo $form->field($model, 'company_name')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'position')->textInput(); ?> <?php echo $form->field($model, 'start_date')->widget(\yii\widgets\MaskedInput::className(), ['mask' => '99-99-9999', 'type' => 'date', 'options' => ['value' => date('d-m-Y', strtotime($model->start_date)), 'class' => 'form-control']]); ?> <?php echo $form->field($model, 'end_date')->widget(\yii\widgets\MaskedInput::className(), ['mask' => '99-99-9999', 'type' => 'date', 'options' => ['value' => date('d-m-Y', strtotime($model->end_date)), 'class' => 'form-control']]); ?> <?php echo $form->field($model, 'description')->textarea(['rows' => 6]); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?>
/* @var $form yii\widgets\ActiveForm */ $triagemSearch = new TriagemSearch(); $triagens = $triagemSearch->getTriagensPreAtendimentoByInteressado(); $interessadoSearch = new InteressadoSearch(); $interessados = $interessadoSearch->getInteressadosWitchCPF(); ?> <div class="atendimento-form"> <?php $form = ActiveForm::begin(); ?> <div class="row"> <div class="col-md-2"> <?php echo $form->field($model, 'numeroprocesso')->widget(MaskedInput::className(), ['mask' => '9999999-99.9999']); ?> </div> <div class="col-md-4"> <?php echo $form->field($model, 'triagem_id')->dropDownList(ArrayHelper::map($triagens, 'id', 'nome'), ['prompt' => 'Selecione']); ?> </div> <div class="col-md-2"> <?php echo $form->field($model, 'tipo')->dropdownList(['ativo' => 'Ativo', 'arquivado' => 'Arquivado']); ?> </div> <div class="col-md-3"> <?php
?> <?php echo $form->field($model, 'pool_id', ['options' => ['class' => 'col-xs-6']])->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'id_pool_type', ['options' => ['class' => 'col-xs-6']])->dropDownList(ArrayHelper::map(pooltype::find()->all(), "id_pool_type", "name"), ['maxlength' => true]); ?> <?php echo $form->field($model, 'name', ['options' => ['class' => 'col-xs-6']])->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'capital_size', ['options' => ['class' => 'col-xs-6'], 'template' => '<label for="pool-capital_size" class="control-label">Capital Size</label><div class="input-group"> <div class="input-group-addon">$</div>{input}<div class="input-group-addon">.00</div> </div>{error}'])->widget(MaskedInput::className(), ['clientOptions' => ['alias' => 'decimal', 'groupSeparator' => ',', 'digits' => '0', 'max' => '200000000', 'autoGroup' => true]]); ?> <?php echo $form->field($model, 'description', ['options' => ['class' => 'col-xs-10', "style" => ["width" => '100%']]])->textInput(['maxlength' => true]); ?> <div class="form-group" class="col-sm-10" style="padding-left: 15px"> <?php echo Html::submitButton($type, ['class' => 'btn btn-success']); ?> </div> <?php ActiveForm::end(); ?>
<div class="message-area-2" style="color: #1F2340; margin-bottom: 15px"></div> <form id="contact-form"> <div class="control-group"> <div class="controls"> <?php echo $form->field($user, 'username')->textInput(['placeholder' => 'ФИО'])->label(false); ?> </div> </div> <div class="control-group"> <div class="controls"> <?php echo $form->field($user, 'phone', ['template' => ' {input} <div>{error}</div> '])->widget(\yii\widgets\MaskedInput::className(), ['mask' => '+7(999)-999-9999', 'model' => $user, 'attribute' => 'phone', 'options' => ['placeholder' => '+7(___)-___-____', 'class' => 'input-type-text-medium']]); ?> </div> </div> <div class="control-group"> <div class="controls"> <?php echo $form->field($user, 'password')->passwordInput(['placeholder' => 'Пароль'])->label(false); ?> </div> </div> <div class="control-group"> <div class="controls"> <?php echo $form->field($user, 'password_repeat')->passwordInput(['placeholder' => 'Повторите пароль'])->label(false); ?>
?> <?php if (!empty($model->publish_date)) { $model->publish_date = date('d.m.Y', strtotime($model->publish_date)); } ?> <?php //datapicker language issue; $language = Yii::$app->language; if ($language == 'en') { $language = 'en-GB'; } ?> <?php echo $form->field($model, 'publish_date')->widget(\yii\widgets\MaskedInput::className(), ['clientOptions' => ['alias' => 'dd.mm.yyyy']])->widget(DatePicker::className(), ['template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'dd.mm.yyyy', 'minView' => 1], 'language' => $language]); ?> <?php echo $form->field($model, 'is_active')->checkbox(['label' => Yii::t('backend', 'Active')]); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? Yii::t('backend', 'Create') : Yii::t('backend', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?>
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; ?> <?php $form = ActiveForm::begin(['options' => ['id' => 'getprice-form']]); echo $form->field($model, 'name', ['template' => '{input}', 'inputOptions' => ['placeholder' => 'Имя', 'class' => 'form-control']]); ?> <?php echo $form->field($model, 'phone')->label(false)->error(false)->widget(\yii\widgets\MaskedInput::className(), ['mask' => '+7 (999) 999 99 99'])->textInput(['placeholder' => 'Телефон']); ?> <div style="padding:0 10px;"> <?php echo Html::submitButton('ОТПРАВИТЬ ЗАПРОС', ['class' => 'btn btn-lg btn-danger btn-block', 'style' => 'font-size:14px;']); ?> </div> <?php ActiveForm::end(); ?>
}]); ?> </div> <div class="form-ul pb20 clearfix"> <?php echo $form->field($appModel, 'net_worth')->label('Please provide an estimate of your net worth:')->radioList(DictApplicant::$netWorth, ['item' => function ($index, $label, $name, $checked, $value) { $radio = Html::radio($name, $checked, ['class' => 'just-app', 'value' => $value]); $label = Html::label($radio . $label); return Html::tag('div', $label, ['class' => 'radio col-xs-4']); }]); ?> </div> <div class="form-ul pb20 border-bottom clearfix"> <?php echo $form->field($appModel, 'total_value_with_advisor', ['options' => ['class' => 'col-xs-12 padding-left0'], 'template' => '{label}<div class="input-group"> <div class="input-group-addon">$</div> {input} <div class="input-group-addon">.00</div> </div>{hint}{error}', 'inputOptions' => ['class' => 'form-control just-app']])->label('What is the value of all your accounts with your investment advisor?')->widget(MaskedInput::className(), ['clientOptions' => ['alias' => 'decimal', 'groupSeparator' => ',', 'digits' => '0', 'max' => '2000000000', 'autoGroup' => true]]); ?> </div> <h4 style="font-weight:bold;">INSTRUCTIONS TO RECEIVE LINE OF CREDIT DISBURSEMENTS</h4> <p class="wwbw">Designate the checking or savings account into which you want your Line of Credit disbursements to be deposited. Disbursements will be made by ACH. You may change your designated deposit account at any time on the BriteLine Portal. Any change to your designated deposit account for disbursements will take effect within two (2) business days.</p> <img width="456" height="231" src="<?php echo Url::to('@web/images/loan_disbursment.jpg'); ?> " /> <br /><br /> <div class="form-ul clearfix"> <?php echo $form->field($appFormModel, 'bank_name', ['options' => ['class' => 'col-xs-6 padding-left0'], 'inputOptions' => ['class' => 'form-control just-app-input']]); ?> <?php
?> <?php echo $form->field($model, 'cost_energy')->textInput(); ?> <?php echo $form->field($model, 'cost_people')->textInput(); ?> <?php echo $form->field($model, 'cost_credits')->textInput(); ?> <?php echo $form->field($model, 'cost_time')->widget(\yii\widgets\MaskedInput::className(), ['mask' => '99:99:99']); ?> <?php echo $form->field($model, 'balance_iron')->textInput(); ?> <?php echo $form->field($model, 'balance_steel')->textInput(); ?> <?php echo $form->field($model, 'balance_chemicals')->textInput(); ?> <?php
use yii\widgets\ActiveForm; use yii\widgets\MaskedInput; /* @var $this yii\web\View */ /* @var $model common\models\Profile */ /* @var $modelUser common\models\User */ /* @var $form ActiveForm */ ?> <div class="main-reg"> <?php $form = ActiveForm::begin(); ?> <div class="row"> <div class="col-md-4 col-md-offset-4"> <?php echo $form->field($model, 'phone')->widget(MaskedInput::className(), ['name' => 'phone', 'mask' => '7 (999) 999-9999', 'options' => ['placeholder' => '7 (___) ___-____', 'class' => 'form-control']]); ?> <?php if ($model->scenario === 'emailActivation' || $model->scenario === 'phoneAndEmailFinish' || Yii::$app->controller->action->id == 'reg') { ?> <?php echo $form->field($model, 'email'); ?> <?php } ?> <?php if (Yii::$app->controller->action->id == 'reg') { ?> <?php echo $form->field($model, 'password')->passwordInput();
echo $form->field($prepareModel, 'passport_number', ['template' => '{label}{input}'])->textInput(['maxlength' => true, 'id' => 'pass-num'])->label('№', ['id' => 'pass-lnum']); ?> </div> </div> <div id="driver-box"> <div class="step-row-form"> <?php echo $form->field($prepareModel, 'license_number', ['template' => '{label}{input}'])->textInput(); ?> </div> <div class="step-row-form"> <?php echo $form->field($prepareModel, 'experience', ['template' => '{label}{input}'])->widget(\yii\widgets\MaskedInput::className(), ['mask' => '9{1,2}', 'options' => ['placeholder' => '_']]); ?> </div> </div> </div> <div class="jur"> <div id="jur-box"> <div class="step-row-form"> <?php echo $form->field($prepareModel, 'inn', ['template' => '{label}{input}'])->textInput(['maxlength' => true]); ?> </div>
<div class="<?php echo $s['class']['col']; ?> "> <?php echo $widget->label ? Html::activeLabel($widget->model, $widget->attribute) : ''; ?> <?php if ($widget->form) { ?> <?php echo $widget->form->field($widget->model, $widget->attribute, ['addon' => ['prepend' => ['content' => $buttonDropdown, 'asButton' => true]]])->widget(MaskedInput::className(), $widgetConfig)->label(false); ?> <?php } else { ?> <div class="input-group" > <span class="input-group-btn"><?php echo $buttonDropdown; ?> </span> <?php echo MaskedInput::widget($widgetConfig); ?> </div>
echo $form->field($model, 'occupation', ['options' => ['class' => 'col-xs-6']])->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'employer', ['options' => ['class' => 'col-xs-6']])->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'total_annual_income', ['options' => ['class' => 'col-xs-6']])->radioList(DictApplicant::$totalAnnualIncome); ?> <?php echo $form->field($model, 'years_with_advisor', ['options' => ['class' => 'col-xs-6']])->radioList(DictApplicant::$yearsWithAdvisor); ?> <?php echo $form->field($model, 'net_worth', ['options' => ['class' => 'col-xs-6']])->radioList(DictApplicant::$netWorth); ?> <?php echo $form->field($model, 'total_value_with_advisor', ['options' => ['class' => 'col-xs-6']])->textInput(['maxlength' => true])->widget(MaskedInput::className(), ['clientOptions' => ['alias' => 'decimal', 'groupSeparator' => ',', 'digits' => '0', 'max' => '2000000', 'autoGroup' => true]]); ?> <div class="form-group"> <div class="col-sm-10" style="padding-left: 230px"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> </div> <?php ActiveForm::end(); ?>
<?php echo $form->field($model, 'name')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'year')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'bedroom')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'bathroom')->textInput(['maxlength' => true]); ?> </div> <div class="col-md-4"> <?php echo $form->field($model, 'price')->widget(MaskedInput::className(), ['clientOptions' => ['alias' => 'decimal', 'groupSeparator' => '.', 'autoGroup' => true, 'rightAlign' => false], 'options' => ['maxlength' => 11, 'class' => 'form-control']]); ?> <?php echo $form->field($model, 'title')->dropDownList(Sale::getYesList(), ['prompt' => '']); ?> <?php echo $form->field($model, 'commission')->textInput(['maxlength' => true]); ?> </div> </div> </div> </div> <div class="row"> <div class="col-md-8">
?> <?php echo $form->field($model, 'division'); ?> <?php echo $form->field($model, 'post'); ?> <?php echo $form->field($model, 'phone'); ?> <?php echo $form->field($model, 'mobile')->widget(MaskedInput::className(), ['mask' => '(999) 999-99-99']); ?> <div class="form-group"> <?php echo Html::submitButton('<span class="glyphicon glyphicon-ok"></span> Сохранить', ['class' => 'btn btn-primary']); ?> <?php if ($user->status == $user::STATUS_ACTIVE) { echo Html::a('<span class="glyphicon glyphicon glyphicon-lock"></span> Заблокировать', ['change-status', 'id' => (string) $user->getPrimaryKey(), 'status' => $user::STATUS_BLOCKED], ['class' => 'btn btn-danger', 'data-method' => 'post']); } elseif ($user->status == $user::STATUS_BLOCKED) { echo Html::a('<span class="glyphicon glyphicon-arrow-up"></span> Активировать', ['change-status', 'id' => (string) $user->getPrimaryKey(), 'status' => $user::STATUS_ACTIVE], ['class' => 'btn btn-success', 'data-method' => 'post']); } ?> </div>
<?php /** * @var $attribute_name string * @var $form \yii\widgets\ActiveForm * @var $label string * @var $model \app\properties\AbstractModel * @var $multiple boolean * @var $property_id integer * @var $property_key string * @var $this \app\properties\handlers\Handler * @var $values array */ use app\models\Property; use yii\widgets\MaskedInput; $result = $form->field($model, $property_key); $property = Property::findById($property_id); if (empty($property->mask) === false) { $result->widget(MaskedInput::className(), ['mask' => $property->mask]); } elseif (is_null($property->alias) === false && $property->alias !== 0) { $aliases = Property::getAliases(); $result->widget(MaskedInput::className(), ['clientOptions' => ['alias' => $aliases[$property->alias]]]); } echo $result;