From 3e451455d9a3027f5658a93e1fd684eef7dbcbc1 Mon Sep 17 00:00:00 2001 From: Luciano Baraglia Date: Thu, 17 Oct 2013 01:42:27 -0300 Subject: [PATCH] More on GII buttons --- framework/yii/gii/generators/crud/templates/views/_form.php | 2 +- framework/yii/gii/views/default/view.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/yii/gii/generators/crud/templates/views/_form.php b/framework/yii/gii/generators/crud/templates/views/_form.php index 2d9d5dc..529d3ef 100644 --- a/framework/yii/gii/generators/crud/templates/views/_form.php +++ b/framework/yii/gii/generators/crud/templates/views/_form.php @@ -36,7 +36,7 @@ use yii\widgets\ActiveForm; echo "\t\tgenerateActiveField($attribute) . " ?>\n\n"; } ?>
- echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', array('class' => 'btn btn-primary')); ?> + echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', array('class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary')); ?>
ActiveForm::end(); ?> diff --git a/framework/yii/gii/views/default/view.php b/framework/yii/gii/views/default/view.php index 9754918..91c6bcb 100644 --- a/framework/yii/gii/views/default/view.php +++ b/framework/yii/gii/views/default/view.php @@ -45,10 +45,10 @@ foreach ($generator->templates as $name => $path) { Please select which set of the templates should be used to generated the code. '); ?>
- 'preview', 'class' => 'btn btn-success')); ?> + 'preview', 'class' => 'btn btn-primary')); ?> - 'generate', 'class' => 'btn btn-danger')); ?> + 'generate', 'class' => 'btn btn-success')); ?>