Commit f25acc4a22f2a5a1bb334d99608da83b9ed3fbe2
1 parent
84a35097
test
Showing
1 changed file
with
39 additions
and
0 deletions
Show diff stats
1 | +<?php | |
2 | + | |
3 | +use yii\helpers\Html; | |
4 | +use yii\widgets\ActiveForm; | |
5 | + | |
6 | +/* @var $this yii\web\View */ | |
7 | +/* @var $model common\models\Job */ | |
8 | +/* @var $form yii\widgets\ActiveForm */ | |
9 | +?> | |
10 | + | |
11 | +<div class="job-form"> | |
12 | + | |
13 | + <?php $form = ActiveForm::begin(); ?> | |
14 | + | |
15 | + <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?> | |
16 | + | |
17 | + <?= $form->field($model, 'link')->textInput(['maxlength' => true]) ?> | |
18 | + | |
19 | + <?= $form->field($model, 'date_start')->textInput() ?> | |
20 | + | |
21 | + <?= $form->field($model, 'date_end')->textInput() ?> | |
22 | + | |
23 | + <?= $form->field($model, 'position')->textInput(['maxlength' => true]) ?> | |
24 | + | |
25 | + <?= $form->field($model, 'user_id')->textInput() ?> | |
26 | + | |
27 | + <?= $form->field($model, 'total_count')->textInput() ?> | |
28 | + | |
29 | + <?= $form->field($model, 'complete_count')->textInput() ?> | |
30 | + | |
31 | + <?= $form->field($model, 'current')->textInput() ?> | |
32 | + | |
33 | + <div class="form-group"> | |
34 | + <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | |
35 | + </div> | |
36 | + | |
37 | + <?php ActiveForm::end(); ?> | |
38 | + | |
39 | +</div> | ... | ... |