You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.0 KiB
45 lines
1.0 KiB
7 years ago
|
<?php
|
||
|
|
||
|
/* @var $this yii\web\View */
|
||
|
/* @var $model \core\forms\SliderForm */
|
||
|
|
||
|
use yii\widgets\ActiveForm;
|
||
|
use yii\helpers\Html;
|
||
|
|
||
|
?>
|
||
|
|
||
|
<div class="slider-form">
|
||
|
|
||
|
<?php $form = ActiveForm::begin(); ?>
|
||
|
|
||
|
<div class="box box-default">
|
||
|
<div class="box-body">
|
||
|
<?= $form->field($model, 'title')->textarea(['maxLength' => true, 'rows' => 2]) ?>
|
||
|
<?= $form->field($model, 'tagline')->textarea(['maxLength' => true, 'rows' => 2]) ?>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="col-md-2">
|
||
|
<?= $form->field($model, 'sort')->textInput(['maxLength' => true]) ?>
|
||
|
</div>
|
||
|
<div class="col-md-10">
|
||
|
<?= $form->field($model, 'url')->textInput(['maxLength' => true]) ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<?= $form->field($model, 'image')->widget(\kartik\widgets\FileInput::classname(), [
|
||
|
'pluginOptions' => [
|
||
|
'showUpload' => false,
|
||
|
],
|
||
|
])->label(Yii::t('slider', 'Background Image')) ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<?= Html::submitButton(Yii::t('buttons', 'Save'), ['class' => 'btn btn-primary']) ?>
|
||
|
</div>
|
||
|
|
||
|
<?php ActiveForm::end(); ?>
|
||
|
|
||
|
</div>
|
||
|
|