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.
39 lines
783 B
39 lines
783 B
11 years ago
|
<?php
|
||
|
|
||
|
use yii\helpers\Html;
|
||
|
use yii\widgets\DetailView;
|
||
|
|
||
|
$timeFormatter = extension_loaded('intl') ? Yii::createObject(['class' => 'yii\i18n\Formatter']) : Yii::$app->formatter;
|
||
|
|
||
|
echo DetailView::widget([
|
||
|
'model' => $model,
|
||
|
'attributes' => [
|
||
|
'headers',
|
||
|
'from',
|
||
|
'to',
|
||
|
'charset',
|
||
|
[
|
||
|
'name' => 'time',
|
||
|
'value' => $timeFormatter->asDateTime($model['time'], 'short'),
|
||
|
],
|
||
|
'subject',
|
||
|
[
|
||
|
'name' => 'body',
|
||
|
'label' => 'Text body',
|
||
|
],
|
||
|
[
|
||
|
'name' => 'isSuccessful',
|
||
|
'label' => 'Successfully sent',
|
||
|
'value' => $model['isSuccessful'] ? 'Yes' : 'No'
|
||
|
],
|
||
|
'reply',
|
||
|
'bcc',
|
||
|
'cc',
|
||
|
[
|
||
|
'name' => 'file',
|
||
|
'format' => 'html',
|
||
|
'value' => Html::a('Download eml', ['download-mail', 'file' => $model['file']]),
|
||
|
],
|
||
|
],
|
||
|
]);
|