For example: php echo Collapse::widget([ 'items' => [ equivalent to the above [ 'label' => 'Collapsible Group Item #1', 'content' => 'Anim pariatur cliche...', open its content by default 'contentOptions' => ['class' => 'in'] ], another group item [ 'label' => 'Collapsible Group Item #1', 'content' => 'Anim pariatur cliche...', 'contentOptions' => [...], 'options' => [...], ], if you want to swap out .panel-body with .list-group, you may use the following [ 'label' => 'Collapsible Group Item #1', 'content' => [ 'Anim pariatur cliche...', 'Anim pariatur cliche...' ], 'contentOptions' => [...], 'options' => [...], 'footer' => 'Footer' // the footer label in list-group ], ] ]);
See also: http://getbootstrap.com/javascript/#collapse
Since: 2.0
Author: Antonio Ramirez (amigo.cobos@gmail.com)
Inheritance: extends yii\bootstrap\Widget
    public function testRender()
    {
        Collapse::$counter = 0;
        $output = Collapse::widget(['items' => [['label' => 'Collapsible Group Item #1', 'content' => 'test content1'], ['label' => '<h1>Collapsible Group Item #2</h1>', 'content' => '<h2>test content2</h2>', 'contentOptions' => ['class' => 'testContentOptions2'], 'options' => ['class' => 'testClass2', 'id' => 'testId2'], 'encode' => true], ['label' => '<h1>Collapsible Group Item #3</h1>', 'content' => '<h2>test content3</h2>', 'contentOptions' => ['class' => 'testContentOptions3'], 'options' => ['class' => 'testClass3', 'id' => 'testId3'], 'encode' => false], ['label' => '<h1>Collapsible Group Item #4</h1>', 'content' => '<h1>test content4</h1>']]]);
        $this->assertEqualsWithoutLE(<<<HTML
<div id="w0" class="panel-group">
<div class="panel panel-default"><div class="panel-heading"><h4 class="panel-title"><a class="collapse-toggle" href="#w0-collapse1" data-toggle="collapse" data-parent="#w0">Collapsible Group Item #1</a>
</h4></div>
<div id="w0-collapse1" class="panel-collapse collapse"><div class="panel-body">test content1</div>
</div></div>
<div id="testId2" class="testClass2 panel panel-default"><div class="panel-heading"><h4 class="panel-title"><a class="collapse-toggle" href="#w0-collapse2" data-toggle="collapse" data-parent="#w0">&lt;h1&gt;Collapsible Group Item #2&lt;/h1&gt;</a>
</h4></div>
<div id="w0-collapse2" class="testContentOptions2 panel-collapse collapse"><div class="panel-body"><h2>test content2</h2></div>
</div></div>
<div id="testId3" class="testClass3 panel panel-default"><div class="panel-heading"><h4 class="panel-title"><a class="collapse-toggle" href="#w0-collapse3" data-toggle="collapse" data-parent="#w0"><h1>Collapsible Group Item #3</h1></a>
</h4></div>
<div id="w0-collapse3" class="testContentOptions3 panel-collapse collapse"><div class="panel-body"><h2>test content3</h2></div>
</div></div>
<div class="panel panel-default"><div class="panel-heading"><h4 class="panel-title"><a class="collapse-toggle" href="#w0-collapse4" data-toggle="collapse" data-parent="#w0">&lt;h1&gt;Collapsible Group Item #4&lt;/h1&gt;</a>
</h4></div>
<div id="w0-collapse4" class="panel-collapse collapse"><div class="panel-body"><h1>test content4</h1></div>
</div></div>
</div>

HTML
, $output);
    }
Esempio n. 2
0
    public static function field()
    {
        return function ($attribute) {
            $collapse = Collapse::className();
            $editor = \devgroup\jsoneditor\Jsoneditor::className();
            return <<<FORMAT
'<div class="field-widget-{$attribute}">'.
{$editor}::widget(
    [
        'editorOptions' => [
            'modes' => ['code', 'form', 'text', 'tree', 'view'], // available modes
            'mode'  => 'tree', // current mode
        ],
        'model'         => \$model,
        'attribute'     => '{$attribute}',
        'options'       => [
            'id'    => 'widget-{$attribute}',
            'class' => 'form-control',
        ],
    ]
).
'</div>'
FORMAT;
        };
    }
Esempio n. 3
0
 public function actionIndex()
 {
     // quick and dirty shift table propigation
     // WiwShift::generateRandomShifts();
     $link = "https://github.com/wheniwork/standards/blob/master/project.md";
     $md = $this->renderPartial('scheduler_md');
     $collapse = \yii\bootstrap\Collapse::widget(['items' => [['label' => 'Challenge Info (click to expand)', 'content' => 'Source: ' . Html::a($link, $link) . $md]]]);
     $requests = WiwApiCall::find()->all();
     return $this->render('scheduler', ['collapse' => $collapse, 'requests' => $requests]);
 }
Esempio n. 4
0
 public function getChild($parent)
 {
     $a = '';
     if ($parent->childs > 0) {
         foreach ($this->aTreelList as $child) {
             if ($child->parent_id == $parent->id) {
                 if ($child->childs > 0) {
                     //                        $a['list'][$child->id] = $this->getChild($child);
                     $a .= $this->getChild($child);
                 } else {
                     //                        $a['list'][] = $child;
                     //                        $a.=$child->tree_name.'<br>';
                     $a .= Html::a($child->tree_name, '/auto/auto/map?modelID=' . $this->sModelID . '&treeID=' . $child->id, ['id' => '_' . $child->id]) . '<br>';
                 }
             }
         }
     }
     return Collapse::widget(['items' => [['label' => $parent->tree_name, 'content' => $a, 'contentOptions' => [], 'options' => []]]]);
 }
Esempio n. 5
0
} else {
    print Html::tag('p', Yii::t('app', 'Click on the titles to expand.'));
    foreach ($params as $group => $params) {
        $options = [];
        /*if ($isFirst) {
              $options['class'] = 'in';
              $isFirst = false;
          }*/
        $itemBody = '';
        foreach ($params as $fieldName => $fieldParams) {
            $itemBody .= ConfigurationUtils::renderField($group, $fieldName, $fieldParams);
        }
        $item = ['label' => Inflector::camel2words($group), 'content' => $itemBody, 'contentOptions' => $options];
        $items[] = $item;
    }
    echo Collapse::widget(['items' => $items]);
    ?>

    <div class="form-group">
        <div class="col-lg-offset-2 col-lg-10">
            <?php 
    echo Html::submitButton(Yii::t('app', 'Save settings'), ['class' => 'btn btn-primary']);
    ?>
        </div>
    </div>
    <?php 
    Html::endForm();
    ?>
    <?php 
    $js = <<<EOF
Esempio n. 6
0
?>
			<?php 
use hscstudio\adminlte\assets\AdminLTEAsset;
$AdminLTEAsset = AdminLTEAsset::register($this);
echo Carousel::widget(['options' => ['class' => 'slide'], 'controls' => ['<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>'], 'items' => ['<img src="' . $AdminLTEAsset->baseUrl . '/img/photo1.png"/>', ['content' => '<img src="' . $AdminLTEAsset->baseUrl . '/img/photo2.png"/>'], ['content' => '<img src="' . $AdminLTEAsset->baseUrl . '/img/photo1.png"/>', 'caption' => '<h4>This is title</h4><p>This is the caption text</p>']]]);
?>
			<?php 
highlight_string("\n<?php\nuse yii\\bootstrap\\Carousel;\necho Carousel::widget([\n\t'options' => [\n\t\t'class' => 'slide'\n\t],\n\t'controls' => [\n\t\t'<span class=\"fa fa-angle-left\"></span>',\n\t\t'<span class=\"fa fa-angle-right\"></span>',\n\t],\n\t'items' => [\n\t\t// the item contains only the image\n\t\t'<img src=\"img/photo1.png\"/>',\n\t\t// equivalent to the above\n\t\t[\n\t\t\t'content' => '<img src=\"img/photo2.png\"/>',\n\t\t],\n\t\t// the item contains both the image and the caption\n\t\t[\n\t\t\t'content' => '<img src=\"img/photo1.png\"/>',\n\t\t\t'caption' => '<h4>This is title</h4><p>This is the caption text</p>',\n\t\t\t//'options' => [...],\n\t\t],\n\t],\n]);\n?>\n\t\t\t");
?>
		<?php 
Box::end();
?>
		</div><!-- /.col (LEFT) -->
		<div class="col-md-6">
		<?php 
Box::begin(['header' => 'Yii 2.0 Collapse']);
?>
			<?php 
echo Collapse::widget(['items' => [['label' => 'Collapsible Group Item #1', 'content' => 'Anim pariatur cliche...', 'contentOptions' => ['class' => 'in']], ['label' => 'Collapsible Group Item #1', 'content' => 'Anim pariatur cliche...'], ['label' => 'Collapsible Group Item #1', 'content' => ['Anim pariatur cliche...', 'Anim pariatur cliche...'], 'footer' => 'Footer']]]);
?>
			<?php 
highlight_string("\n<?php\nuse yii\\bootstrap\\Collapse;\necho Collapse::widget([\n\t  'items' => [\n\t\t  // equivalent to the above\n\t\t  [\n\t\t\t  'label' => 'Collapsible Group Item #1',\n\t\t\t  'content' => 'Anim pariatur cliche...',\n\t\t\t  // open its content by default\n\t\t\t  'contentOptions' => ['class' => 'in']\n\t\t  ],\n\t\t  // another group item\n\t\t  [\n\t\t\t  'label' => 'Collapsible Group Item #1',\n\t\t\t  'content' => 'Anim pariatur cliche...',\n\t\t\t  //'contentOptions' => [...],\n\t\t\t  //'options' => [...],\n\t\t  ],\n\t\t  // if you want to swap out .panel-body with .list-group, you may use the following\n\t\t  [\n\t\t\t  'label' => 'Collapsible Group Item #1',\n\t\t\t  'content' => [\n\t\t\t\t  'Anim pariatur cliche...',\n\t\t\t\t  'Anim pariatur cliche...'\n\t\t\t  ],\n\t\t\t  //'contentOptions' => [...],\n\t\t\t  //'options' => [...],\n\t\t\t  'footer' => 'Footer' // the footer label in list-group\n\t\t  ],\n\t  ]\n  ]);\n?>\n\t\t\t");
?>
		<?php 
Box::end();
?>
		</div><!-- /.col (LEFT) -->
	</div>

<?php 
Box::end();
Esempio n. 7
0
<?php

/**
 * Created by PhpStorm.
 * User: ivphpan
 * Date: 16.12.15
 * Time: 11:53
 * @var $this \yii\web\View
 */
use yii\bootstrap\Collapse;
$this->registerCssFile($this->theme->getUrl('assets/css/et-line.css'));
echo Collapse::widget(['items' => [['label' => 'Иконки', 'content' => $this->render('_icon')]]]);
Esempio n. 8
0
                <br/>
                <?php 
if ($model->isCurrentLang()) {
    ?>
                    <?php 
    echo $form->field($model, '[' . $k . ']alias')->textInput(['maxlength' => true]);
    ?>
                <?php 
}
?>
                <?php 
echo $form->field($model, '[' . $k . ']position')->textInput();
?>

                <?php 
echo \yii\bootstrap\Collapse::widget(['items' => [['label' => $model->getAttributeLabel('task'), 'content' => $form->field($model, '[' . $k . ']task')->textarea(['rows' => 3])], ['label' => $model->getAttributeLabel('idea'), 'content' => $form->field($model, '[' . $k . ']idea')->textarea(['rows' => 3])], ['label' => $model->getAttributeLabel('results'), 'content' => $form->field($model, '[' . $k . ']results')->textarea(['rows' => 3])], ['label' => $model->getAttributeLabel('vimeo'), 'content' => $form->field($model, '[' . $k . ']vimeo')->textarea(['rows' => 3])]]]);
?>

            </div>
        </div>

        <?php 
if (!$model->isNewRecord) {
    ?>
        <h2>Исполнители</h2>
        <?php 
    echo \yii\grid\GridView::widget(['dataProvider' => new \yii\data\ActiveDataProvider(['query' => $model->getPerformers(), 'pagination' => false]), 'columns' => ['fullName', 'role', ['class' => \yii\grid\ActionColumn::className(), 'controller' => 'performers', 'header' => Html::a('<i class="glyphicon glyphicon-plus"></i>&nbsp; Добавить', ['performers/create', 'portfolioId' => $model->id, 'lang' => $model->lang]), 'template' => '{update}{delete}']]]);
    ?>

            <h2>Инфографика</h2>
            <?php 
Esempio n. 9
0
 /**
  * @inheritdoc
  */
 public function run()
 {
     return Collapse::widget(['items' => $this->getCollapseArray(), 'options' => $this->options, 'encodeLabels' => false]);
 }
Esempio n. 10
0
		</div>
    </div>
                <?php 
!isset($model->yandex) ?: (print Html::beginTag('div', ['class' => 'panel panel-warning']) . Html::tag('div', Html::tag('h3', "Yandex", ['class' => 'panel-title']), ['class' => 'panel-heading']) . Html::tag('div', Html::encode($model->yandex), ['class' => 'panel-body']) . Html::endTag('div'));
?>
    <div class="panel panel-default">

            <div class="panel-body">
                <?php 
echo $this->render('_form', ['model' => $model]);
?>
            </div>

        </div>
    <div class="panel-body">
        <?php 
echo Collapse::widget(['items' => $items]);
?>
    </div>
    <div class="panel-group ">
        <div class="panel panel-default">
            <div class="panel panel-body">
                <?php 
echo Collapse::widget(['items' => [['label' => 'Comments', 'content' => Yii::$app->runAction('/translator/comments/index')]]]);
?>
                <?php 
echo Yii::$app->runAction('/translator/comments/create');
?>
            </div>
        </div>
Esempio n. 11
0
    /**
     * get the config
     * @param \yii\bootstrap\ActiveForm $form
     * @param array $options
     * @return string
     */
    public function renderForm($form, $options = [])
    {
        $config = $this->getSystemConfig();
        $tabItems = [];
        foreach ($config as $tabKey => $tab) {
            $groupItems = [];
            foreach ($tab['groups'] as $groupKey => $group) {
                $groupContent = '';
                foreach ($group['fields'] as $fieldKey => $field) {
                    $inlineRadioListTemplate = "<label class = \"control-label col-sm-1\">" . $field['label'] . "</label>\n<div class=\"col-sm-11\">{input}\n{hint}\n{error}</div>";
                    $inlineCheckboxListTemplate = "<label class = \"control-label col-sm-1\">" . $field['label'] . "</label>\n<div class=\"col-sm-11\">{input}\n{hint}\n{error}</div>";
                    $options['template'] = "<label class = \"control-label col-sm-1\">" . $field['label'] . "</label>\n<div class=\"col-sm-11\">{input}\n<div style=\"width:60%\">{hint}\n</div>{error}</div>";
                    $fieldOptions = array_merge($options, ['options' => ['class' => 'form-group'], 'inputOptions' => ['name' => 'setting_code[' . $field['setting_code'] . ']']]);
                    /** @var \yii\bootstrap\ActiveField $activeField */
                    $fieldClass = Yii::createObject(SettingFields::className());
                    $fieldModel = $fieldClass::findOne(['setting_code' => $field['setting_code']]);
                    if ($field['inputType'] == 3) {
                        $fieldModel->chosen_value = json_decode($fieldModel->chosen_value, true);
                    }
                    $activeField = $form->field($fieldModel, 'chosen_value', $fieldOptions);
                    switch ($field['inputType']) {
                        case 3:
                            $activeField->inline()->checkboxList($field['value'], ['name' => 'setting_code[' . $field['setting_code'] . ']', 'template' => $inlineCheckboxListTemplate]);
                            break;
                        case 2:
                            $activeField->inline()->radioList($field['value'], ['name' => 'setting_code[' . $field['setting_code'] . ']', 'template' => $inlineRadioListTemplate]);
                            break;
                        case 1:
                            $activeField->textInput();
                            break;
                            //                        case 'select':
                            //                            $activeField->dropDownList($dataList);
                            //                            break;
                            //                        case 'textarea':
                            //                            $activeField->textarea();
                            //                            break;
                            //                        case 'password':
                            //                            $activeField->passwordInput();
                            //                            break;
                    }
                    if (isset($field['hint'])) {
                        $activeField->hint($field['hint']);
                    }
                    $groupContent .= $activeField->render();
                }
                $groupItems[$group['label']] = ['label' => $group['label'], 'content' => $groupContent];
            }
            $tabContent = Collapse::widget(['items' => $groupItems]);
            $tabItems[] = ['label' => $tab['label'], 'content' => $tabContent];
        }
        $js = <<<JS
var modelName = 'SettingModel'
\$(document).on('change', 'select, input[type=checkbox], input[type=radio]', function() {
    var name = \$(this).attr('name')
    var dataKey = name.substring(modelName.length + 1, name.length - 1);
    var dataValue = \$(this).val();
    if (\$('[data-depend-key='+dataKey+']').length) {
        \$('[data-depend-key='+dataKey+']').hide();
    }
    if (\$('[data-depend-key='+dataKey+'][data-depend-value='+dataValue+']').length) {
        \$('[data-depend-key='+dataKey+'][data-depend-value='+dataValue+']').show();
    }
});

\$('[data-depend-key]').each(function() {
    var input = \$(this);
    var valueInput = \$('[name="'+modelName+'['+input.data('depend-key')+']"]');
    if (valueInput.val() == input.data('depend-key')) {
        input.show();
    } else {
        input.hide();
    }
});
JS;
        Yii::$app->view->registerJs($js);
        return Tabs::widget(['items' => $tabItems]);
    }
Esempio n. 12
0
?>
</h1>


<?php 
/**
 * @var $collapse \app\modules\admin\components\widgets\SettingsWidget
 */
?>

<?php 
$form = ActiveForm::begin(['id' => $model->formName()]);
?>

    <?php 
echo \yii\bootstrap\Collapse::widget($collapse);
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

<?php 
ActiveForm::end();
?>

<?php 
$script = <<<JS
Esempio n. 13
0
	<?

echo Collapse::widget([
    'items' => [
        // equivalent to the above
        [
            'label' => 'Collapsible Group Item #1',
            'content' => 'Anim pariatur cliche...',
            // open its content by default
            'contentOptions' => ['class' => 'in']
        ],
        // another group item
        [
            'label' => 'Collapsible Group Item #1',
            'content' => 'Anim pariatur cliche...',
        ],
        // if you want to swap out .panel-body with .list-group, you may use the following
        [
            'label' => 'Collapsible Group Item #1',
            'content' => [
                'Anim pariatur cliche...',
                'Anim pariatur cliche...'
            ],
            'footer' => 'Footer' // the footer label in list-group
        ],
    ]
]);	
	
	?>
</div>
Esempio n. 14
0
<?php

use yii\bootstrap\Collapse;
use yii\grid\GridView;
use yii\widgets\ListView;
\app\modules\tovar\tovarAsset::register($this);
/**
 * Created by PhpStorm.
 * User: marat
 * Date: 08.01.15
 * Time: 17:28
 */
$this->title = $tovarProvider->models[0]['name'];
$category = $tovarProvider->models[0]['tip_id'];
$this->params['breadcrumbs'][] = ['label' => $category, 'url' => ['/tovar/tovar/category', 'tip_id' => $category]];
$this->params['breadcrumbs'][] = $this->title;
echo ListView::widget(['dataProvider' => $tovarProvider, 'layout' => "{items}", 'options' => ['tag' => 'div', 'class' => 'offer-page'], 'itemView' => function ($model) {
    return $this->render('tovar_block_view', ['model' => $model]);
}]);
echo Collapse::widget(['items' => [['label' => 'Спецификация.', 'content' => GridView::widget(['layout' => "{items}", 'dataProvider' => $dataProvider, 'columns' => [['class' => 'yii\\grid\\SerialColumn', 'header' => '№'], ['attribute' => 'title', 'label' => 'Характеристика'], 'value_char']]), 'contentOptions' => ['class' => 'in']]]]);
Esempio n. 15
0
                    </strong>
                </span>

                <div id="likedislikediv">',
                    <?php 
    echo $this->render('_likedislike', array('model' => $model));
    ?>
                </div>
                </p>

            </div>
        </div>
    </div>
        <div class="row" style="width: 87%;margin-left: 6.5%;">
            <?php 
    echo Collapse::widget(['items' => [['label' => 'View Discussions', 'content' => $this->context->getComments($model), 'contentOptions' => ['class' => 'out']]]]);
    ?>
        </div>
        <?php 
}
?>


<?php 
echo LinkPager::widget(['pagination' => $pages]);
//$this->render('_suggestions');
$js = <<<JS
        // get the form id and set the event
        \$('.btn-add-to-wishlist').on('click', function(e) {
            e.preventDefault();
            var id=\$(this).attr('data-id');
Esempio n. 16
0
 * User: marat
 * Date: 26.06.15
 * Time: 16:50
 */
//$model=$dataProvider->query->url_params;
//var_dump($model);die;
?>


<div class="page-scroll col-md-5 col-xs-12">

<?php 
$this->params['breadcrumbs'] = $params['breadcrumbs'];
foreach ($model['models'] as $number => $m) {
    //    var_dump($model);die;
    echo Collapse::widget(['items' => [['label' => $m[0]['number_type'] != 4 ? $number . ' - ' . $m[0]['desc_en'] : $number . ' - ** Std Parts', 'content' => $this->render('parts_group', ['model' => $m]), 'options' => ['class' => "panel-label col-xs-12 row", 'id' => $number]]]]);
    //    :'<div class="panel-group collapse in"><div class="col-xs-12 panel panel-default row"><div class="panel-heading"><h4 class="panel-title">'.Html::a($m[0]['number'].' - ** Std Parts',Url::to(['/finddetails','article'=>$m[0]['number']]),['target'=>'blank']).'</h4></div></div></div>');
}
?>
    </div>
<div class="col-md-7 col-xs-12">
    <div class="page_image">
        <?php 
echo Html::img(\app\modules\catalog\models\ToyotaQuery::getImageUrl() . "/Img/" . $model['params']['catalog'] . "/" . $model['params']['rec_num'] . "/" . $model['params']['pic_code'] . '.png', []);
?>
    </div>
    <?php 
foreach ($model['labels'] as $labels) {
    //    var_dump($m[0]);die;
    foreach ($labels as $m) {
        $label = '<div id="' . $m['number'] . '" data-position="1"  title="' . $m['desc_en'] . '" class="page_label" style="left: ' . $m['x1'] . 'px; top: ' . $m['y1'] . 'px; width: ' . $m['width'] . 'px; height: ' . ($m['height'] < 20 ? '20' : $m['height']) . 'px; ">' . $m['number'] . '</div>';
Esempio n. 17
0
            return '<strong>' . date('d.m.y H:i', $model['date_time_game']) . '</strong>';
        }, 'options' => ['class' => 'col-xs-1'], 'contentOptions' => ['class' => 'reduceDateFont'], 'hAlign' => 'center', 'vAlign' => 'middle'], ['class' => 'kartik\\grid\\ExpandRowColumn', 'value' => function ($model, $key, $index, $column) {
            return extendedGridView::ROW_COLLAPSED;
        }, 'detail' => function ($model, $key, $index, $column) {
            return Yii::$app->controller->renderPartial('_five-last-games', ['details' => $model]);
        }, 'headerOptions' => ['class' => 'kartik-sheet-style'], 'expandOneOnly' => true, 'expandIcon' => "<i class='fa fa-plus-square'></i>", 'collapseIcon' => "<i class='fa fa-minus-square'></i>", 'enableRowClick' => true, 'detailOptions' => ['class' => 'expanded'], 'contentOptions' => ['class' => 'expand-icon']], ['content' => function ($model) use($form) {
            return "<row>" . "<div class = 'text-right col-xs-5'>" . Html::img(Teams::getPath() . '/' . $model['idTeamHome']['idTeam']['team_logo'], ['width' => 30]) . ' ' . Html::a($model['idTeamHome']['idTeam']['team_name'], ['tournaments/games', 'id' => $model['id_team_home']]) . " " . "</div>" . "<div class = 'text-center col-xs-2'>" . "-" . "</div>" . "<div class = 'text-left col-xs-5'>" . " " . Html::a($model['idTeamGuest']['idTeam']['team_name'], ['tournaments/games', 'id' => $model['id_team_guest']]) . ' ' . Html::img(Teams::getPath() . '/' . $model['idTeamGuest']['idTeam']['team_logo'], ['width' => 30]) . "</div>" . "</row>" . "<row>" . "<div class = 'col-xs-12 text-center'>" . Html::input('number', "forecasts[{$model['id_game']}][fscore_home]", isset($model['f_id']) ? $model['fscore_home'] : '', ['class' => 'forecast', 'form' => $form->getID(), 'maxlength' => 2, 'disabled' => $model['date_time_game'] - time() < 60 * 60 ? true : false]) . Html::input('number', "forecasts[{$model['id_game']}][fscore_guest]", isset($model['f_id']) ? $model['fscore_guest'] : '', ['class' => 'forecast', 'maxlength' => 2, 'form' => $form->getID(), 'disabled' => $model['date_time_game'] - time() < 60 * 60 ? true : false]) . "</div>" . "</row>";
        }, 'options' => ['class' => 'col-xs-11'], 'contentOptions' => ['style' => 'font-size: 13px'], 'vAlign' => 'middle']]]);
        ?>
                <?php 
        $content .= "<p class = 'text-right'>" . Html::submitButton('Сохранить', ['class' => 'btn btn-success', 'form' => $form->getId()]) . "</p>";
        ?>
                <?php 
        ActiveForm::end();
        ?>
                <?php 
        $content .= "</form>";
        ?>
            <?php 
    }
    ?>

            <?php 
    echo Collapse::widget(['encodeLabels' => false, 'items' => [['label' => "<i class = 'fa fa-futbol-o fa-spin'></i>" . '  ' . $tournament['tournament'], 'content' => $content]]]);
    ?>
        <?php 
}
?>
    </div>
</div>
Esempio n. 18
0
    $selected = in_array($cal->id, $selectedCalendars) ? 's' : 'n';
    $fam_cal .= '<div style="cursor:pointer;" class="row-inline" id="' . $cal->id . '">';
    $fam_cal .= '<span class="badge" style="background-color: ' . $cal->familyMember->event_color . '">' . $selected . '</span>&nbsp;' . $cal->name;
    $fam_cal .= '</div>';
}
$fam_cal .= '</div>';
//Outros Calendários
$other_cal = '<div>';
foreach ($otherCalendars->getModels() as $cal) {
    $selected = in_array($cal->id, $selectedCalendars) ? 's' : 'n';
    $other_cal .= '<div style="cursor:pointer;" class="row-inline"id="' . $cal->id . '">';
    $other_cal .= '<span class="badge" style="background-color: grey">' . $selected . '</span>&nbsp;' . $cal->name;
    $other_cal .= '</div>';
}
$other_cal .= '</div>';
echo Collapse::widget(['items' => [['label' => 'Calendários', 'content' => [$my_cal, $fam_cal, $other_cal], 'contentOptions' => ['class' => 'in']]]]);
?>

</div>

<!--<div id="popover_201" class="modal" tabindex="-1" role="dialog">
  <div class="modal-dialog modal-sm">
    <div class="modal-content">
      <center>A carregar ... p.f. aguarde.</center>
    </div>
  </div>
</div>-->

<div id="content" class="col-sm-10 calendar-content">
    <div>      
        <span id="popover_20" data-title="" data-content="A carregar ..." data-toggle="popover" data-original-title="" title=""></span>
Esempio n. 19
0
    background: #ffffff url("../images/loading.gif") top center no-repeat !important;
}
');
?>
<div class="accesos-index">

    
    <?php 
if (\Yii::$app->session->get('accesosFecDesdeF')) {
    $lbl = Html::tag('span', '', ['class' => 'glyphicon glyphicon-warning-sign', 'style' => 'color:#FF8000']) . '  ' . 'Filtro por fecha desde el ' . Yii::$app->formatter->asDate(\Yii::$app->session->get('accesosFecDesdeF')) . ' hasta el ' . Yii::$app->formatter->asDate(\Yii::$app->session->get('accesosFecHastaF'));
    $searchModel->fecdesde = \Yii::$app->session->get('accesosFecDesdeF');
    $searchModel->fechasta = \Yii::$app->session->get('accesosFecHastaF');
} else {
    $lbl = 'Filtrar por rango de fechas';
}
echo Collapse::widget(['encodeLabels' => false, 'items' => [['label' => $lbl, 'content' => $this->render('_searchfec', ['model' => $searchModel])]]]);
if (\Yii::$app->session->get('accesosFecDesdeF')) {
    $lbl2 = ' (' . Yii::$app->formatter->asDate(\Yii::$app->session->get('accesosFecDesdeF')) . '-' . Yii::$app->formatter->asDate(\Yii::$app->session->get('accesosFecHastaF')) . ')';
} else {
    $lbl2 = '';
}
$pdfHeader = ['L' => ['content' => \Yii::$app->params['lblName']], 'C' => ['content' => $this->title . $lbl2, 'font-style' => 'B'], 'R' => ['content' => '']];
$pdfFooter = ['L' => ['content' => \Yii::$app->params['lblName2']], 'C' => ['content' => 'página {PAGENO} de {nb}'], 'R' => ['content' => 'Fecha:{DATE d/m/Y}']];
// las columnas se definen fuera del gridview para poder extraer las etiquetas para el
// popover que define las columnas a exportar
$columns = [['class' => 'kartik\\grid\\ActionColumn', 'header' => 'Acciones', 'headerOptions' => ['style' => 'text-align:center;width:70px'], 'options' => ['style' => 'width:70px'], 'template' => '{comentario} {mensajeP} {mensajeV}', 'buttons' => ['comentario' => function ($url, $model) {
    $c = Comentarios::getComentariosByModelId('frontend\\models\\Accesos', $model->id_acceso);
    $text = '<span class="glyphicon glyphicon-copyright-mark"';
    if (!empty($c)) {
        $text .= ' style="color:#FF8000"></span>';
        $titl = 'Ingresar nuevo/Ver comentarios';
Esempio n. 20
0
<?php

/* @var $panel yii\debug\panels\RequestPanel */
use yii\bootstrap\Collapse;
$this->title = 'Request';
$this->params['breadcrumbs'][] = $this->title;
echo Collapse::widget(['items' => [['label' => 'Parameters', 'content' => $this->render('table', ['caption' => 'Routing', 'values' => ['Route' => $panel->data['route'], 'Action' => $panel->data['action'], 'Parameters' => $panel->data['actionParams']]]) . $this->render('table', ['caption' => '$_GET', 'values' => $panel->data['GET']]) . $this->render('table', ['caption' => '$_POST', 'values' => $panel->data['POST']]) . $this->render('table', ['caption' => '$_FILES', 'values' => $panel->data['FILES']]) . $this->render('table', ['caption' => '$_COOKIE', 'values' => $panel->data['COOKIE']]) . $this->render('table', ['caption' => 'Request Body', 'values' => $panel->data['requestBody']])], ['label' => 'Headers', 'content' => $this->render('table', ['caption' => 'Request Headers', 'values' => $panel->data['requestHeaders']]) . $this->render('table', ['caption' => 'Response Headers', 'values' => $panel->data['responseHeaders']])], ['label' => 'Session', 'content' => $this->render('table', ['caption' => '$_SESSION', 'values' => $panel->data['SESSION']]) . $this->render('table', ['caption' => 'Flashes', 'values' => $panel->data['flashes']])], ['label' => ' $_SERVER', 'content' => $this->render('table', ['caption' => '$_SERVER', 'values' => $panel->data['SERVER']])]]]);
Esempio n. 21
0
<?php

/**
 * Created by PhpStorm.
 * User: ARTEM
 * Date: 18.09.2015
 * Time: 11:08
 */
use yii\bootstrap\ActiveForm;
use yii\bootstrap\Collapse;
?>


<?php 
$form = ActiveForm::begin(['id' => 'email-notif', 'options' => ['class' => 'form-horizontal'], 'action' => 'user?mode=save']);
?>

<?php 
echo Collapse::widget(['items' => [['label' => 'Личные данные', 'content' => $this->render('personal', ['model' => $model, 'form' => $form])], ['label' => 'Смена пароля', 'content' => $this->render('changepass', ['model' => $model, 'form' => $form]), 'contentOptions' => [], 'options' => []], ['label' => 'Смена email', 'content' => $this->render('emailchange', ['model' => $model, 'form' => $form]), 'contentOptions' => [], 'options' => []], ['label' => 'Email уведомления', 'content' => $this->render('emailnotif', ['model' => $model, 'form' => $form]), 'contentOptions' => [], 'options' => []], ['label' => 'Конфеденциальность', 'content' => $this->render('confidentiality', ['model' => $model, 'form' => $form]), 'contentOptions' => [], 'options' => []]]]);
?>


<?php 
ActiveForm::end();
?>




Esempio n. 22
0
use yii\grid\GridView;
use yii\bootstrap\Collapse;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\search\FaqSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Часто задаваемые вопросы';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="faq-index">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>
    <?php 
echo Collapse::widget(['items' => [['label' => 'Поиск', 'content' => $this->render('_search', ['model' => $searchModel])]]]);
?>
    <?php 
// echo $this->render('_search', ['model' => $searchModel]);
?>

    <p>
        <?php 
echo Html::a('Создать', ['create'], ['class' => 'btn btn-success']);
?>
    </p>

    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn', 'visible' => false], 'faq_question', 'faq_answer', ['attribute' => 'faqCategoryName', 'format' => 'raw'], 'faq_weight', ['attribute' => 'faqIsFeaturedName', 'format' => 'raw'], ['class' => 'yii\\grid\\ActionColumn']]]);
?>
        <div class = "row">

            <div class = 'col-xs-12 col-md-5 col-md-offset-1 col-lg-5'>
                <?php 
echo Standings::widget(['standings' => $teamParticipants]);
?>
            </div>

            <?php 
$collapseContent = Standings::widget(['standings' => $forecastedStandings]);
?>

            <div class = 'col-xs-12 col-md-5 col-md-offset-1 col-lg-5'>
                <?php 
echo Collapse::widget(['encodeLabels' => false, 'items' => [['label' => 'Если сбылись все Ваши прогнозы...', 'content' => $collapseContent]]]);
?>
            </div>

            <?php 
echo $this->render('_winners', ['winners' => $winners, 'tournament' => $tournament, 'additionalPoints' => $additionalPoints, 'totalAdditionalPoints' => $totalAdditionalPoints]);
?>


            <?php 
echo $this->render('_forecasters', ['forecasters' => $forecasters, 'tournament' => $tournament]);
?>
        </div>

        <hr>
Esempio n. 24
0
use yii\helpers\Html;
use yii\grid\GridView;
use yii\bootstrap\Collapse;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\search\MarketingImageSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Marketing Images';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="marketing-image-index">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>
    <?php 
echo Collapse::widget(['encodeLabels' => false, 'items' => [['label' => '<i class="fa fa-caret-square-o-down"></i>  Search', 'content' => $this->render('_search', ['model' => $searchModel])]]]);
?>

    <p>
        <?php 
echo Html::a('Create Marketing Image', ['create'], ['class' => 'btn btn-success']);
?>
    </p>

    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'id', 'marketing_image_path', 'marketing_image_name', 'marketing_image_caption_title', 'marketing_image_caption', ['attribute' => 'marketing_image_is_featured', 'format' => 'boolean'], ['attribute' => 'marketing_image_is_active', 'format' => 'boolean'], 'statusName', 'thumb:html', ['class' => 'yii\\grid\\ActionColumn']]]);
?>

</div>
Esempio n. 25
0
	<div class="row ">
	
		<div class="col-sm-9">
			<div class="jumbotron">
				<h2>Это важно знать</h2>
				<p>Данный раздел будет полезен как тем, кто впервые сталкивается с необходимостью создать собственный сайт, так и тем кто задумывает обновить или модернизировать существующий.</p>
			</div>
		</div>
	</div>
	<div class="row ">
		
		
	
		<div class="col-sm-7">

				<?php 
echo Collapse::widget(['items' => [['label' => 'Важно на чем разработан сайт?', 'content' => 'Для разработки сайта сеществуют сотни систем. Среди них есть как более, так и менее известные, очень дорогие или совершенно бесплатные. Но важно понимать то, что сайт, который Вам сделает компания или специалист фрилансер, должен поддерживаться. Но зачастую бывает, что компания - разработчик "прекращает" заниматься этим видом деятельности, неудовлетворительно вносит изменения на сайт или банально "ссорится" с клиентом. 
Появляется необходимость сменить компанию разработчика, но это не всегда бывает просто. Дело в то, что Ваш сайт мог быть разработан на очень редкой системе, которая буквально использовалась только той студией, которая его разрабатывала. В таком случае другие студии, в которые обратится клиент - откажут ему в поддержке его сайта или предложат ему создать у них новый за полную его стоимость. Чтобы этого не происходило необходимо выбирать систему распространенную. 
Сайт написанный на такой системе легче передать другой компании разработчику или передать его на обслуживание соответствующему специалисту фрилансеру. На момент написания статьи я бы советовал выбирать среди таких систем, как Drupal, Joomla!, WordPress, 1С Битрикс, UMI. Отдельно хочется упомянуть о Yii и Zend - очень хорошие продукты, но испольуются исключительно для написания серьёзных крупных проектов с нуля. Непонравилась компания - разработчик вашего проекта, 
которая начала разработку на Yii, - находите другую компанию или специалиста на Yii и продолжаете развиваться с тоже точки. В заключении хочу сказать, что любой процесс разработки сайта - это обоюдный проект клиента и заказчика. Интересуйтесь на чём будет сайт, как продвигается разработка, какие решаются задачи и какие возникают вопросы.'], ['label' => 'Кому должен принадлежать домен сайта?', 'content' => 'Ответ кажется очевидным, однако не всех клиентов информируют в полной мере. Процесс регистрации домена сайта носит юридический характер. Домен сайта должен быть юридически закреплён за паспортом клиента, - только в этом случае он по настоящему будет Вам принадлежать. Однако существуют "недобросовестные" студии, которые регистрируют домен на себя, не информируя об этом клиента должным образом. В последствии это выливается в то, 
что клиент не может отказаться от поддержки сайта данной веб студией или вынужден будет выкупать домен.']], 'options' => ['class' => 'faq_panels']]);
?>
		

			
		</div>

	</div>

</div>
	</div>
Esempio n. 26
0
File: vk.php Progetto: apuc/api
                            <div class="col-lg-4">
                                <label class="control-label">Сумма, руб</label>
                                <?php 
echo Html::textInput('sum_comment', 0, ['class' => 'sum_comment form-control', 'readonly' => true]);
?>
                            </div>
                        </div>

                        <?php 
$general_setting = "\n                        <div class='row'>\n                            <div class='col-lg-12'> " . $form->field($model, 'tag_list')->textInput() . "\n                            </div>\n                        </div>\n                        <div class='row'>\n                            <div class='col-lg-6'>" . $form->field($model, 'sex')->dropDownList(['' => 'Не выбрано', '1' => 'Женский', '2' => 'Мужской']) . "\n                            </div>\n                            <div class='col-lg-6'>" . $form->field($model, 'friends_count')->input('number', ['min' => 0]) . "\n                            </div>\n                        </div>\n                        <div class='row'>\n                            <div class='col-lg-6'>" . $form->field($model, 'age_min')->input('number', ['min' => 0]) . "\n                            </div>\n                            <div class='col-lg-6'>" . $form->field($model, 'age_max')->input('number', ['min' => 0]) . "\n                            </div>\n                        </div>\n                        <div class='row'>\n                            <div class='col-lg-6'>" . $form->field($model, 'country')->dropDownList(['' => 'Не выбрано', '1' => 'Россия', '2' => 'Украина', '3' => 'Беларусь', '4' => 'Казахстан', '5' => 'Азербайджан', '6' => 'Армения', '7' => 'Грузия', '8' => 'Израиль', '9' => 'США', '65' => 'Германия', '11' => 'Кыргызстан', '12' => 'Латвия', '13' => 'Литва', '14' => 'Эстония', '15' => 'Молдова', '16' => 'Таджикистан', '17' => 'Туркменистан', '18' => 'Узбекистан']) . "\n                            </div>\n                            <div class='col-lg-6'>" . $form->field($model, 'city_text')->textInput() . "\n                            </div>\n                        </div>\n                        ";
$like_setting = "\n                                <div class='row'>\n                                    <div class='col-lg-3'>" . $form->field($model, 'minute_1_like')->input('number', ['min' => 0]) . "\n                                    </div>\n                                    <div class='col-lg-2'>" . $form->field($model, 'minutes_5_like')->input('number', ['min' => 0]) . "\n                                    </div>\n                                    <div class='col-lg-2'>" . $form->field($model, 'hour_1_like')->input('number', ['min' => 0]) . "\n                                    </div>\n                                    <div class='col-lg-2'>" . $form->field($model, 'hours_4_like')->input('number', ['min' => 0]) . "\n                                    </div>\n                                    <div class='col-lg-3'>" . $form->field($model, 'day_1_like')->input('number', ['min' => 0]) . "\n                                    </div>\n                                </div>\n                       ";
$repost_setting = "\n                            <div class='row' >\n                                <div class='col-lg-3' >" . $form->field($model, 'minute_1_repost')->input('number', ['min' => 0]) . "\n                                </div>\n                                <div class='col-lg-2'>" . $form->field($model, 'minutes_5_repost')->input('number', ['min' => 0]) . "\n                                </div>\n                                <div class='col-lg-2'>" . $form->field($model, 'hour_1_repost')->input('number', ['min' => 0]) . "\n                                </div>\n                                <div class='col-lg-2'>" . $form->field($model, 'hours_4_repost')->input('number', ['min' => 0]) . "\n                                </div>\n                                <div class='col-lg-3'>" . $form->field($model, 'day_1_repost')->input('number', ['min' => 0]) . "\n                                </div>\n                            </div>";
$comment_setting = "\n                            <div class='row' >\n                                <div class='col-lg-3' >" . $form->field($model, 'minute_1_comment')->input('number', ['min' => 0]) . "\n                                </div>\n                                <div class='col-lg-2'>" . $form->field($model, 'minutes_5_comment')->input('number', ['min' => 0]) . "\n                                </div>\n                                <div class='col-lg-2'>" . $form->field($model, 'hour_1_comment')->input('number', ['min' => 0]) . "\n                                </div>\n                                <div class='col-lg-2'>" . $form->field($model, 'hours_4_comment')->input('number', ['min' => 0]) . "\n                                </div>\n                                <div class='col-lg-3'>" . $form->field($model, 'day_1_comment')->input('number', ['min' => 0]) . "\n                                </div>\n                            </div>";
?>
                        <?php 
echo Collapse::widget(['items' => [['label' => 'Общие настройки', 'content' => $general_setting, 'contentOptions' => [], 'options' => []], ['label' => 'Настройка лайков', 'content' => $like_setting, 'contentOptions' => [], 'options' => []], ['label' => 'Настройка репостов', 'content' => $repost_setting, 'contentOptions' => [], 'options' => []], ['label' => 'Настройка комментариев', 'content' => $comment_setting, 'contentOptions' => [], 'options' => []]]]);
?>
                        <div class="box-footer">
                            <?php 
echo Html::submitButton('Отправить', ['class' => 'btn btn-primary']);
?>
                        </div>
                        <?php 
$form->end();
?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
Esempio n. 27
0
<?php

use yii\bootstrap\Collapse;
/* @var $this yii\web\View */
$this->title = 'Backend';
?>
<div class="site-index">

      <div class="body-content">

        <div class="row">
            <div class="col-lg-4">
               <?php 
echo Collapse::widget(['items' => [['label' => 'A dar seguimento', 'content' => ['Pedidos de contato <span class="badge">' . $statistics['contacts'] . '</span>', 'Novas encomendas <span class="badge">0</span>'], 'contentOptions' => ['class' => 'in'], 'options' => ['']], ['label' => 'Estatísticas', 'content' => ['Utilizadores <span class="badge">' . $statistics['users'] . '</span>', 'Carros <span class="badge">0</span>', 'Encomendas <span class="badge">0</span>', 'Citações <span class="badge">0</span>', 'Notícias <span class="badge">0</span>', 'Email enviados <span class="badge">0</span>'], 'contentOptions' => ['']], ['label' => 'outros', 'content' => ['...', '...'], 'contentOptions' => [''], 'options' => [''], 'footer' => 'Fim']]]);
?>
            </div>
            <div class="col-lg-4">

            </div>
            <div class="col-lg-4">

            </div>
        </div>

    </div>
</div>
Esempio n. 28
0
<?php

use yii\helpers\Html;
use yii\bootstrap\Collapse;
/* @var $this yii\web\View */
$this->title = '帮助中心';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="page-content">
    <!-- heading -->
    <h2 class="br-orange default-head">订单相关</h2>
    <?php 
echo Collapse::widget(['items' => [['label' => '在线支付支持什么付款方式?', 'content' => '支付宝(Alipay)与微信支付,微信支付只可在微信浏览器中使用。', 'options' => ['class' => 'panel-warning'], 'contentOptions' => ['class' => 'in']], ['label' => '货到付款支持什么付款方式?', 'content' => '只支持现金。', 'options' => ['class' => 'panel-warning']], ['label' => '能提供发票吗?', 'content' => '很抱歉,暂时还不能提供发票。', 'options' => ['class' => 'panel-warning']]]]);
?>
    <!-- heading -->
    <h2 class="br-orange default-head">关于配送</h2>
    <?php 
echo Collapse::widget(['items' => [['label' => '成功下单后,多久能送到?', 'content' => '在同一栋楼内,最快只需要5分钟即可送达。', 'options' => ['class' => 'panel-warning'], 'contentOptions' => ['class' => 'in']], ['label' => '你们的送货范围是?', 'content' => '同一个学校内的宿舍楼,建议选择您所在宿舍楼内(旁)的营业点来购买。', 'options' => ['class' => 'panel-warning']], ['label' => '有配送费吗?', 'content' => '配送免费!', 'options' => ['class' => 'panel-warning']], ['label' => '可以退货吗?', 'content' => '很抱歉,可以退换商品,不可退货。', 'options' => ['class' => 'panel-warning']], ['label' => '可以上门取货吗?', 'content' => '可以,去购买的营业点说明一下自己的收货信息或订单号来提取。', 'options' => ['class' => 'panel-warning']]]]);
?>
    <!-- heading -->
    <h2 class="br-orange default-head">账户问题</h2>
    <?php 
echo Collapse::widget(['items' => [['label' => '忘记密码怎么办?', 'content' => '至登录页面,点击左下角忘记密码链接,进入自助服务。', 'contentOptions' => ['class' => 'in'], 'options' => ['class' => 'panel-warning']], ['label' => '如何更换手机号?', 'content' => '进入“个人中心->手机”页面进行更换。', 'options' => ['class' => 'panel-warning']]]]);
?>
</div>
Esempio n. 29
0
 /**
  * Renders [sortable lists](https://github.com/rubaxa/Sortable) for selecting multiple data with order. It
  * contains left and right blocks with draggable items between them.
  * @param array $left  Items for left block (selected items).
  * @param array $right Items for right block.
  * @param array $options
  * @return $this
  * @throws \yii\base\InvalidConfigException
  */
 public function sortable($left, $right, $options = [])
 {
     $options = array_merge($this->inputOptions, $options);
     $this->adjustLabelFor($options);
     $options['value'] = '';
     $html = Html::activeHiddenInput($this->model, $this->attribute, $options);
     $leftBlock = Html::listGroupOrder($left, ['class' => 'sortable list-group-sm' . (count($left) > 0 ? '' : ' empty'), 'orderClass' => 'info']);
     if (key($right) === 0) {
         $rightBlock = Html::listGroupOrder($right, ['class' => 'sortable list-group-sm', 'title' => 'guid']);
     } else {
         $collapse = new Collapse();
         $items = [];
         foreach ($right as $label => $data) {
             $items[] = ['label' => $label, 'content' => Html::listGroupOrder($data, ['class' => 'sortable list-group-sm', 'title' => 'guid']), 'options' => ['class' => 'panel-sortable']];
         }
         $collapse->items = $items;
         $rightBlock = $collapse->renderItems();
     }
     $this->parts['{input}'] = $html . '<div class="row sortable-' . $this->attribute . '"><div class="col-md-6 sortable-left">' . $leftBlock . '</div><div class="col-md-6 sortable-right">' . $rightBlock . '</div></div>';
     return $this;
 }
Esempio n. 30
0
    $accordion[$moduleId]['label'] = $title;
    $accordion[$moduleId]['content'] = Html::checkboxList("permisions", $userPermissions, $allPermissions[$moduleId], ['itemOptions' => ['labelOptions' => ['class' => 'checkbox-inline']]]);
    $accordion[$moduleId]['contentOptions'] = ['class' => 'in'];
}
?>

<div class="row">
    <div class="col-sm-12">
        <?php 
Box::begin(['title' => 'اعطای دسترسی', 'options' => ['class' => 'box-solid box-primary']]);
?>
            <?php 
echo Html::beginForm();
?>
            <?php 
echo Collapse::widget(['items' => $accordion]);
?>
            <?php 
echo Html::submitButton('<i class="fa fa-save"></i> ذخیره', ['class' => 'btn btn-lg btn-flat margin bg-green']);
?>
            <?php 
echo Button::widget(['title' => 'انصراف', 'options' => ['class' => 'btn-lg btn-flat margin'], 'color' => 'orange', 'icon' => 'undo', 'url' => array('index')]);
?>
            <?php 
echo Html::endForm();
?>
        <?php 
Box::end();
?>
    </div>
</div>