_form.php 722 B

123456789101112131415161718192021222324252627
  1. <?php
  2. use yii\bootstrap\ActiveForm;
  3. use yii\helpers\Html;
  4. /* @var $this yii\web\View */
  5. /* @var $model common\models\Carousel */
  6. /* @var $form yii\bootstrap\ActiveForm */
  7. ?>
  8. <div class="widget-carousel-form">
  9. <?php $form = ActiveForm::begin(); ?>
  10. <?php echo $form->field($model, 'key')->textInput(['maxlength' => 1024]) ?>
  11. <?php echo $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
  12. <?php echo $form->field($model, 'status')->checkbox() ?>
  13. <div class="form-group form-submit">
  14. <?= Html::submitButton($model->isNewRecord ? Yii::t('backend', 'Create') : Yii::t('backend', 'Update'), ['class' => 'btn btn-success']) ?>
  15. </div>
  16. <?php ActiveForm::end(); ?>
  17. </div>