Commit 49d9361f authored by Tobias Munk's avatar Tobias Munk

fixed relation icon

parent 37665559
...@@ -136,7 +136,7 @@ echo "?>\n" ...@@ -136,7 +136,7 @@ echo "?>\n"
// relation dropdown links // relation dropdown links
$iconType = ($relation->multiple) ? 'arrow-right' : 'arrow-left'; $iconType = ($relation->multiple) ? 'arrow-right' : 'arrow-left';
if ($generator->isPivotRelation($relation)) { if ($generator->isPivotRelation($relation)) {
$iconType = 'random'; $iconType = 'random text-muted';
} }
$controller = $generator->pathPrefix.Inflector::camel2id( $controller = $generator->pathPrefix.Inflector::camel2id(
StringHelper::basename($relation->modelClass), StringHelper::basename($relation->modelClass),
...@@ -148,7 +148,7 @@ echo "?>\n" ...@@ -148,7 +148,7 @@ echo "?>\n"
$items .= <<<PHP $items .= <<<PHP
[ [
'url' => ['{$route}'], 'url' => ['{$route}'],
'label' => '<i class="glyphicon glyphicon-arrow-right">&nbsp;' . Yii::t('$generator->modelMessageCategory', '$label') . '</i>', 'label' => '<i class="glyphicon glyphicon-{$iconType}">&nbsp;' . Yii::t('$generator->modelMessageCategory', '$label') . '</i>',
], ],
PHP; PHP;
......
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