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')); ?>