<?php echo $form->field($model, 'errorMonitorEnabled')->widget(SwitchInput::className()); ?> <?php echo $form->field($model, 'emailNotifyEnabled')->widget(SwitchInput::className()); ?> <?php echo $form->field($model, 'devmail'); ?> <?php echo $form->field($model, 'notifyOnlyHttpCodes'); ?> <?php echo $form->field($model, 'numberElementsToStore'); ?> <?php echo $form->field($model, 'immediateNotice')->widget(SwitchInput::className()); ?> <?php echo $form->field($model, 'immediateNoticeLimitPerUrl'); ?> <?php echo $form->field($model, 'httpCodesForImmediateNotify'); ?> <?php BackendWidget::end(); ?> </div> </div>
?> </div> <?php $this->endBlock('submit'); ?> <div class="row"> <div class="col-md-4" id="jstree-more"> <?php $form = ActiveForm::begin(['id' => 'newsletter_config', 'type' => ActiveForm::TYPE_VERTICAL, 'method' => 'get']); ?> <?php BackendWidget::begin(['title' => Yii::t('app', 'Newsletter config'), 'icon' => 'cogs', 'footer' => $this->blocks['submit']]); ?> <?php echo $form->field($model, 'isActive')->textInput()->widget(\kartik\widgets\SwitchInput::className()); ?> <?php BackendWidget::end(); ?> <?php ActiveForm::end(); ?> </div> </div>
<?php echo $form->field($model, 'analytics[ecGoogle][currency]')->dropDownList($currencies)->label(Yii::t('app', 'Currency')); ?> </div> </div> </div> <div class="col-md-6"> <div class="panel panel-info"> <div class="panel-heading"> <?php echo Yii::t('app', 'Yandex ecommerce'); ?> </div> <div class="panel-body"> <?php echo $form->field($model, 'analytics[ecYandex][active]')->widget(SwitchInput::className())->label(Yii::t('app', 'Active')); ?> <?php echo $form->field($model, 'analytics[ecYandex][currency]')->dropDownList($currencies)->label(Yii::t('app', 'Currency')); ?> </div> </div> </div> <?php BackendWidget::end(); ?> </div> <div class="col-md-6 col-sm-12"> <?php BackendWidget::begin(['title' => Yii::t('app', 'Meta cache'), 'options' => ['class' => 'visible-header']]); ?>
?> <?php echo $form->field($model, 'allDay')->widget(\kartik\widgets\SwitchInput::className(), ['pluginOptions' => ['onText' => '是', 'offText' => '否', 'onColor' => 'success', 'offColor' => 'danger']]); ?> <?php echo $form->field($model, 'editable')->widget(\kartik\widgets\SwitchInput::className(), ['pluginOptions' => ['onText' => '是', 'offText' => '否', 'onColor' => 'success', 'offColor' => 'danger']]); ?> <?php echo $form->field($model, 'startEditable')->widget(\kartik\widgets\SwitchInput::className(), ['pluginOptions' => ['onText' => '是', 'offText' => '否', 'onColor' => 'success', 'offColor' => 'danger']]); ?> <?php echo $form->field($model, 'durationEditable')->widget(\kartik\widgets\SwitchInput::className(), ['pluginOptions' => ['onText' => '是', 'offText' => '否', 'onColor' => 'success', 'offColor' => 'danger']]); ?> <?php if (!Yii::$app->request->isAjax) { ?> <div class="form-group"> <?php echo Html::submitButton('保存', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php } ?>
?> <?php $form = ActiveForm::begin(['id' => 'formDefault', 'options' => ['enctype' => 'multipart/form-data']]); echo Html::hiddenInput('save_type', 'save'); echo $form->field($model, 'category_id')->widget(\app\components\FieldCategory::className()); echo $form->field($model, 'title')->textInput(['maxlength' => 255]); echo $form->field($model, 'content')->widget(letyii\tinymce\Tinymce::className(), ['options' => ['id' => 'testid', 'class' => 'abc'], 'configs' => ['selector' => 'textarea#testid', 'link_list' => [['title' => 'My page 1', 'value' => 'http://www.tinymce.com'], ['title' => 'My page 2', 'value' => 'http://www.tinymce.com']]]]); echo FieldRange::widget(['form' => $form, 'model' => $model, 'useAddons' => false, 'label' => 'Time range', 'attribute1' => 'from_time', 'attribute2' => 'to_time', 'type' => FieldRange::INPUT_DATETIME]); //echo $form->field($model, 'from_time')->widget(DateTimePicker::className([ // 'type' => DateTimePicker::TYPE_INPUT, // 'pluginOptions' => [ // 'autoclose'=>true, // 'format' => 'dd-mm-yyyy hh:ii' // ] //])); echo $form->field($model, 'promotion')->widget(SwitchInput::className(['type' => SwitchInput::RADIO])); echo $form->field($model, 'status')->widget(SwitchInput::className(['type' => SwitchInput::RADIO])); $imageConfig = ['options' => ['accept' => 'uploads/*'], 'pluginOptions' => ['previewFileType' => 'image', 'showCaption' => FALSE, 'showRemove' => FALSE, 'showUpload' => FALSE, 'browseClass' => 'btn btn-primary btn-block', 'browseIcon' => '<i class="glyphicon glyphicon-camera"></i> ', 'browseLabel' => 'Select Photo']]; if (!empty($model->image)) { $imageConfig['pluginOptions']['initialPreview'] = Html::img(LetHelper::getFileUploaded($model->image), ['class' => 'file-preview-image']); } echo $form->field($model, 'image')->widget(FileInput::classname(), $imageConfig); echo $form->field($model, 'author')->textInput(['maxlength' => 255]); echo $form->field($model, 'source')->textInput(['maxlength' => 255]); echo $form->field($model, 'seo_url')->textInput(['maxlength' => 255]); echo $form->field($model, 'intro')->textInput(['maxlength' => 500]); echo $form->field($model, 'tags')->textInput(['maxlength' => 500]); echo $form->field($model, 'seo_title')->textInput(['maxlength' => 70]); echo $form->field($model, 'seo_desc')->textInput(['maxlength' => 160]); ActiveForm::end();
?> <?php echo $form->field($model, 'allowToAddSameProduct')->widget(SwitchInput::className()); ?> <?php echo $form->field($model, 'countUniqueProductsOnly')->widget(SwitchInput::className()); ?> <?php echo $form->field($model, 'countChildrenProducts')->widget(SwitchInput::className()); ?> <?php echo $form->field($model, 'showDeletedOrders')->widget(SwitchInput::className()); ?> <?php echo $form->field($model, 'defaultMeasureId')->dropDownList(Helper::getModelMap(\app\modules\shop\models\Measure::className(), 'id', 'name')); ?> <?php echo $form->field($model, 'defaultOrderStageFilterBackend')->dropDownList([0 => ''] + Helper::getModelMap(\app\modules\shop\models\OrderStage::className(), 'id', 'name_short')); ?> <?php BackendWidget::end(); ?> </div> <?php
<br> <?php echo $createButton; ?> <h3 class="header text-left">FILTER USING THE FOLLOWING</h3> <div id="filters"> <?php $form = ActiveForm::begin(['id' => 'filter', 'method' => 'get', 'type' => ActiveForm::TYPE_HORIZONTAL, 'action' => \Yii::$app->urlManager->createUrl(['/search/filter', '__format' => 'json', '_type' => $model->isWhat()]), 'options' => ['class' => 'form-horizontal', "role" => "filter", 'data-id' => $isWhat], 'fieldConfig' => ['inputOptions' => ['class' => 'form-control'], 'template' => '{label}<div class="col-lg-9 col-md-9">{input}</div><div class="col-lg-12">{error}</div>', 'labelOptions' => ['class' => 'col-lg-3 col-md-3 control-label']]]); ?> <?php echo Html::submitButton(Html::tag('span', '', ['class' => 'glyphicon glyphicon-filter']), ['class' => 'btn btn-primary btn-lg', "title" => "Run this filer"]); ?> <br><br> <?php echo $form->field($model, 'filter[exclusive]', ['options' => ['data-toggle' => 'tooltip', 'title' => "When set to Yes everything set below will be used to find results. Otherwise the search will find anything that matches at least one of the criteria you set."]])->widget(\kartik\widgets\SwitchInput::className(), ['pluginOptions' => ['size' => 'small', 'onText' => 'Yes', 'offText' => 'No']])->label("Match All"); ?> <?php echo $form->field($model, 'q')->textInput()->label("Search"); ?> <?php echo $form->field($model, 'type_id')->widget(Select2::className(), ['options' => ['multiple' => true, 'placeholder' => 'Select types...'], 'data' => $model->primaryModel->getCategoryList($model->primaryModel->isWhat() . '-categories')])->label("Type"); ?> <?php echo $form->field($model, 'request_for_id')->widget(Select2::className(), ['options' => ['multiple' => true, 'placeholder' => 'Select for...'], 'data' => $model->primaryModel->getCategoryList($model->primaryModel->isWhat() . '-for')])->label("For"); ?> <?php
</div> <div class="col-md-6 col-sm-12"> <h2><?php echo Yii::t('app', 'Add new component'); ?> </h2> <?php foreach ($model['defaultComponents'] as $componentName => $componentConf) { BackendWidget::begin(['id' => $componentName, 'title' => Yii::t('app', $componentName), 'options' => ['class' => 'visible-header']]); $necessaryContent = $form->field($model, "defaultComponents[{$componentName}][name]")->label('name'); foreach ($componentConf['necessary'] as $necessaryConfName => $necessaryConfVal) { $content = $form->field($model, "defaultComponents[{$componentName}][necessary][{$necessaryConfName}]")->label($necessaryConfName); if (is_bool($necessaryConfVal) === true || $necessaryConfName === 'active') { $content = $content->widget(\kartik\widgets\SwitchInput::className()); } $necessaryContent .= $content; } $unnecessaryContent = ''; foreach ($componentConf['unnecessary'] as $unnecessaryConfName => $unnecessaryConfVal) { $unnecessaryContent .= $form->field($model, "defaultComponents[{$componentName}][unnecessary][{$unnecessaryConfName}]")->label($unnecessaryConfName); } echo Tabs::widget(['items' => [['label' => Yii::t('app', 'necessary'), 'content' => $necessaryContent], ['label' => Yii::t('app', 'unnecessary'), 'content' => $unnecessaryContent]]]); BackendWidget::end(); } ?> </div> </div>
<div> <div class="col-md-6 col-sm-12"> <?php BackendWidget::begin(['title' => Yii::t('app', 'Main settings'), 'options' => ['class' => 'visible-header']]); ?> <?php echo $form->field($model, 'mainPage'); ?> <?php echo $form->field($model, 'include'); ?> <?php echo $form->field($model, 'redirectWWW')->dropDownList(SeoModule::getRedirectTypes()); ?> <?php echo $form->field($model, 'redirectTrailingSlash')->widget(SwitchInput::className()); ?> <?php BackendWidget::end(); ?> </div> <div class="col-md-6 col-sm-12"> <?php BackendWidget::begin(['title' => Yii::t('app', 'Meta cache'), 'options' => ['class' => 'visible-header']]); ?> <?php echo $form->field($model, 'cacheConfig[metaCache][name]')->label(Yii::t('app', 'Name')); ?> <?php echo $form->field($model, 'cacheConfig[metaCache][expire]')->label(Yii::t('app', 'Duration')); ?>
echo $form->field($model, 'params')->widget(\devgroup\jsoneditor\Jsoneditor::className(), ['editorOptions' => ['modes' => ['code', 'tree'], 'mode' => 'tree', 'editable' => new \yii\web\JsExpression('function(node) { return { field : false, value : true }; } ')]]); ?> <?php echo $form->field($model, 'logo')->textInput(['maxlength' => 255]); ?> <?php echo $form->field($model, 'commission')->textInput(); ?> <?php echo $form->field($model, 'active')->widget(\kartik\widgets\SwitchInput::className()); ?> <?php echo $form->field($model, 'payment_available')->widget(\kartik\widgets\SwitchInput::className()); ?> <?php echo $form->field($model, 'sort')->textInput(); ?> <?php BackendWidget::end(); ?> <?php ActiveForm::end(); ?> </div>
?> <?php echo $form->field($model, 'showDeletedOrders')->widget(SwitchInput::className()); ?> <?php echo $form->field($model, 'defaultMeasureId')->dropDownList(Helper::getModelMap(\app\modules\shop\models\Measure::className(), 'id', 'name')); ?> <?php echo $form->field($model, 'defaultOrderStageFilterBackend')->dropDownList([0 => ''] + Helper::getModelMap(\app\modules\shop\models\OrderStage::className(), 'id', 'name_short')); ?> <?php echo $form->field($model, 'useCeilQuantity')->widget(SwitchInput::className()); ?> <?php BackendWidget::end(); ?> </div> <?php /** * @var bool Allow to add same product in the order */ $allowToAddSameProduct = 0; /** * @var bool Count only unique products in the order */ $countUniqueProductsOnly = 1;
<?php echo $form->field($model, 'sort_order'); ?> <?php BackendWidget::end(); ?> </div> <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6"> <?php BackendWidget::begin(['icon' => 'gear', 'title' => Yii::t('app', 'Currency formatting'), 'footer' => Html::a(Icon::show('arrow-circle-left') . Yii::t('app', 'Back'), Yii::$app->request->get('returnUrl', ['/backend/currencies/index', 'id' => $model->id]), ['class' => 'btn btn-danger']) . ' ' . ($model->isNewRecord ? Html::submitButton(Icon::show('save') . Yii::t('app', 'Save & Go next'), ['class' => 'btn btn-success', 'name' => 'action', 'value' => 'next']) : '') . ' ' . Html::submitButton(Icon::show('save') . Yii::t('app', 'Save & Go back'), ['class' => 'btn btn-warning', 'name' => 'action', 'value' => 'back']) . ' ' . Html::submitButton(Icon::show('save') . Yii::t('app', 'Save'), ['class' => 'btn btn-primary', 'name' => 'action', 'value' => 'save'])]); echo $form->field($model, 'intl_formatting')->textInput()->widget(\kartik\widgets\SwitchInput::className()); echo $form->field($model, 'min_fraction_digits'); echo $form->field($model, 'max_fraction_digits'); echo $form->field($model, 'dec_point'); echo $form->field($model, 'thousands_sep')->dropDownList(['' => 'Don\'t separate', ' ' => 'Space', '.' => 'Dot', ',' => 'Dash']); echo $form->field($model, 'format_string'); BackendWidget::end(); ?> </div> <?php ActiveForm::end(); ?> <div class="clearfix"></div>
ActiveForm::end(); ?> </div> </div> <div class="row"> <div class="col-md-4"> <?php $form = ActiveForm::begin(['id' => 'error_monitor_immediate_notify_config', 'type' => ActiveForm::TYPE_VERTICAL, 'method' => 'get']); ?> <?php BackendWidget::begin(['title' => Yii::t('app', 'immediate notify config'), 'icon' => 'cogs', 'footer' => $this->blocks['submit']]); ?> <?php echo $form->field($model, 'immediateNotice')->textInput()->widget(\kartik\widgets\SwitchInput::className()); ?> <?php echo $form->field($model, 'immediateNoticeLimitPerUrl')->textInput(); ?> <?php echo $form->field($model, 'httpCodesForImmediateNotify')->textInput(); ?> <?php BackendWidget::end(); ?> <?php ActiveForm::end(); ?> </div>
?> <?php echo $form->field($model, 'source_type')->dropDownList(Scorecard::getConstants('SCORE_'))->hint(Yii::t('igolf', 'Source column for score')); ?> <?php echo $form->field($model, 'source_direction')->dropDownList(Scorecard::getConstants('DIRECTION_'))->hint(Yii::t('igolf', 'Source column for score ordering. ASC is smallest wins to largest looses. DESC is opposite.')); ?> <?php echo $form->field($model, 'destination_type')->dropDownList(Scorecard::getConstants('SCORE_'))->hint(Yii::t('igolf', 'Destination column for result.')); ?> <?php echo $form->field($model, 'handicap')->widget(SwitchInput::className(), ['pluginOptions' => ['onText' => Yii::t('igolf', ' Use Handicap '), 'offText' => Yii::t('igolf', 'Do Not Use Handicap')]]); ?> <?php echo $form->field($model, 'team')->dropDownList(Rule::getTeamList())->hint(Yii::t('igolf', 'Camp size')); ?> <?php echo $form->field($model, 'classname')->dropDownList(Rule::getList())->hint(Yii::t('igolf', 'Rule to apply')); ?> <?php echo $form->field($model, 'parameters')->textInput(['maxlength' => 255]); ?> <div class="form-group">
<?php echo $form->field($model, 'alias')->textInput(['maxlength' => true]); ?> </div> <div class="col-md-4"> <?php echo $form->field($model, 'sort')->textInput(); ?> </div> </div> <div class="row"> <div class="col-md-6"> <?php use kartik\widgets\SwitchInput; echo $form->field($model, 'active')->widget(SwitchInput::className(), ['type' => SwitchInput::CHECKBOX, 'inlineLabel' => true, 'pluginOptions' => ['size' => 'large', 'labelText' => '<i class="glyphicon glyphicon-gift"></i>', 'onText' => Yii::t('app', 'Активен'), 'offText' => Yii::t('app', 'Неактивен')]]); ?> </div> <div class="col-md-6"> <h1></h1> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-lg btn-primary']); ?> </div> </div> </div> </div> <div class="col-md-5"> </div>