Commit 3e451455 by Luciano Baraglia

More on GII buttons

parent f716bdd7
...@@ -36,7 +36,7 @@ use yii\widgets\ActiveForm; ...@@ -36,7 +36,7 @@ use yii\widgets\ActiveForm;
echo "\t\t<?php echo " . $generator->generateActiveField($attribute) . " ?>\n\n"; echo "\t\t<?php echo " . $generator->generateActiveField($attribute) . " ?>\n\n";
} ?> } ?>
<div class="form-group"> <div class="form-group">
<?php echo '<?php'; ?> echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', array('class' => 'btn btn-primary')); ?> <?php echo '<?php'; ?> echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', array('class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary')); ?>
</div> </div>
<?php echo '<?php'; ?> ActiveForm::end(); ?> <?php echo '<?php'; ?> ActiveForm::end(); ?>
......
...@@ -45,10 +45,10 @@ foreach ($generator->templates as $name => $path) { ...@@ -45,10 +45,10 @@ foreach ($generator->templates as $name => $path) {
Please select which set of the templates should be used to generated the code. Please select which set of the templates should be used to generated the code.
'); ?> '); ?>
<div class="form-group"> <div class="form-group">
<?php echo Html::submitButton('Preview', array('name' => 'preview', 'class' => 'btn btn-success')); ?> <?php echo Html::submitButton('Preview', array('name' => 'preview', 'class' => 'btn btn-primary')); ?>
<?php if(isset($files)): ?> <?php if(isset($files)): ?>
<?php echo Html::submitButton('Generate', array('name' => 'generate', 'class' => 'btn btn-danger')); ?> <?php echo Html::submitButton('Generate', array('name' => 'generate', 'class' => 'btn btn-success')); ?>
<?php endif; ?> <?php endif; ?>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment