Browse Source

Gii should keep horizontal layout

tags/2.0.0-beta
Hisateru Tanaka 11 years ago
parent
commit
11ff78e4b4
  1. 2
      extensions/yii/gii/views/default/view.php
  2. 4
      extensions/yii/gii/views/layouts/generator.php

2
extensions/yii/gii/views/default/view.php

@ -33,7 +33,7 @@ foreach ($generator->templates as $name => $path) {
'fieldConfig' => ['class' => ActiveField::className()], 'fieldConfig' => ['class' => ActiveField::className()],
]); ?> ]); ?>
<div class="row"> <div class="row">
<div class="col-lg-8"> <div class="col-lg-8 col-md-10">
<?= $this->renderFile($generator->formView(), [ <?= $this->renderFile($generator->formView(), [
'generator' => $generator, 'generator' => $generator,
'form' => $form, 'form' => $form,

4
extensions/yii/gii/views/layouts/generator.php

@ -12,7 +12,7 @@ $activeGenerator = Yii::$app->controller->generator;
?> ?>
<?php $this->beginContent('@yii/gii/views/layouts/main.php'); ?> <?php $this->beginContent('@yii/gii/views/layouts/main.php'); ?>
<div class="row"> <div class="row">
<div class="col-sm-3"> <div class="col-md-3 col-sm-4">
<div class="list-group"> <div class="list-group">
<?php <?php
foreach ($generators as $id => $generator) { foreach ($generators as $id => $generator) {
@ -24,7 +24,7 @@ $activeGenerator = Yii::$app->controller->generator;
?> ?>
</div> </div>
</div> </div>
<div class="col-sm-9"> <div class="col-md-9 col-sm-8">
<?= $content ?> <?= $content ?>
</div> </div>
</div> </div>

Loading…
Cancel
Save