add some fixes at resume template

This commit is contained in:
iIronside 2022-11-07 11:35:30 +03:00
parent 5ce34fe605
commit 15ddacf39f
2 changed files with 40 additions and 23 deletions

View File

@ -41,7 +41,7 @@ use yii\widgets\ActiveForm;
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<div class="table-responsive"> <div class="table-responsive">
<table class="table"> <table class="table" id="fieldNameTable">
<thead> <thead>
<tr> <tr>
<th>Поле</th> <th>Поле</th>
@ -51,71 +51,71 @@ use yii\widgets\ActiveForm;
<tbody> <tbody>
<tr class="info"> <tr class="info">
<td>ФИО</td> <td>ФИО</td>
<td>${fio}</td> <td class="table-cell">${fio}</td>
</tr> </tr>
<tr class="info"> <tr class="info">
<td>Паспорт</td> <td>Паспорт</td>
<td>${passport}</td> <td class="table-cell">${passport}</td>
</tr> </tr>
<tr class="info"> <tr class="info">
<td>Электронная почта</td> <td>Электронная почта</td>
<td>${email}</td> <td class="table-cell">${email}</td>
</tr> </tr>
<tr class="info"> <tr class="info">
<td>Пол</td> <td>Пол</td>
<td>${gender}</td> <td class="table-cell">${gender}</td>
</tr> </tr>
<tr class="info"> <tr class="info">
<td>Резюме</td> <td>Резюме</td>
<td>${resume}</td> <td class="table-cell">${resume}</td>
</tr> </tr>
<tr class="info"> <tr class="info">
<td>Зароботная плата</td> <td>Зароботная плата</td>
<td>${salary}</td> <td class="table-cell">${salary}</td>
</tr> </tr>
<tr class="info"> <tr class="info">
<td>Позиция</td> <td>Позиция</td>
<td>${position_id}</td> <td class="table-cell">${position_id}</td>
</tr> </tr>
<tr class="info"> <tr class="info">
<td>Город</td> <td>Город</td>
<td>${city}</td> <td class="table-cell">${city}</td>
</tr> </tr>
<tr class="info"> <tr class="info">
<td>Ссылка ВК</td> <td>Ссылка ВК</td>
<td>${link_vk}</td> <td class="table-cell">${link_vk}</td>
</tr> </tr>
<tr class="info"> <tr class="info">
<td>Ссылка Телграм</td> <td>Ссылка Телграм</td>
<td>${link_telegram}</td> <td class="table-cell">${link_telegram}</td>
</tr> </tr>
<tr class="info"> <tr class="info">
<td>Резюме текст</td> <td>Резюме текст</td>
<td>${vc_text}</td> <td class="table-cell">${vc_text}</td>
</tr> </tr>
<tr class="info"> <tr class="info">
<td>Уровень</td> <td>Уровень</td>
<td>${level}</td> <td class="table-cell">${level}</td>
</tr> </tr>
<tr class="info"> <tr class="info">
<td>Резюме текст</td> <td>Резюме текст</td>
<td>${vc_text}</td> <td class="table-cell">${vc_text}</td>
</tr> </tr>
<tr class="info"> <tr class="info">
<td>Резюме короткий текст</td> <td>Резюме короткий текст</td>
<td>${vc_text_short}</td> <td class="table-cell">${vc_text_short}</td>
</tr> </tr>
<tr class="info"> <tr class="info">
<td>Лет опыта</td> <td>Лет опыта</td>
<td>${years_of_exp}/td> <td class="table-cell">${years_of_exp}/td>
</tr> </tr>
<tr class="info"> <tr class="info">
<td>Спецификация</td> <td>Спецификация</td>
<td>${specification}</td> <td class="table-cell">${specification}</td>
</tr> </tr>
<tr class="info"> <tr class="info">
<td>Навыки</td> <td>Навыки</td>
<td>${skills}</td> <td class="table-cell">${skills}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@ -123,4 +123,22 @@ use yii\widgets\ActiveForm;
</div> </div>
</div> </div>
<!--<script>-->
<!-- document.querySelectorAll(".table-cell").forEach(function(elm){-->
<!-- elm.addEventListener("mouseover", function(e){-->
<!-- e.target.style.backgroundColor = '#76d7c4';-->
<!-- var copyText = e.target.textContent;-->
<!-- const el = document.createElement('textarea');-->
<!-- el.value = copyText;-->
<!-- document.body.appendChild(el);-->
<!-- el.select();-->
<!-- document.execCommand('copy');-->
<!-- document.body.removeChild(el);-->
<!---->
<!-- /* Alert the copied text */-->
<!-- alert("Copied the text: " + el.value);-->
<!-- });-->
<!-- })-->
<!--</script>-->

View File

@ -3,12 +3,11 @@
<?php <?php
$userStatuses = \common\models\Status::getStatusesArray(\common\models\UseStatus::USE_PROFILE); $userStatuses = \common\models\Status::getStatusesArray(\common\models\UseStatus::USE_PROFILE);
$menuItems = [['label' => 'Все', 'icon' => 'id-card', 'url' => ['/card/user-card']]]; $menuItems = [['label' => 'Все', 'icon' => 'id-card', 'url' => ['/card/user-card'], 'active' => \Yii::$app->controller->id == 'user-card',]];
foreach ($userStatuses as $key => $status) { foreach ($userStatuses as $key => $status) {
$menuItems[] = ['label' => $status, 'icon' => 'id-card', 'url' => ['/card/user-card?UserCardSearch[status]=' . $key]]; $menuItems[] = ['label' => $status, 'icon' => 'id-card', 'url' => ['/card/user-card?UserCardSearch[status]=' . $key], 'active' => \Yii::$app->controller->id == 'user-card',];
} }
$menuItems[] = ['label' => 'Шаблоны резюме', 'icon' => 'file', 'url' => ['/card/resume-template'], 'active' => \Yii::$app->controller->id == 'resume-template'];
$menuItems[] = ['label' => 'Шаблоны резюме', 'icon' => 'id-card', 'url' => ['/card/resume-template'], 'active' => \Yii::$app->controller->id == 'resume-template'];
$projectStatuses = \common\models\Status::getStatusesArray(\common\models\UseStatus::USE_PROJECT); $projectStatuses = \common\models\Status::getStatusesArray(\common\models\UseStatus::USE_PROJECT);
$projectItems = [['label' => 'Все', 'icon' => 'cubes', 'url' => ['/project/project'], 'active' => \Yii::$app->controller->id == 'project']]; $projectItems = [['label' => 'Все', 'icon' => 'cubes', 'url' => ['/project/project'], 'active' => \Yii::$app->controller->id == 'project']];
@ -33,7 +32,7 @@
'visible' => Yii::$app->user->can('confidential_information') 'visible' => Yii::$app->user->can('confidential_information')
], ],
[ [
'label' => 'Профили', 'icon' => 'address-book-o', 'url' => '#', 'active' => \Yii::$app->controller->id == 'user-card', 'label' => 'Профили', 'icon' => 'address-book-o', 'url' => '#', //'active' => \Yii::$app->controller->id == 'user-card',
'items' => $menuItems, 'items' => $menuItems,
'visible' => Yii::$app->user->can('confidential_information') 'visible' => Yii::$app->user->can('confidential_information')
], ],