Skip to content

Commit

Permalink
Update view.php
Browse files Browse the repository at this point in the history
  • Loading branch information
cornernote authored Jun 9, 2017
1 parent 03a7331 commit b8debf5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/views/default/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,15 @@
echo DetailView::widget([
'model' => $model,
'attributes' => [
'id',
[
'attribute' => 'id',
'value' => Html::tag('span', $model->id, ['class' => 'label label-default', 'style' => 'color:#fff;background:' . $model->getColor()]),
'format' => 'raw',
],
[
'attribute' => 'color',
'format' => 'raw',
],
[
'attribute' => 'initial_status_id',
'value' => $model->initial_status_id,
Expand Down

0 comments on commit b8debf5

Please sign in to comment.