?> <?php } ?> <?php echo $form->field($profile, 'file')->fileInput(); ?> <?php echo $form->field($profile, 'location'); ?> <?php echo $form->field($profile, 'birthday')->widget(DatePicker::className(), ['inline' => false, 'clientOptions' => ['autoclose' => false, 'format' => 'yyyy-mm-dd']]); ?> <?php echo $form->field($profile, 'subscribe')->widget(CheckboxX::classname()); ?> <div class="form-group"> <div class="col-lg-offset-3 col-lg-9"> <?php echo Html::submitButton(Yii::t('user', 'Update'), ['class' => 'btn btn-block btn-success']); ?> </div> </div> <?php ActiveForm::end(); ?>
echo Select2::widget(['name' => 'params', 'value' => $paramsValue, 'options' => ['multiple' => true, 'placeholder' => Adm::t('', 'Select ...', ['dot' => false])], 'data' => $data, 'pluginOptions' => ['tags' => true, 'maximumInputLength' => 250, 'tokenSeparators' => [EmailConfig::EMAIL_SEPARATOR]]]); ?> </div> </div> <div class="col-xs-12 col-sm-4 col-md-4 readonly-cont"> <?php echo $form->field($model, 'username')->textInput(['maxlength' => 250]); ?> <?php echo $form->field($model, 'password')->textInput(['maxlength' => 250]); ?> <?php echo $form->field($model, 'enable_smtp', ["template" => "{input}\n{label}\n{hint}\n{error}"])->widget(CheckboxX::classname(), ['pluginOptions' => ['threeState' => false]]); ?> </div> </div> <div class="form-group"> <?php echo InputButton::widget(['label' => Adm::t('', 'Update', ['dot' => false]), 'options' => ['class' => 'btn btn-primary'], 'input' => 'adm-redirect', 'name' => 'redirect', 'formSelector' => $form]); ?> <?php echo InputButton::widget(['label' => Adm::t('adm_email_config', 'Update and Test', ['dot' => false]), 'options' => ['class' => 'btn btn-primary'], 'input' => 'adm-redirect', 'name' => 'redirect', 'value' => Url::to('test'), 'formSelector' => $form]); ?>
<?php echo $form->field($model, 'img')->widget(FileInput::classname(), ['name' => 'image-member', 'pluginOptions' => ['showCaption' => false, 'showRemove' => false, 'showUpload' => false, 'browseClass' => 'btn btn-primary btn-block', 'browseIcon' => '<i class="glyphicon glyphicon-camera"></i> ', 'browseLabel' => yii::t('advertise', 'Select Photo')], 'options' => ['accept' => 'image/*']]); ?> <?php echo $form->field($model, 'name')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'start_at')->widget(DateTimePicker::classname(), ['type' => DateTimePicker::TYPE_COMPONENT_PREPEND, 'options' => ['placeholder' => 'Enter event time ...'], 'value' => '23-Feb-1982 01:10', 'layout' => '{picker}{input}', 'pluginOptions' => ['autoclose' => true, 'todayHighlight' => true, 'todayBtn' => true, 'format' => 'mm/dd/yyyy hh:ii:ss']]); ?> <?php echo $form->field($model, 'end_at')->widget(DateTimePicker::classname(), ['options' => ['placeholder' => 'Enter event time ...'], 'layout' => '{picker}{input}', 'pluginOptions' => ['autoclose' => true, 'todayHighlight' => true, 'todayBtn' => true, 'format' => 'mm/dd/yyyy hh:ii:ss']]); ?> <?php echo $form->field($model, 'is_show')->widget(CheckboxX::classname(), ['autoLabel' => false, 'pluginOptions' => ['threeState' => false, 'size' => 'md']])->label("Is Show"); ?> <?php echo $form->field($model, 'link')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'body')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'advanced']); ?> <?php $langues = BLanguecenter::find()->where(['is_show' => 1])->orderBy('ordinal_view ASC')->all(); $id = ''; $name = ''; if ($langues) { foreach ($langues as $category) { $id[] = $category->ID;
<div class="row"> <div class="col-md-6"> <?php echo $form->field($model, 'username')->textInput(['maxlength' => 255, 'disabled' => true]); ?> <?php echo $form->field($model, 'email')->textInput(['maxlength' => 255]); ?> </div> <div class="col-md-6"> <p> </p> <?php echo $form->field($model, 'flags')->widget(CheckboxX::classname(), ['pluginOptions' => ['threeState' => false]]); ?> <?php // $form->field($model, 'role')->dropDownList(app\models\User::$roles) ?> </div> </div> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?>
</label> <i class="fa fa-chevron-right chevron"></i> </div> <div class="wrapper location" style="border-top:none;margin-bottom:10px !important;"> <?php echo $form->field($model, 'user_id')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'new_req')->checkbox(['labelOptions' => []]); ?> <?php echo $form->field($model, 'upd_req')->widget(CheckboxX::classname(), ['pluginOptions' => ['size' => 'sm']]); ?> <?php echo $form->field($model, 'del_req')->checkbox(); ?> <?php echo $form->field($model, 'exp_req')->checkbox(); ?> <?php echo $form->field($model, 'succ_req')->checkbox(); ?> <?php
<div class="reg-header"> <h2>用户登陆</h2> </div> <?php echo $form->field($model, 'login', ['addon' => ['prepend' => ['content' => '<i class="fa fa-user"></i>']], 'template' => "{input}", 'inputOptions' => ['autofocus' => 'autofocus', 'class' => 'form-control', 'tabindex' => '1', 'placeholder' => '用户名或者邮箱']]); ?> <?php echo $form->field($model, 'password', ['addon' => ['prepend' => ['content' => '<i class="fa fa-lock"></i>']], 'template' => "{input}", 'inputOptions' => ['autofocus' => 'autofocus', 'class' => 'form-control', 'tabindex' => '2', 'placeholder' => '密码']])->passwordInput(); ?> <div class="row"> <div class="col-md-6"> <?php echo $form->field($model, 'rememberMe', ['template' => '{input}{label}', 'labelOptions' => ['class' => 'cbx-label']])->widget(\kartik\checkbox\CheckboxX::classname(), ['autoLabel' => false]); ?> </div> <div class="col-md-6"> <?php echo Html::submitButton(Yii::t('user', 'Sign in'), ['class' => 'btn-u pull-right', 'tabindex' => '3']); ?> </div> </div> <?php echo $form->errorSummary($model); ?> <hr> <h4>忘记密码?</h4>
?> </td> </tr> <tr> <td> <?php echo $model->signature_img ? Html::img(Yii::$app->homeUrl . $model->signature_img, ['style' => 'width: 250px']) : ''; ?> </td> <td></td> </tr> </table> </div> <p> <?php echo $form->field($model, 'fin')->widget(CheckboxX::classname(), ['name' => 's_1', 'value' => '1', 'options' => ['id' => 'agree'], 'pluginOptions' => ['threeState' => false]])->label('I agree to the terms of the above agreement'); ?> </p> <div class="btn-nav"> <?php echo Html::a('Change Your Info', ['create', 'status' => 'change'], ['class' => 'btn btn-default']); ?> <?php echo Html::submitButton('Submit The Waiver', ['id' => 'btn-create', 'class' => 'btn btn-primary', 'disabled' => true]); ?> </div> <?php ActiveForm::end(); } if (Yii::$app->session->getFlash('Success')) { ?>
<?php echo $form->field($model, 'address')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'schedule')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'url')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'is_show')->widget(CheckboxX::classname(), ['autoLabel' => false, 'pluginOptions' => ['threeState' => false, 'size' => 'md']]); ?> <?php echo $form->field($model, 'active')->widget(CheckboxX::classname(), ['autoLabel' => false, 'pluginOptions' => ['threeState' => false, 'size' => 'md']]); ?> <?php echo $form->field($model, 'ordinal_view')->textInput(['maxlength' => true]); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? yii::t('languecenter', 'Create') : yii::t('languecenter', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> </div> </div> <?php ActiveForm::end(); ?>
//use \yii\bootstrap\ActiveForm; use yii\bootstrap\ActiveForm; use kartik\checkbox\CheckboxX; use app\models\Question; /* @var $this yii\web\View */ /* @var $model app\models\User */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="user-form"> <div class="form-group"> <?php $form = ActiveForm::begin(['options' => ['class' => 'required-asterisk']]); ?> <?php echo $form->field($model, 'is_active')->textInput()->widget(CheckboxX::classname(), ['class' => 'form-control form-field-short', 'pluginOptions' => ['threeState' => false]]); ?> <?php echo $form->field($model, 'first_name')->textInput(['maxlength' => true, 'class' => 'form-control form-field-short']); ?> <?php echo $form->field($model, 'last_name')->textInput(['maxlength' => true, 'class' => 'form-control form-field-short']); ?> <?php echo $form->field($model, 'email')->textInput(['maxlength' => true, 'class' => 'form-control form-field-short']); ?> <?php
use dosamigos\selectize\SelectizeDropDownList; use yii\helpers\Url; use kartik\select2\Select2; use yii\helpers\ArrayHelper; use common\models\Amplua; /* @var $this yii\web\View */ /* @var $model common\models\Composition */ $this->title = 'Добавить игрока в состав'; $this->params['breadcrumbs'][] = ['label' => 'Составы команд матчей', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="composition-create"> <h1><?php echo Html::encode($this->title); ?> </h1> <?php $form = ActiveForm::begin(['id' => 'team' . $model->command_id . '-player-add-form']); echo $form->field($contractModel, 'player_id')->widget(SelectizeDropDownList::classname(), ['loadUrl' => Url::to(['player/player-list']), 'options' => ['multiple' => false], 'clientOptions' => ['valueField' => 'value', 'labelField' => 'text', 'persist' => false]]); echo $form->field($contractModel, 'amplua_id')->widget(Select2::classname(), ['data' => ArrayHelper::map(Amplua::find()->all(), 'id', 'name'), 'language' => 'ru', 'options' => ['placeholder' => 'Выберите амплуа...'], 'pluginOptions' => ['allowClear' => true]]); echo $form->field($contractModel, 'number')->textInput(); echo $form->field($model, 'is_basis')->widget(CheckboxX::classname(), ['pluginOptions' => ['threeState' => false], 'options' => ['id' => 'team' . $model->command_id . '-create-is_basis']]); echo $form->field($model, 'is_captain')->widget(CheckboxX::classname(), ['pluginOptions' => ['threeState' => false], 'options' => ['id' => 'team' . $model->command_id . '-create-is_captain']]); echo Html::submitButton('Добавить', ['class' => 'btn btn-primary']); ActiveForm::end(); ?> </div>
<?php echo $form->field($user, 'status')->dropDownList($user::statusDropdown(), ['readonly' => $readOnly, 'disabled' => $disabled]); ?> <?php // use checkbox for ban_time ?> <?php // convert `ban_time` to int so that the checkbox gets set properly ?> <?php $user->ban_time = $user->ban_time ? 1 : 0; ?> <?php echo $form->field($user, 'ban_time')->widget(CheckboxX::classname(), ['pluginOptions' => ['threeState' => false], 'readonly' => $readOnly])->label('Заблокирован'); ?> <?php echo $form->field($user, 'ban_reason'); ?> <div class="form-group"> <?php echo Html::submitButton($user->isNewRecord ? Yii::t('user', 'Создать') : Yii::t('user', 'Изменить'), ['class' => $user->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?>
?> <?php foreach ($item['items'] as $child) { ?> <?php if (isset($child['key'])) { ?> <div style="padding-left: 30px;"> <?php if (!isset($model->items[$child['key']])) { $model->items[$child['key']] = 1; } ?> <?php echo $form->field($model, 'items[' . $child['key'] . ']', ['template' => '{input}{label}'])->label($child['label'])->widget(CheckboxX::classname(), ['pluginOptions' => ['threeState' => false]]); ?> </div> <?php } ?> <?php } ?> <?php } ?> </div> <?php } ?>
?> <?php echo $form->field($model_trans, 'hint')->textArea(['rows' => 4]); ?> <?php echo $form->field($model, 'type')->dropDownList(['1' => 'number', '2' => 'radio', '21' => 'radioButton', '22' => 'radio', '23' => 'radioButton', '3' => 'select', '31' => 'select2', '32' => 'select_media', '4' => 'multiselect', '41' => 'checkboxButton', '42' => 'multiselect_select', '43' => 'multiselect_select2', '44' => 'multiselect_media', '5' => 'checkbox', '6' => 'text', '7' => 'textarea', '8' => 'slider', '9' => 'range', '10' => 'date', '11' => 'time', '12' => 'datetime', '13' => 'email', '14' => 'url', '15' => 'color', '16' => 'date range'], ['prompt' => '']); ?> <?php echo $form->field($model, 'multiple_values')->widget(CheckboxX::classname(), ['pluginOptions' => ['size' => 'sm']]); ?> <?php echo $form->field($model, 'translatable_values')->widget(CheckboxX::classname(), ['pluginOptions' => ['size' => 'sm']]); ?> <?php echo $form->field($model, 'class')->dropDownList(['types' => 'types', 'product' => 'product', 'time' => 'time', 'parts' => 'parts', 'models' => 'models', 'number' => 'number', 'string' => 'string', 'other' => 'drugo'], ['prompt' => '']); ?> <?php echo $form->field($model, 'description')->dropDownList(['specs' => 'svojstvo predmeta', 'methods' => 'svojstvo akcije', 'skills' => 'svojstvo delatnosti'], ['prompt' => '']); ?> <div class="row" style="margin:20px;"> <div class="col-md-offset-3"> <?php echo !$model->isNewRecord ? Html::a('Go Back', Url::to(['view', 'id' => $model->id]), ['class' => 'btn btn-default']) : null; ?>
$form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]); ?> <?php echo $form->field($model, 'title')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'image')->widget(FileInput::classname(), ['pluginOptions' => ['allowedFileExtensions' => ['jpg', 'gif', 'png'], 'language' => 'de', 'showCaption' => false, 'showRemove' => false, 'showUpload' => false, 'browseClass' => 'btn btn-primary btn-block', 'browseIcon' => '<i class="glyphicon glyphicon-camera"></i> ', 'browseLabel' => 'Select Image', 'initialPreview' => [$model->getImageTag('thumb')]], 'options' => ['accept' => 'image/*']]); ?> <?php echo $form->field($model, 'content')->widget('common\\widgets\\Redactor'); ?> <?php echo $form->field($model, 'status')->widget(CheckboxX::classname(['initInputType' => CheckboxX::INPUT_CHECKBOX]), ['pluginOptions' => ['threeState' => false]]); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? Yii::t('Article', 'Create') : Yii::t('Article', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?> </div>
<div class="row"> <div class="col-lg-5"> <?php $form = ActiveForm::begin(['id' => 'login-form']); ?> <?php echo $form->field($model, 'login'); ?> <?php echo $form->field($model, 'password')->passwordInput(); ?> <?php echo $form->field($model, 'rememberMe', ['template' => '{input}{label}{error}{hint}', 'labelOptions' => ['class' => 'cbx-label']])->widget(CheckboxX::classname(), ['autoLabel' => false, 'pluginOptions' => ['threeState' => false, 'size' => 'md']]); ?> <div style="color:#999;margin:1em 0"> If you forgot your password you can <?php echo Html::a('reset it', ['site/request-password-reset']); ?> . </div> <div class="form-group"> <?php echo Html::submitButton('Login', ['class' => 'btn btn-primary', 'name' => 'login-button']); ?> </div>
?> </div> </div> <?php if ($model->avatar) { ?> <?php echo Html::img('avatars/' . $model->avatar, ['class' => 'img-responsive', 'width' => '150px;']); ?> <?php } ?> <?php echo $form->field($model, 'status')->widget(CheckboxX::classname(), ['pluginOptions' => ['threeState' => false]])->label('ทำงานอยู่'); ?> <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(); ?> </div>
echo $form->field($model, 'applicationName')->textInput(['maxlength' => 255]); ?> <?php echo $form->field($model, 'description')->textInput(['maxlength' => 255]); ?> <?php echo $form->field($model, 'sms')->widget(CheckboxX::classname(), ['autoLabel' => true]); ?> <?php echo $form->field($model, 'sms_key')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'sms_pass')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'gcm')->widget(CheckboxX::classname(), ['autoLabel' => true]); ?> <?php echo $form->field($model, 'gcm_sender')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'gcm_api_key')->textInput(['maxlength' => true]); ?> </div> <div role="tabpanel" class="tab-pane" id="application"> <div class="row" > <h5> </h5> </div> <?php