_form.php 699 B

12345678910111213141516171819202122232425
  1. <?php
  2. use yii\helpers\Html;
  3. use yii\widgets\ActiveForm;
  4. /* @var $this yii\web\View */
  5. /* @var $model common\models\ArticleModule */
  6. /* @var $form yii\widgets\ActiveForm */
  7. ?>
  8. <div class="box box-success">
  9. <div class="box-body">
  10. <?php $form = ActiveForm::begin(); ?>
  11. <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
  12. <?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
  13. <div class="form-group form-submit">
  14. <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success btn-block' : 'btn btn-success block']) ?>
  15. </div>
  16. <?php ActiveForm::end(); ?>
  17. </div>
  18. </div>