Browse Source

Merge pull request #981 from lucianobaraglia/master

GII button styles
tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
afcfb113d7
  1. 2
      framework/yii/gii/generators/crud/templates/views/index.php
  2. 2
      framework/yii/gii/generators/crud/templates/views/view.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'): ?>

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

@ -30,7 +30,7 @@ $this->params['breadcrumbs'][] = $this->title;
<h1><?php echo "<?php"; ?> echo Html::encode($this->title); ?></h1>
<p>
<?php echo '<?php'; ?> echo Html::a('Update', array('update', <?php echo $urlParams; ?>), array('class' => 'btn btn-danger')); ?>
<?php echo '<?php'; ?> echo Html::a('Update', array('update', <?php echo $urlParams; ?>), array('class' => 'btn btn-primary')); ?>
<?php echo '<?php'; ?> echo Html::a('Delete', array('delete', <?php echo $urlParams; ?>), array(
'class' => 'btn btn-danger',
'data-confirm' => Yii::t('app', 'Are you sure to delete this item?'),

Loading…
Cancel
Save