Skip to content

Commit b8debf5

Browse files
authored
Update view.php
1 parent 03a7331 commit b8debf5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/views/default/view.php

+9-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,15 @@
6161
echo DetailView::widget([
6262
'model' => $model,
6363
'attributes' => [
64-
'id',
64+
[
65+
'attribute' => 'id',
66+
'value' => Html::tag('span', $model->id, ['class' => 'label label-default', 'style' => 'color:#fff;background:' . $model->getColor()]),
67+
'format' => 'raw',
68+
],
69+
[
70+
'attribute' => 'color',
71+
'format' => 'raw',
72+
],
6573
[
6674
'attribute' => 'initial_status_id',
6775
'value' => $model->initial_status_id,

0 commit comments

Comments
 (0)