Пример #1
0
 public function init()
 {
     $this->name = \skeeks\cms\shop\Module::t('app', 'List of taxes');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopTax::className();
     parent::init();
 }
Пример #2
0
 public function init()
 {
     $this->name = \Yii::t('skeeks/shop/app', 'List of taxes');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopTax::className();
     parent::init();
 }
Пример #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTax()
 {
     return $this->hasOne(ShopTax::className(), ['id' => 'tax_id']);
 }
Пример #4
0
 */
use yii\helpers\Html;
use skeeks\cms\modules\admin\widgets\form\ActiveFormUseTab as ActiveForm;
/* @var $this yii\web\View */
?>

<?php 
$form = ActiveForm::begin();
?>

<?php 
echo $form->fieldSet(\skeeks\cms\shop\Module::t('app', 'Main'));
?>

    <?php 
echo $form->fieldSelect($model, 'tax_id', \yii\helpers\ArrayHelper::map(\skeeks\cms\shop\models\ShopTax::find()->all(), 'id', 'name'));
?>

    <?php 
echo $form->fieldSelect($model, 'person_type_id', \yii\helpers\ArrayHelper::map(\skeeks\cms\shop\models\ShopPersonType::find()->all(), 'id', 'name'));
?>


    <?php 
echo $form->field($model, 'value')->textInput();
?>
    <?php 
echo $form->fieldRadioListBoolean($model, 'active');
?>
    <?php 
echo $form->fieldRadioListBoolean($model, 'is_in_price');