Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
eacfe0d0
Commit
eacfe0d0
authored
Oct 17, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #993 from lucianobaraglia/master
More on GII buttons [skip ci]
parents
f273e054
3e451455
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
_form.php
framework/yii/gii/generators/crud/templates/views/_form.php
+1
-1
view.php
framework/yii/gii/views/default/view.php
+2
-2
No files found.
framework/yii/gii/generators/crud/templates/views/_form.php
View file @
eacfe0d0
...
...
@@ -36,7 +36,7 @@ use yii\widgets\ActiveForm;
echo
"
\t\t
<?php echo "
.
$generator
->
generateActiveField
(
$attribute
)
.
" ?>
\n\n
"
;
}
?>
<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>
<?php
echo
'<?php'
;
?>
ActiveForm::end(); ?>
...
...
framework/yii/gii/views/default/view.php
View file @
eacfe0d0
...
...
@@ -45,10 +45,10 @@ foreach ($generator->templates as $name => $path) {
Please select which set of the templates should be used to generated the code.
'
);
?>
<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
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
;
?>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment