You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
859 B

12 years ago
<?php
use yii\helpers\Html;
/**
* @var \yii\web\View $this
* @var \yii\gii\Generator[] $generators
* @var \yii\gii\Generator $activeGenerator
* @var string $content
12 years ago
*/
$generators = Yii::$app->controller->module->generators;
$activeGenerator = Yii::$app->controller->generator;
?>
<?php $this->beginContent('@yii/gii/views/layouts/main.php'); ?>
<div class="row">
<div class="col-sm-3">
12 years ago
<div class="list-group">
<?php
foreach ($generators as $id => $generator) {
$label = '<i class="glyphicon glyphicon-chevron-right"></i>' . Html::encode($generator->getName());
echo Html::a($label, ['default/view', 'id' => $id], [
12 years ago
'class' => $generator === $activeGenerator ? 'list-group-item active' : 'list-group-item',
]);
12 years ago
}
?>
</div>
</div>
<div class="col-sm-9">
<?= $content ?>
12 years ago
</div>
</div>
<?php $this->endContent(); ?>