use kartik\helpers\Html; use yii\helpers\Json; foreach ($items as $k => $v) { $items[$k]['values'] = ['0' => Yii::t('app', 'Choose')] + $items[$k]['values']; } ?> <div id="product-options-widget widget-w0"> <form id="options-widget"> <?php foreach ($items as $key => $item) { ?> <div id="property-<?php echo $key; ?> " class=""> <label><?php echo $item['name']; ?> </label> <?php echo Html::dropDownList($key, '', $item['values']); ?> </div> <?php } ?> </form> </div> <?php $this->registerJs("\n var productOptions = " . Json::encode($optionsJson) . ";\n var productOptionsDeleted = [];\n\n \$('#options-widget select').change(function() {\n var keyProperty = \$(this).attr('name');\n var valProperty = \$(this).val();\n var keysDelete = [];\n productOptionsDeleted = productOptions.slice(0);\n\n \$('#options-widget select').each(function(i, el) {\n thisVal = \$(el).val();\n thisKey = \$(el).attr('name');\n \$.each(productOptionsDeleted, function(k, v) {\n if (v.values[thisKey] != thisVal && thisVal != 0) {\n keysDelete.push(k);\n }\n });\n });\n \$('#options-widget select option[value!=0]').attr('disabled', '');\n keysDelete.forEach(function(kDel) {\n if (productOptionsDeleted[kDel]) {\n delete(productOptionsDeleted[kDel]);\n }\n });\n productOptionsDeleted.forEach(function(e) {\n \$.each(e.values, function(key, value) {\n \$('#options-widget select option[value=' + value + ']').removeAttr('disabled');\n });\n });\n });\n\n \$('#options-widget select').mousedown( function() {\n if (\$(this).val() != 0) {\n \$(this).val(0);\n \$(this).trigger('change');\n }\n });\n ", $this::POS_END);
?> </ul> <?php if ($partsRow['multiple_widgets'] === '1' || $matchedCount === 0) { $widgets = \yii\helpers\ArrayHelper::map(array_filter($availableWidgets, function (\app\extensions\DefaultTheme\models\ThemeWidgets $widget) use($partsRow) { $applying = $widget->applying; foreach ($applying as $applyTo) { if ($applyTo->part_id === intval($partsRow['id'])) { return true; } } return false; }), 'id', 'name'); ?> <?php echo Html::dropDownList('add-widget', 0, [0 => Yii::t('app', 'Add widget')] + $widgets, ['class' => 'add-widget', 'data-part-id' => $partsRow['id']]); ?> <?php } ?> </div> </div> <?php } ?> <?php BackendWidget::end(); ?> </article>
<?php use kartik\helpers\Html; use yii\grid\GridView; #use backend\models\Zstitel; use yii\widgets\Pjax; use app\components\XActionColumn; $zs = []; #new Zstitel; Pjax::begin(['id' => 'docpicker-pjax']); echo Html::panel(['heading' => 'Summary', 'headingTitle' => true, 'body' => GridView::widget(['dataProvider' => $model, 'filterModel' => $searchModel, 'tableOptions' => ['class' => 'table table-condensed table-bordered table-hover'], 'summary' => "<div class='summary'>{begin}-{end} von {totalCount} Dokumenten gefiltert</div>", 'pager' => ['options' => ['class' => 'pagination pagination-sm']], 'columns' => ['cb' => ['class' => 'yii\\grid\\CheckboxColumn', 'options' => ['style' => 'width:20px;'], 'multiple' => false], 'eye' => ['class' => 'app\\components\\XActionColumn', 'options' => ['style' => 'width:20px'], 'buttonOptions' => ['style' => 'color:green;'], 'template' => '{view}'], 'f' => ['label' => 'Dateiname', 'attribute' => 'filename', 'value' => 'filenamePlain', 'enableSorting' => true, 'filter' => Html::textInput('filename', Yii::$app->request->get('filename'), ['class' => 'form-control input-sm', 'placeholder' => '*Filter']), 'options' => ['style' => 'width:240px;']], 'titel' => ['label' => 'Titel', 'attribute' => 'metadata.TITEL', 'filter' => Html::textInput('titel', Yii::$app->request->get('titel'), ['class' => 'form-control input-sm', 'placeholder' => '*Filter']), 'enableSorting' => true], 'groups' => ['label' => 'Gruppe/n', 'attribute' => 'groupstr', 'filter' => Html::dropDownList('group', Yii::$app->request->get('group'), app\models\Documents::getAllgroups(), ['class' => 'form-control input-sm', 'prompt' => '- Filter -']), 'enableSorting' => true, 'options' => ['style' => 'width:110px;']], 'status' => ['label' => 'akt. Status', 'attribute' => 'onlineStatus', 'value' => 'onlineStatus_str', 'options' => ['style' => 'width:80px;'], 'filter' => Html::dropDownList('onlineStatus', Yii::$app->request->get('onlineStatus'), ['true' => 'Online', 'false' => 'Offline'], ['class' => 'form-control input-sm', 'prompt' => '- Filter -']), 'contentOptions' => ['style' => 'text-align:center;'], 'enableSorting' => true, 'format' => 'raw'], ['class' => 'yii\\grid\\ActionColumn', 'content' => 'foo', 'template' => '{edit} {delete}', 'filterOptions' => ['style' => 'text-align:right;'], 'contentOptions' => ['style' => 'text-align:right;width:40px;'], 'buttons' => ['edit' => function ($url, $model, $key) { return Html::a("<i class='fa fa-pencil'></i>", $url, ['data-class' => 'edit']); }]]]]), 'footer' => '<small><i>* mit Tabulator/Enter Taste Filter bestätigen</i></small>'], 'default', ['style' => 'font-size:12px;', 'id' => 'docpicker']); Pjax::end(); // // Verkleinern der Filterfelder und ausblenden der Summary --------------------- $css = <<<CSS #docpicker .input-sm{ \theight: 23px;\t } #docpicker select.input-sm{ \theight: 23px; \tpadding: 3px 3px;\t } .summary{ \tdisplay:none;\t } #docpicker table thead tr, #docpicker table thead th{ \tborder:0px; }
<div class="panel panel-default"> <div class="panel-body"> <?php echo '<h5>Firstly, you have to put your template folder into @app/template. ' . Html::bsLabel('Required', Html::TYPE_DANGER) . '</h5>'; ?> </div> </div> </div> <div class="col-md-6 text-center"> <div class="panel panel-default"> <div class="panel-body"> <?php echo Html::label('Which file will use for layout?:'); ?> <?php echo Html::dropDownList('file', null, $fileList, ['class' => 'form-control']); ?> </div> <div class="panel-footer"><?php echo Html::button('Next', ['class' => 'btn btn-success NextButton']); ?> </div> </div> </div> </div> <?php echo Html::input('hidden', 'headerselector', $headerSelector); ?> <?php echo Html::input('hidden', 'contentselector', $contentSelector); ?>
<tr> <td> <?php echo Html::encode($widget_applying->part->name); ?> </td> <td> <?php echo Html::a(Icon::show('trash-o') . ' ' . Yii::t('app', 'Remove'), ['remove-applying', 'part_id' => $widget_applying->part->id, 'id' => $model->id], ['class' => 'btn btn-xs btn-danger']); ?> </td> </tr> <?php } ?> </tbody> </table> </fieldset> <?php echo Html::dropDownList('new-part', null, [0 => Yii::t('app', 'Select theme part to add')] + \yii\helpers\ArrayHelper::map(\app\extensions\DefaultTheme\models\ThemeParts::getAllParts(), 'id', 'name'), ['class' => 'new-part-select']); ?> <?php BackendWidget::end(); ?> </article> </div> </section> <?php ActiveForm::end();
?> </div> <?php \yii\bootstrap\Modal::end(); ?> <?php \yii\bootstrap\Modal::begin(['id' => 'delete-category-confirmation', 'footer' => Html::button(Yii::t('app', 'Delete'), ['class' => 'btn btn-primary', 'data-action' => 'confirm', 'data-dismiss' => 'modal']) . Html::button(Yii::t('app', 'Cancel'), ['class' => 'btn btn-default', 'data-dismiss' => 'modal']), 'header' => Yii::t('app', 'Are you sure you want to delete a selected category?')]); ?> <div class="control-group"> <label class="control-label" for="delete-action"><?php echo Yii::t('app', 'Product deleting rules'); ?> </label> <div> <?php echo Html::dropDownList('delete_mode', \app\modules\shop\models\Category::DELETE_MODE_SINGLE_CATEGORY, \app\modules\shop\models\Category::deleteModesList(), ['class' => 'form-control', 'id' => 'delete-mode']); ?> </div> </div> <?php \yii\bootstrap\Modal::end(); ?> <div style="z-index: 99999" class="modal fade" id="newStaticValue" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> </div> </div> </div> <?php $this->endBody(); ?>
" class="<?php echo isset($field['required']) && $field['required'] ? 'required' : ''; ?> "> <td> <?php echo $field['label']; ?> <?php echo isset($field['required']) && $field['required'] ? '<span class="red">*</span>' : ''; ?> </td> <td> <?php echo Html::dropDownList('data[' . $field['key'] . '][type]', null, \yii\helpers\ArrayHelper::merge(['' => Yii::t('app', 'Select ...')], $types), ['class' => 'form-control select-list', 'data-key' => $field['key']]); ?> </td> <td> </td> </tr> <?php } ?> </table> <?php $this->beginBlock('dataRelationsJs'); ?> comparisonData.options = <?php
echo Html::label('Footer Tag Selector:'); ?> <?php echo Html::input('text', 'footerselector', 'footer.footer', ['class' => 'form-control']); ?> </div> </div> </div> <div class="col-md-6 text-center"> <div class="panel panel-default"> <div class="panel-body"> <?php echo Html::label('Template:'); ?> <?php echo Html::dropDownList('folder', null, $themeList, ['class' => 'form-control']); ?> <hr /> <div class="checkbox text-left"> <label> <input type="checkbox" value="1" checked="checked" name="createAssets"/> Assets </label> </div><hr /> <div class="checkbox text-left"> <label> <input type="checkbox" value="1" checked="checked" name="createLayouts"/> Layouts </label> </div> </div> <div class="panel-footer"><?php echo Html::submitButton('Next', ['class' => 'btn btn-success']);
<?php echo Html::label('Model Name:'); ?> <?php AutoComplete::widget(['name' => 'modelNameAutoComplete', 'id' => 'modelNameAutoComplete', 'clientOptions' => ['source' => $generalVariable['modelListName']], 'options' => ['class' => 'form-control']]); ?> <?php echo Html::dropDownList('modelNameAutoComplete', null, $generalVariable['modelListName'], ['id' => 'modelNameAutoComplete', 'class' => 'form-control']); ?> </div> <div class="col-md-6"> <?php echo Html::label('Actions:'); ?> <?php echo Html::dropDownList('modelGenerateActionSelect', null, $ActionList, ['id' => 'modelGenerateAction', 'class' => 'form-control']); ?> </div> </div> <hr /> <?php echo Html::button('Add Model', ['class' => 'btn btn-success addModel']); ?> </div> </div> <div class="row"> <div class="col-md-6 text-center"> <div class="panel panel-default"> <div class="panel-body"> <?php echo '<h5>Firstly, you have to put your template folder into @app/template. ' . Html::bsLabel('Required', Html::TYPE_DANGER) . '</h5>';