Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use yii\helpers\Html;
- use yii\widgets\ActiveForm;
- use common\models\Cultusers;
- use dosamigos\datepicker\DatePicker;
- /* @var $this yii\web\View */
- /* @var $model common\models\Cultusers */
- /* @var $form yii\widgets\ActiveForm */
- ?>
- <div class="cult">
- <?php $form = ActiveForm::begin(['id' => 'create',
- 'method' => 'POST', 'options' => ['enctype'=>'multipart/form-data']]); ?>
- <?= $form->field($model, 'username') ?>
- <?= $form->field($model, 'email') ?>
- <?= $form->field($model, 'password')->passwordInput() ?>
- <?= $form->field($model, 'birthdate')->widget(
- DatePicker::className(), [
- // inline too, not bad
- 'inline' => true,
- // modify template for custom rendering
- 'template' => '<div class="well well-sm" style="background-color: #fff; width:250px">{input}</div>',
- 'clientOptions' => [
- 'autoclose' => true,
- 'format' => 'dd-M-yyyy'
- ]
- ]);?>
- <?= $form->field($model, 'city') ?>
- <?= $form->field($model, 'schools') ?>
- <?=$form->field($model, 'sex')->radioList(['mas' => 'mas', 'fem' => 'fem'], ['itemOptions' => ['class' =>'radio-inline']])?>
- <?= $form->field($model, 'file')->fileInput() ?>
- <?= $form->field($model, 'about')->textArea(['rows' => 6]) ?>
- <div class="form-group">
- <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
- </div>
- <?php ActiveForm::end(); ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement