4253cbec
root
first commit
|
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<?= $form->field($model, 'image')->widget(\kartik\file\FileInput::classname(), [
'model' => $model,
'attribute' => 'image',
'options' => [
'accept' => 'image/*',
'multiple' => true
],
'pluginOptions' => [
'allowedFileExtensions' => ['jpg','gif','png'],
'initialPreview' => $model->imageUrl ? \common\components\artboximage\ArtboxImageHelper::getImage($model->imageUrl, 'slider') : '',
'overwriteInitial' => true,
'showRemove' => true,
'showUpload' => false,
],
]); ?>
<?= $form->field($model, 'alt')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
|
1da76554
Administrator
big commti
|
41
42
43
44
45
46
47
|
<?= $form->field($model, 'end_at')
->widget(DatePicker::className(), [
'pluginOptions' => [
'todayHighlight' => true,
'format' => 'yyyy-mm-dd',
]]) ?>
|
4253cbec
root
first commit
|
51
52
53
54
55
56
57
58
59
60
|
<?= $form->field($model, 'sort')->textInput() ?>
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
|