bf807468
Alex Savenko
first commit
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
?>
<?php $form = ActiveForm::begin([
'id' => 'form',
'options' => ['enctype' => 'multipart/form-data'],
]); ?>
<?= $form->field($model, 'title') ?>
<?= $form->field($model, 'url') ?>
<?= $form->field($model, 'image')->fileInput() ?>
<?= $form->field($model, 'old_image')->hiddenInput(['value'=>$model->image])->label(false); ?>
<?= Html::submitButton('Сохранить', ['class' => 'btn btn-primary', 'name' => 'login-button']) ?>
<?php ActiveForm::end(); ?>
|