|
|
|
@ -2,9 +2,11 @@
|
|
|
|
|
|
|
|
|
|
use yii\helpers\Html; |
|
|
|
|
use yii\widgets\DetailView; |
|
|
|
|
use common\modules\forms\entities\Form; |
|
|
|
|
use common\modules\forms\helpers\FormHelper; |
|
|
|
|
|
|
|
|
|
/* @var $this yii\web\View */ |
|
|
|
|
/* @var $form \common\modules\forms\entities\Form */ |
|
|
|
|
/* @var $form Form */ |
|
|
|
|
|
|
|
|
|
$this->title = $form->name; |
|
|
|
|
$this->params['breadcrumbs'][] = ['label' => Yii::t('form', 'Forms'), 'url' => ['index']]; |
|
|
|
@ -39,7 +41,13 @@ $this->params['breadcrumbs'][] = $this->title;
|
|
|
|
|
'from', |
|
|
|
|
'reply', |
|
|
|
|
'return', |
|
|
|
|
'status', |
|
|
|
|
[ |
|
|
|
|
'attribute' => 'status', |
|
|
|
|
'format' => 'raw', |
|
|
|
|
'value' => function(Form $form) { |
|
|
|
|
return FormHelper::statusLabel($form->status); |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
'captcha', |
|
|
|
|
'complete_page_id' |
|
|
|
|
], |
|
|
|
@ -48,7 +56,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="box"> |
|
|
|
|
<div class="box-header with-border"><?= Yii::t('page', 'Complete Message') ?></div>
|
|
|
|
|
<div class="box-header with-border"><?= Yii::t('form', 'Complete Message') ?></div>
|
|
|
|
|
<div class="box-body"> |
|
|
|
|
<?= Yii::$app->formatter->asHtml($form->complete_text, [ |
|
|
|
|
'Attr.AllowedRel' => array('nofollow'), |
|
|
|
|