You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?php
|
|
|
|
/* @var $model array */
|
|
|
|
|
|
|
|
use yii\helpers\Html;
|
|
|
|
use yii\widgets\DetailView;
|
|
|
|
|
|
|
|
echo DetailView::widget([
|
|
|
|
'model' => $model,
|
|
|
|
'attributes' => [
|
|
|
|
'headers',
|
|
|
|
'from',
|
|
|
|
'to',
|
|
|
|
'charset',
|
|
|
|
[
|
|
|
|
'attribute' => 'time',
|
|
|
|
'format' => 'datetime',
|
|
|
|
],
|
|
|
|
'subject',
|
|
|
|
[
|
|
|
|
'attribute' => 'body',
|
|
|
|
'label' => 'Text body',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'attribute' => 'isSuccessful',
|
|
|
|
'label' => 'Successfully sent',
|
|
|
|
'value' => $model['isSuccessful'] ? 'Yes' : 'No'
|
|
|
|
],
|
|
|
|
'reply',
|
|
|
|
'bcc',
|
|
|
|
'cc',
|
|
|
|
[
|
|
|
|
'attribute' => 'file',
|
|
|
|
'format' => 'html',
|
|
|
|
'value' => Html::a('Download eml', ['download-mail', 'file' => $model['file']]),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
]);
|