Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yii2-giiant
Project
Project
Details
Activity
Releases
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dmstr
yii2-giiant
Commits
88e2a21c
Commit
88e2a21c
authored
Oct 14, 2016
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added custom icons
parent
cc6ea46c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
index.php
src/generators/crud/default/views/index.php
+10
-0
update.php
src/generators/crud/default/views/update.php
+1
-1
No files found.
src/generators/crud/default/views/index.php
View file @
88e2a21c
...
...
@@ -201,6 +201,16 @@ PHP;
[
'class' => '{$generator->actionButtonClass}',
'template' => \$actionColumnTemplateString,
'buttons' => [
'view' => function (\$url, \$model, \$key) {
\$options = [
'title' => Yii::t('yii', 'View'),
'aria-label' => Yii::t('yii', 'View'),
'data-pjax' => '0',
];
return Html::a('<span class="glyphicon glyphicon-file"></span>', \$url, \$options);
}
],
'urlCreator' => function(\$action, \$model, \$key, \$index) {
// using the column name as key, not mapping to 'id' like the standard generator
\$params = is_array(\$key) ? \$key : [\$model->primaryKey()[0] => (string) \$key];
...
...
src/generators/crud/default/views/update.php
View file @
88e2a21c
...
...
@@ -43,7 +43,7 @@ $this->params['breadcrumbs'][] = <?= $generator->generateString('Edit') ?>;
</h1>
<div
class=
"crud-navigation"
>
<?=
'<?= '
?>
Html::a('
<span
class=
"glyphicon glyphicon-
eye-open
"
></span>
' .
<?=
$generator
->
generateString
(
<?=
'<?= '
?>
Html::a('
<span
class=
"glyphicon glyphicon-
file
"
></span>
' .
<?=
$generator
->
generateString
(
'View'
)
?>
, ['view',
<?=
$urlParams
?>
], ['class' => 'btn btn-default']) ?>
</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