Ejemplo n.º 1
0
}
?>

    <?php 
echo $forum->description;
?>

    </article>

    <?php 
Pjax::begin();
?>
    
    	
    	<?php 
echo ListView::widget(['dataProvider' => $dataProvider, 'options' => ['class' => 'forum-threads'], 'layout' => '<div class="forum-threads-box">{items}</div><div class="uk-margin-top">{pager}</div>', 'itemOptions' => ['class' => 'thread'], 'itemView' => '_thread']);
?>

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

    <div class="uk-margin-top">

        <?php 
echo Html::a(Yii::t('forum', 'Create new thread'), ['/forum/threads/new-thread', 'lang' => $lang, 'forum_id' => $forum->id], ['class' => 'uk-button uk-button-small uk-button-success']);
?>


    </div>
Ejemplo n.º 2
0
    $form = ActiveForm::begin(['id' => 'login-form', 'method' => 'get']);
    ?>
    

        <?php 
    echo Html::activeDropDownList($searchModel, 'position', $positions, ['prompt' => 'Сбросить позицию']);
    ?>

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

        </div>

        <?php 
    echo ListView::widget(['dataProvider' => $dataProvider, 'itemOptions' => ['tag' => false], 'layout' => '{items}', 'options' => ['tag' => 'ul', 'class' => 'uk-nestable', 'data' => ['uk-nestable' => '']], 'itemView' => '_item']);
    ?>

        <?php 
    \worstinme\uikit\assets\Nestable::register($this);
    $url = Url::to(['sort']);
    $js = <<<JS

        \$("#widgetssearch-position").on("change",function(){ \$(this).parents("form").submit()});

        var nestable = UIkit.nestable('[data-uk-nestable]');
        
        nestable.on('change.uk.nestable',function(event,it,item,action){

            var sort = {};