_form.php 692 B

123456789101112131415161718192021222324252627
  1. <?php
  2. use yii\helpers\Html;
  3. use yii\widgets\ActiveForm;
  4. /* @var $this yii\web\View */
  5. /* @var $model app\models\Images */
  6. /* @var $form yii\widgets\ActiveForm */
  7. ?>
  8. <div class="images-form">
  9. <?php $form = ActiveForm::begin(); ?>
  10. <?= $form->field($model, 'lot_id')->textInput() ?>
  11. <?= $form->field($model, 'path')->textInput(['maxlength' => true]) ?>
  12. <?= $form->field($model, 'date_create')->textInput() ?>
  13. <div class="form-group">
  14. <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  15. </div>
  16. <?php ActiveForm::end(); ?>
  17. </div>