public function init() { $this->name = \skeeks\cms\shop\Module::t('app', 'List of taxes'); $this->modelShowAttribute = "name"; $this->modelClassName = ShopTax::className(); parent::init(); }
public function init() { $this->name = \Yii::t('skeeks/shop/app', 'List of taxes'); $this->modelShowAttribute = "name"; $this->modelClassName = ShopTax::className(); parent::init(); }
/** * @return \yii\db\ActiveQuery */ public function getTax() { return $this->hasOne(ShopTax::className(), ['id' => 'tax_id']); }
*/ 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');