Skip to content

Commit

Permalink
Added option for generating AdminLTE styled views.
Browse files Browse the repository at this point in the history
  • Loading branch information
almirb committed Jan 29, 2018
1 parent 31f85a6 commit 1de6237
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crud/default/views/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="<?= Inflector::camel2id(StringHelper::basename($generator->modelClass)) ?>-view">
<?php if (!$generator->adminLTE) : ?>
<h2><?= '<?= Html::encode($this->title)' ?> ?></h2>
<br/>
<?php endif ?>
<?php if ($generator->generateFlashMessages) : ?>
<?='<?php ' ?>\almirb\yii2common\components\FlashHelper::showFlashMessages(); <?='?>' ?>
<?php endif; ?>

<div class="clearfix crud-navigation">
<!-- menu buttons -->
<div class='pull-left'>
Expand Down

0 comments on commit 1de6237

Please sign in to comment.