Commit c3ce904a by Carsten Brandt

fixed detailview attributes

fixes #2765
parent 9bc18fe5
...@@ -13,16 +13,16 @@ echo DetailView::widget([ ...@@ -13,16 +13,16 @@ echo DetailView::widget([
'to', 'to',
'charset', 'charset',
[ [
'name' => 'time', 'attribute' => 'time',
'value' => $timeFormatter->asDateTime($model['time'], 'short'), 'value' => $timeFormatter->asDateTime($model['time'], 'short'),
], ],
'subject', 'subject',
[ [
'name' => 'body', 'attribute' => 'body',
'label' => 'Text body', 'label' => 'Text body',
], ],
[ [
'name' => 'isSuccessful', 'attribute' => 'isSuccessful',
'label' => 'Successfully sent', 'label' => 'Successfully sent',
'value' => $model['isSuccessful'] ? 'Yes' : 'No' 'value' => $model['isSuccessful'] ? 'Yes' : 'No'
], ],
...@@ -30,7 +30,7 @@ echo DetailView::widget([ ...@@ -30,7 +30,7 @@ echo DetailView::widget([
'bcc', 'bcc',
'cc', 'cc',
[ [
'name' => 'file', 'attribute' => 'file',
'format' => 'html', 'format' => 'html',
'value' => Html::a('Download eml', ['download-mail', 'file' => $model['file']]), 'value' => Html::a('Download eml', ['download-mail', 'file' => $model['file']]),
], ],
......
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