Commit c9e0ec8a by jomon

code review changes

parent 31be3fa5
...@@ -12,6 +12,7 @@ use trntv\filekit\widget\Upload; ...@@ -12,6 +12,7 @@ use trntv\filekit\widget\Upload;
<div class="category-form"> <div class="category-form">
<?php $form = ActiveForm::begin(); ?> <?php $form = ActiveForm::begin(); ?>
<ul id="myTab" class="nav nav-tabs"> <ul id="myTab" class="nav nav-tabs">
<li class="active"> <li class="active">
<a href="#info" data-toggle="tab"> <a href="#info" data-toggle="tab">
...@@ -30,57 +31,60 @@ use trntv\filekit\widget\Upload; ...@@ -30,57 +31,60 @@ use trntv\filekit\widget\Upload;
<div class="page-header"> <div class="page-header">
<h3>Info</h3> <h3>Info</h3>
</div> </div>
<div class="row">
<div class="col-md-6">
<?php echo $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
</div>
</div>
<div class="row">
<div class="col-md-6">
<?php echo $form->field($model, 'slug')->textInput(['maxlength' => true]) ?>
</div>
</div>
<div class="row">
<div class="col-md-6">
<?php echo $form->field($model, 'description')->textarea(['rows' => '7']) ?>
</div> <div class="row">
</div> <div class="col-md-6">
<div class="row"> <?php echo $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
<div class="col-md-6">
<?= $form->field($model, 'image')->widget(
Upload::className(),
[
'url' => ['/file-storage/upload'],
])->label('Image');
?>
</div>
</div>
<div class="row"> </div>
<div class="col-md-6"> </div>
<?= $form->field($model, 'status')->dropDownList($model::statuses(), ['prompt' => '']) ?> <div class="row">
</div> <div class="col-md-6">
</div>
<div class="form-group"> <?php echo $form->field($model, 'slug')->textInput(['maxlength' => true]) ?>
<?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>
</div>
<div class="row">
<div class="col-md-6">
<?php echo $form->field($model, 'description')->textarea(['rows' => '7']) ?>
</div>
</div>
<div class="row">
<div class="col-md-6">
<?= $form->field($model, 'image')->widget(
Upload::className(),
[
'url' => ['/file-storage/upload'],
])->label('Image');
?>
</div>
</div>
<div class="row">
<div class="col-md-6">
<?= $form->field($model, 'status')->dropDownList($model::statuses(), ['prompt' => '']) ?>
</div>
</div>
<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']) ?>
</div> </div>
</div>
<div class="tab-pane fade in" id="files"> <div class="tab-pane fade in" id="files">
<div class="page-header"> <div class="page-header">
<h3>Files</h3> <h3>Files</h3>
</div> </div>
</div> </div>
</div>
<?php ActiveForm::end(); ?> <?php ActiveForm::end(); ?>
</div> </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