_form.php 657 B

12345678910111213141516171819202122232425
  1. <?php
  2. use yii\bootstrap\ActiveForm;
  3. use yii\helpers\Html;
  4. /* @var $this yii\web\View */
  5. /* @var $model common\models\Nav */
  6. /* @var $form yii\bootstrap\ActiveForm */
  7. ?>
  8. <div class="widget-Nav-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' => 1024]) ?>
  12. <div class="form-group form-submit">
  13. <?php echo Html::submitButton($model->isNewRecord ? Yii::t('backend', 'Create') : Yii::t('backend', 'Update'), ['class' => 'btn btn-success']) ?>
  14. </div>
  15. <?php ActiveForm::end(); ?>
  16. </div>