add get resume methods as a file

This commit is contained in:
iIronside
2022-10-11 10:39:22 +03:00
parent c4f6ce195e
commit 5d8c0fb2ff
4 changed files with 503 additions and 128 deletions

View File

@ -1,7 +1,8 @@
<?php
use yii\grid\GridView;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\grid\GridView;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
@ -100,6 +101,11 @@ $this->params['breadcrumbs'][] = $this->title;
],
]) ?>
<p>
<?= Html::a('Resume pdf', ['download-resume', 'id' => $model->id, 'pdf' => true], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Resume docx', ['download-resume', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
</p>
<h2>Навыки</h2>
<?php foreach ($skills as $skill) : ?>
<span class="btn btn-default btn-sm"><?= $skill['skill']->name; ?></span>