init
This commit is contained in:
30
vendor/yiisoft/yii2-gii/src/views/layouts/generator.php
vendored
Normal file
30
vendor/yiisoft/yii2-gii/src/views/layouts/generator.php
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
use yii\helpers\Html;
|
||||
|
||||
/* @var $this \yii\web\View */
|
||||
/* @var $generators \yii\gii\Generator[] */
|
||||
/* @var $activeGenerator \yii\gii\Generator */
|
||||
/* @var $content string */
|
||||
|
||||
$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-md-3 col-sm-4">
|
||||
<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], [
|
||||
'class' => $generator === $activeGenerator ? 'list-group-item active' : 'list-group-item',
|
||||
]);
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9 col-sm-8">
|
||||
<?= $content ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php $this->endContent(); ?>
|
||||
55
vendor/yiisoft/yii2-gii/src/views/layouts/main.php
vendored
Normal file
55
vendor/yiisoft/yii2-gii/src/views/layouts/main.php
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
use yii\bootstrap\NavBar;
|
||||
use yii\bootstrap\Nav;
|
||||
use yii\helpers\Html;
|
||||
|
||||
/* @var $this \yii\web\View */
|
||||
/* @var $content string */
|
||||
|
||||
$asset = yii\gii\GiiAsset::register($this);
|
||||
?>
|
||||
<?php $this->beginPage() ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="robots" content="none">
|
||||
<?php $this->registerCsrfMetaTags() ?>
|
||||
<title><?= Html::encode($this->title) ?></title>
|
||||
<?php $this->head() ?>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container-fluid page-container">
|
||||
<?php $this->beginBody() ?>
|
||||
<?php
|
||||
NavBar::begin([
|
||||
'brandLabel' => Html::img($asset->baseUrl . '/logo.png'),
|
||||
'brandUrl' => ['default/index'],
|
||||
'options' => ['class' => 'navbar-inverse navbar-fixed-top'],
|
||||
]);
|
||||
echo Nav::widget([
|
||||
'options' => ['class' => 'nav navbar-nav navbar-right'],
|
||||
'items' => [
|
||||
['label' => 'Home', 'url' => ['default/index']],
|
||||
['label' => 'Help', 'url' => 'http://www.yiiframework.com/doc-2.0/ext-gii-index.html'],
|
||||
['label' => 'Application', 'url' => Yii::$app->homeUrl],
|
||||
],
|
||||
]);
|
||||
NavBar::end();
|
||||
?>
|
||||
<div class="container content-container">
|
||||
<?= $content ?>
|
||||
</div>
|
||||
<div class="footer-fix"></div>
|
||||
</div>
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<p class="pull-left">A Product of <a href="http://www.yiisoft.com/">Yii Software LLC</a></p>
|
||||
<p class="pull-right"><?= Yii::powered() ?></p>
|
||||
</div>
|
||||
</footer>
|
||||
<?php $this->endBody() ?>
|
||||
</body>
|
||||
</html>
|
||||
<?php $this->endPage() ?>
|
||||
Reference in New Issue
Block a user