/
var
/
www
/
vhosts
/
nabawater
/
backend
/
views
/
tax
/
/var/www/vhosts/nabawater/backend/views/tax
mkdir
upload
Name
Size
Mode
Actions
create.php
565
0644
edit
dl
rm
index.php
4713
0644
edit
dl
rm
update.php
547
0644
edit
dl
rm
_form.php
1498
0644
edit
dl
rm
Edit:
/var/www/vhosts/nabawater/backend/views/tax/_form.php
(1498B)
<?php use backend\components\CActiveForm; use yii\helpers\Html; /* @var $this \yii\web\View */ /* @var $model \backend\models\Tax */ /* @var $modelLang \backend\models\TaxLang */ /* @var $modelCountry \backend\models\Country */ $form = CActiveForm::begin()->setModel($model); ?> <div class="card-body"> <h4 class="card-title"><?= $this->title; ?></h4> <hr> <div class="row p-lg-2"> <div class="col-md-6"> <?= $form->field($modelLang, 'tax_name')->textInput(); ?> </div> <div class="col-md-6"> <?= $form->field($model, 'value')->textInput(); ?> </div> </div> <div class="row p-lg-2"> <div class="col-md-6"> <?= $form->field($model, 'country_id')->dropDownList($modelCountry->getCountryData(), ['class' => 'select2 form-control', 'prompt' => 'Select an Option']); ?> </div> <div class ="col-md-6"> <?= $form->field($model, 'status')->radioList([$model::ACTIVE => 'Active', $model::INACTIVE => 'Inactive']); ?> </div> </div> <div class= "col-md-12 text-center"> <?= Html::submitButton($model->getIsNewRecord() ? yii::t('backend','Create') : yii::t('backend','Update'), ['class' => 'btn btn-success']) ?> <?= Html::a(yii::t('backend','Cancel'), ['index'], ['class' => 'btn btn-secondary']); ?> </div> </div> <?php CActiveForm::end(); ?> <script type="text/javascript"> runOnLoad(function() { $('.select2').select2(); }) </script>
Save
cmd:
run