} else { ?> <?php echo $form->field($model, 'shop_person_type_id')->label(\skeeks\cms\shop\Module::t('app', 'Type payer'))->widget(\skeeks\cms\widgets\formInputs\EditedSelect::className(), ['items' => \yii\helpers\ArrayHelper::map(\skeeks\cms\models\CmsTreeType::find()->active()->all(), "id", "name"), 'controllerRoute' => 'shop/admin-shop-person-type']); ?> <?php } ?> <?php echo $form->fieldSelect($model, 'component', [\skeeks\cms\shop\Module::t('app', 'Basic types') => \Yii::$app->cms->basePropertyTypes(), \skeeks\cms\shop\Module::t('app', 'Custom types') => \Yii::$app->cms->userPropertyTypes()])->label(\skeeks\cms\shop\Module::t('app', 'Type of property')); ?> <?php echo $form->field($model, 'component_settings')->label(false)->widget(\skeeks\cms\widgets\formInputs\componentSettings\ComponentSettingsWidget::className(), ['componentSelectId' => Html::getInputId($model, "component")]); ?> <?php echo $form->field($model, 'name')->textInput(['maxlength' => 255]); ?> <?php echo $form->field($model, 'code')->textInput(); ?> <?php echo $form->fieldSetEnd(); ?> <?php echo $form->fieldSet(\skeeks\cms\shop\Module::t('app', 'Additionally'));
<?php echo $form->field($model, 'personTypeIds')->checkboxList(\yii\helpers\ArrayHelper::map(\skeeks\cms\shop\models\ShopPersonType::find()->all(), 'id', 'name')); ?> <?php echo $form->fieldInputInt($model, 'priority'); ?> <div class="row"> <div class="col-md-6"> <?php echo $form->fieldSelect($model, 'component', [\skeeks\cms\shop\Module::t('app', 'Basic payment systems') => [\skeeks\cms\shop\paySystems\RobocassaPaySystem::className() => (new \skeeks\cms\shop\paySystems\RobocassaPaySystem())->descriptor->name]], ['allowDeselect' => true]); ?> </div> <div class="col-md-6"> <label></label> <?php echo $form->field($model, 'componentSettingsString')->label(false)->widget(\skeeks\cms\widgets\formInputs\componentSettings\ComponentSettingsWidget::className(), ['componentSelectId' => Html::getInputId($model, "component"), 'buttonText' => \skeeks\cms\shop\Module::t('app', 'Settings handler'), 'buttonClasses' => "sx-btn-edit btn btn-default"]); ?> </div> </div> <?php echo $form->fieldSetEnd(); ?> <?php echo $form->buttonsCreateOrUpdate($model); ActiveForm::end();