complete document service
This commit is contained in:
@ -1,12 +1,11 @@
|
||||
<?php
|
||||
|
||||
use asmoday74\ckeditor5\EditorClassic;
|
||||
//use backend\modules\card\models\ResumeTemplate;
|
||||
use common\helpers\StatusHelper;
|
||||
use yii\helpers\Html;
|
||||
use yii\helpers\Url;
|
||||
use yii\widgets\ActiveForm;
|
||||
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $model backend\modules\document\models\Document */
|
||||
|
||||
@ -19,9 +18,7 @@ $this->params['breadcrumbs'][] = 'Загрузить';
|
||||
<div class="form-group">
|
||||
<?= Html::a('Редактировать документ', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
|
||||
<?= Html::a('Просмотр документа', ['view', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
|
||||
</div>
|
||||
|
||||
|
||||
</div
|
||||
|
||||
<div class="resume-form">
|
||||
|
||||
@ -42,11 +39,10 @@ $this->params['breadcrumbs'][] = 'Загрузить';
|
||||
|
||||
<?php ActiveForm::end(); ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>
|
||||
<?= Html::a('Скачать pdf', ['download-pdf', 'id' => $model->id], ['class' => 'btn btn-success']) ?>
|
||||
<?= Html::a('Скачать docx', ['download-docx', 'id' => $model->id], ['class' => 'btn btn-success']) ?>
|
||||
</p>
|
||||
<div>
|
||||
<p>
|
||||
<?= Html::a('Скачать pdf', ['download-pdf', 'id' => $model->id], ['class' => 'btn btn-success']) ?>
|
||||
<?= Html::a('Скачать docx', ['download-docx', 'id' => $model->id], ['class' => 'btn btn-success']) ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use common\classes\Debug;
|
||||
use common\models\Document;
|
||||
use yii\helpers\ArrayHelper;
|
||||
use yii\helpers\Html;
|
||||
use yii\widgets\DetailView;
|
||||
@ -53,7 +55,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
'attribute' => 'body',
|
||||
'format' => 'raw',
|
||||
],
|
||||
// 'body:ntext',
|
||||
|
||||
'created_at',
|
||||
'updated_at',
|
||||
],
|
||||
|
Reference in New Issue
Block a user