diff --git a/framework/yii/gii/generators/crud/templates/views/index.php b/framework/yii/gii/generators/crud/templates/views/index.php index 1de548a..96f8390 100644 --- a/framework/yii/gii/generators/crud/templates/views/index.php +++ b/framework/yii/gii/generators/crud/templates/views/index.php @@ -33,7 +33,7 @@ $this->params['breadcrumbs'][] = $this->title; indexWidgetType === 'grid' ? ' //' : ''); ?> echo $this->render('_search', array('model' => $searchModel)); ?>

- echo Html::a('Create modelClass); ?>', array('create'), array('class' => 'btn btn-danger')); ?> + echo Html::a('Create modelClass); ?>', array('create'), array('class' => 'btn btn-success')); ?>

indexWidgetType === 'grid'): ?> diff --git a/framework/yii/gii/generators/crud/templates/views/view.php b/framework/yii/gii/generators/crud/templates/views/view.php index d25a851..4f302ed 100644 --- a/framework/yii/gii/generators/crud/templates/views/view.php +++ b/framework/yii/gii/generators/crud/templates/views/view.php @@ -30,7 +30,7 @@ $this->params['breadcrumbs'][] = $this->title;

echo Html::encode($this->title); ?>

- echo Html::a('Update', array('update', ), array('class' => 'btn btn-danger')); ?> + echo Html::a('Update', array('update', ), array('class' => 'btn btn-primary')); ?> echo Html::a('Delete', array('delete', ), array( 'class' => 'btn btn-danger', 'data-confirm' => Yii::t('app', 'Are you sure to delete this item?'),