Commit 9ee19cd3 by dianc

Category Updated-4

parent 64f417aa
...@@ -14,22 +14,23 @@ use trntv\filekit\widget\Upload; ...@@ -14,22 +14,23 @@ use trntv\filekit\widget\Upload;
<?php $form = ActiveForm::begin(); ?> <?php $form = ActiveForm::begin(); ?>
<?php echo $form->errorSummary($model); ?> <?php echo $form->errorSummary($model); ?>
<div class="row"> <div class="row">
<div class="col-md-3"> <div class="col-md-3">
<?php echo $form->field($model, 'name')->textInput(['maxlength' => true]) ?> <?php echo $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
</div> </div>
<div class="col-md-3">
<?php echo $form->field($model, 'description')->textarea(['maxlength' => true]) ?>
</div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-3"> <div class="col-md-3">
<?php echo $form->field($model, 'slug')->textInput(['maxlength' => true]) ?> <?php echo $form->field($model, 'slug')->textInput(['maxlength' => true]) ?>
</div> </div>
</div>
<div class="row">
<div class="col-md-3"> <div class="col-md-3">
<?= $form->field($model, 'status')->dropDownList($model::statuses(), ['prompt' => '']) ?> <?php echo $form->field($model, 'description')->textarea(['maxlength' => true]) ?>
</div> </div>
</div> </div>
...@@ -39,11 +40,17 @@ use trntv\filekit\widget\Upload; ...@@ -39,11 +40,17 @@ use trntv\filekit\widget\Upload;
Upload::className(), Upload::className(),
[ [
'url' => ['/file-storage/upload'], 'url' => ['/file-storage/upload'],
])->label('Image(1280x854)'); ])->label('Image');
?> ?>
</div> </div>
</div> </div>
<div class="row">
<div class="col-md-3">
<?= $form->field($model, 'status')->dropDownList($model::statuses(), ['prompt' => '']) ?>
</div>
</div>
<div class="form-group"> <div class="form-group">
<?php echo Html::submitButton($model->isNewRecord ? Yii::t('backend', 'Create') : Yii::t('backend', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> <?php echo Html::submitButton($model->isNewRecord ? Yii::t('backend', 'Create') : Yii::t('backend', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment