12345678910111213141516171819202122232425 |
- <?php
- use yii\helpers\Html;
- use yii\widgets\ActiveForm;
- /* @var $this yii\web\View */
- /* @var $model common\models\ArticleModule */
- /* @var $form yii\widgets\ActiveForm */
- ?>
- <div class="box box-success">
- <div class="box-body">
- <?php $form = ActiveForm::begin(); ?>
- <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
- <?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
- <div class="form-group form-submit">
- <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success btn-block' : 'btn btn-success block']) ?>
- </div>
- <?php ActiveForm::end(); ?>
- </div>
- </div>
|