Browse Source

GII create object button style [skip ci]

tags/2.0.0-beta
Luciano Baraglia 11 years ago
parent
commit
ffd5235684
  1. 2
      framework/yii/gii/generators/crud/templates/views/index.php

2
framework/yii/gii/generators/crud/templates/views/index.php

@ -33,7 +33,7 @@ $this->params['breadcrumbs'][] = $this->title;
<?php echo '<?php' . ($generator->indexWidgetType === 'grid' ? ' //' : ''); ?> echo $this->render('_search', array('model' => $searchModel)); ?>
<p>
<?php echo '<?php'; ?> echo Html::a('Create <?php echo StringHelper::basename($generator->modelClass); ?>', array('create'), array('class' => 'btn btn-danger')); ?>
<?php echo '<?php'; ?> echo Html::a('Create <?php echo StringHelper::basename($generator->modelClass); ?>', array('create'), array('class' => 'btn btn-success')); ?>
</p>
<?php if ($generator->indexWidgetType === 'grid'): ?>

Loading…
Cancel
Save