示例#1
0
<?php

use app\helpers\Icon;
use app\widgets\Box;
use yii\helpers\Html;
/** @var $this yii\web\View */
/** @var $rootPages modules\wiki\models\Wiki[] */
$this->title = Yii::t('app', 'Wiki');
$this->params['breadcrumbs'][] = $this->title;
?>

<?php 
Box::begin([]);
?>

<div class="btn-group">
    <?php 
if (Yii::$app->user->can('createWiki')) {
    ?>
    <?php 
    echo Html::a(Yii::t('app', 'Create'), ['page/create'], ['class' => 'btn btn-flat btn-default']);
    ?>
    <?php 
}
?>
</div>

<?php 
if (!$rootPages) {
    ?>
    <?php 
示例#2
0
    </div>
    <div class="wiki-summary">
        <span class="summary-info text-muted text-sm">
            <?php 
echo Yii::t('app', 'Added by {creator}, last edit by {editor} {time}', ['creator' => Yii::$app->formatter->asUserlink($wiki->user), 'editor' => Yii::$app->formatter->asUserlink($wiki->historyLatest->user), 'time' => Yii::$app->formatter->asRelativeTime($wiki->historyLatest->created_at)]);
?>
        </span>
    </div>
    <?php 
echo Yii::$app->formatter->asMarkdown($wiki->historyLatest->content);
Box::end();
?>

<?php 
if ($wiki->getChildren()->count()) {
    Box::begin(['label' => Yii::t('app', 'Child pages')]);
    ?>
<ul class="list-unstyled">
    <?php 
    foreach ($wiki->children as $child) {
        ?>
    <li><?php 
        echo Html::a(Icon::icon('fa fa-file-text', e($child->title)), ['page/view', 'id' => $child->id]);
        ?>
</li>
    <?php 
    }
    ?>
</ul>
<?php 
    Box::end();
示例#3
0
<?php

use app\widgets\Box;
/** @var $this yii\web\View */
/** @var $editor modules\wiki\forms\Editor */
$this->title = Yii::t('app', 'Create a new page');
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Wiki'), 'url' => ['page/index']];
$this->params['breadcrumbs'][] = $this->title;
?>

<?php 
Box::begin(['label' => $this->title]);
echo $this->render('_editor', ['editor' => $editor]);
Box::end();
示例#4
0
<?php

/* @var $this app\components\View */
use app\widgets\Box;
$this->title = 'Blank page';
$this->subTitle = 'it all starts here';
?>

<?php 
echo Box::begin(['type' => '', 'header' => ['title' => 'Title', 'class' => 'with-border'], 'footer' => 'Footer']);
?>
Start creating your amazing application!
<?php 
echo Box::end();
示例#5
0
use yii\helpers\Html;
/** @var $this yii\web\View */
/** @var $model app\forms\user\Profile */
/** @var $tab string current active tab */
$this->title = Yii::t('app', 'User Profile');
if (Yii::$app->user->can('viewAnyUser')) {
    $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Users'), 'url' => ['index']];
}
$this->params['breadcrumbs'][] = $this->title;
?>

<div class="row">
    
    <div class="col-md-3">
        <?php 
Box::begin(['box' => Box::BOX_PRIMARY, 'bodyOptions' => ['class' => 'box-profile']]);
?>
            <?php 
echo Html::img(Param::value('User.noAvatarImage'), ['class' => 'profile-user-img img-responsive img-circle']);
?>
            <h3 class="profile-username text-center">
                <?php 
echo Html::encode($model->name);
?>
            </h3>
            <p class="text-muted text-center">
                <?php 
echo Yii::t('app', 'Member since {date}', ['date' => Yii::$app->formatter->asDate(Yii::$app->user->identity->created_at)]);
?>
            </p>
            <?php 
示例#6
0
                    <div class="col-sm-12">
                        <?php 
echo IonSlider::widget(['name' => "range_4", 'type' => 'single', 'pluginOptions' => ['min' => 10000, 'max' => 100000, 'postfix' => " light years", 'from' => 55000, 'hide_min_max' => true, 'hide_from_to' => false]]);
?>
                    </div>
                </div>
        <?php 
echo app\widgets\Box::end();
?>
    </div><!-- /.col -->
</div><!-- /.row -->

<div class="row">
    <div class="col-xs-12">
        <?php 
echo Box::begin(['type' => 'primary', 'header' => ['title' => 'Bootstrap Slider']]);
?>
                <div class="row margin">
                    <div class="col-sm-6">
                        <?php 
foreach (['red', 'blue', 'green', 'yellow', 'aqua', 'purple'] as $color) {
    ?>
                        <?php 
    echo Slider::widget(['name' => 'price', 'value' => [-100, 100], 'options' => ['class' => ['form-control'], 'data' => ['slider-min' => -200, 'slider-max' => 200, 'slider-step' => 5, 'slider-orientation' => 'horizontal', 'slider-selection' => 'before', 'slider-tooltip' => 'show', 'slider-id' => $color]]]);
    ?>
                        <p>data-slider-id="<?php 
    echo $color;
    ?>
"</p>
                        <?php 
}
示例#7
0
echo InfoBox::widget(['bg' => 'bg-aqua', 'bgFill' => true, 'icon' => Html::ion('ios-chatbubble-outline'), 'text' => 'DIRECT MESSAGES', 'number' => '163,921', 'progress' => '40', 'progressText' => '40% Increase in 30 Days']);
?>

        <?php 
echo Box::begin(['type' => '', 'header' => ['title' => 'Browser Usage']]);
?>
        <?php 
echo Box::end();
?>

    </div>
</div>

<div class="row">
    <div class="col-md-8">
        <?php 
echo Table::widget(['box' => ['type' => 'box-info', 'header' => ['title' => 'Latest Orders'], 'noPadding' => true], 'responsive' => true, 'type' => 'table-striped', 'data' => $models, 'columns' => $columns]);
?>
    </div>

    <div class="col-md-4">
        <?php 
echo Box::begin(['type' => 'box-primary', 'header' => ['title' => 'Recently Added Products']]);
?>
        <?php 
echo Box::end();
?>
    </div>
</div>

示例#8
0
?>


<div class="row">
    <div class="col-md-6">
        <?php 
echo Collapse::widget([]);
?>
    </div>

    <div class="col-md-6">



        <?php 
echo Box::begin(['type' => 'success', 'noPadding' => true, 'header' => ['title' => 'Carousel']]);
?>

        <?php 
echo Carousel::widget(['items' => ['<img src="http://placehold.it/900x500/f39c12/ffffff&text=I+Love+Bootstrap"/>', ['content' => '<img src="http://placehold.it/900x500/ff0000/ffffff&text=I+Love+Bootstrap"/>'], ['content' => '<img src="http://placehold.it/900x500/ffcc00/ffffff&text=I+Love+Bootstrap"/>', 'caption' => '<h4>This is title</h4><p>This is the caption text</p>', 'options' => []]], 'controls' => ['<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>']]);
?>
        <?php 
echo Box::end();
?>
    </div>


</div>


<?php 
示例#9
0
/* @var $this app\components\View */
use app\widgets\Box;
use machour\adminlte\widgets\Timeline;
use machour\sparkline\Sparkline;
$this->title = 'Timeline';
$this->subTitle = 'example';
?>



<div class="row">
    <div class="col-md-12">

        <?php 
echo Box::begin(['type' => 'info', 'header' => ['title' => 'Timeline']]);
?>


        <?php 
echo Timeline::widget(['data' => [['date' => '12 Juin 2015', 'items' => [['time' => 'il y a 30 secondes', 'header' => 'header', 'body' => 'body', 'footer' => 'footer'], ['time' => 'il y a 20 secondes', 'header' => 'header2', 'body' => 'body2', 'footer' => 'footer2']]]]]);
?>

        <?php 
echo app\widgets\Box::end();
?>

    </div>

    <div class="row">
        <div class="col-md-8">
示例#10
0
            
        <?php 
Box::begin(['box' => Box::BOX_SUCCESS, 'label' => 'Select2 widget']);
?>
            <?php 
echo Select2::widget(['name' => 'demo-select2', 'items' => [1 => 'Zoo', 2 => 'Park', 3 => 'Cinema']]);
?>
            <hr>
            <?php 
echo Select2::widget(['name' => 'demo-select2', 'hideSearch' => false, 'items' => [1 => 'Zoo', 2 => 'Park', 3 => 'Cinema', 4 => 'Shop', 5 => 'Market']]);
?>
        <?php 
Box::end();
?>
            
        <?php 
Box::begin(['label' => 'Item list', 'box' => Box::BOX_DANGER]);
?>
            <?php 
echo ItemList::widget(['items' => [['title' => 'Created by', 'value' => 'user'], ['title' => 'Date', 'value' => '2016.08.09'], ['title' => 'Status', 'value' => 'Enabled']]]);
?>
        <?php 
Box::end();
?>
    </div>
    
    <div class="col-md-12">
    </div>
    
</div> <!-- /.demo-page -->