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 class="col-md-4">
<div class="table-responsive">
<table class="table">
<table class="table" id="fieldNameTable">
<thead>
<tr>
<th>Поле</th>
@ -51,71 +51,71 @@ use yii\widgets\ActiveForm;
<tbody>
<tr class="info">
<td>ФИО</td>
<td>${fio}</td>
<td class="table-cell">${fio}</td>
</tr>
<tr class="info">
<td>Паспорт</td>
<td>${passport}</td>
<td class="table-cell">${passport}</td>
</tr>
<tr class="info">
<td>Электронная почта</td>
<td>${email}</td>
<td class="table-cell">${email}</td>
</tr>
<tr class="info">
<td>Пол</td>
<td>${gender}</td>
<td class="table-cell">${gender}</td>
</tr>
<tr class="info">
<td>Резюме</td>
<td>${resume}</td>
<td class="table-cell">${resume}</td>
</tr>
<tr class="info">
<td>Зароботная плата</td>
<td>${salary}</td>
<td class="table-cell">${salary}</td>
</tr>
<tr class="info">
<td>Позиция</td>
<td>${position_id}</td>
<td class="table-cell">${position_id}</td>
</tr>
<tr class="info">
<td>Город</td>
<td>${city}</td>
<td class="table-cell">${city}</td>
</tr>
<tr class="info">
<td>Ссылка ВК</td>
<td>${link_vk}</td>
<td class="table-cell">${link_vk}</td>
</tr>
<tr class="info">
<td>Ссылка Телграм</td>
<td>${link_telegram}</td>
<td class="table-cell">${link_telegram}</td>
</tr>
<tr class="info">
<td>Резюме текст</td>
<td>${vc_text}</td>
<td class="table-cell">${vc_text}</td>
</tr>
<tr class="info">
<td>Уровень</td>
<td>${level}</td>
<td class="table-cell">${level}</td>
</tr>
<tr class="info">
<td>Резюме текст</td>
<td>${vc_text}</td>
<td class="table-cell">${vc_text}</td>
</tr>
<tr class="info">
<td>Резюме короткий текст</td>
<td>${vc_text_short}</td>
<td class="table-cell">${vc_text_short}</td>
</tr>
<tr class="info">
<td>Лет опыта</td>
<td>${years_of_exp}/td>
<td class="table-cell">${years_of_exp}/td>
</tr>
<tr class="info">
<td>Спецификация</td>
<td>${specification}</td>
<td class="table-cell">${specification}</td>
</tr>
<tr class="info">
<td>Навыки</td>
<td>${skills}</td>
<td class="table-cell">${skills}</td>
</tr>
</tbody>
</table>
@ -123,4 +123,22 @@ use yii\widgets\ActiveForm;
</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
$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) {
$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' => 'id-card', 'url' => ['/card/resume-template'], 'active' => \Yii::$app->controller->id == 'resume-template'];
$menuItems[] = ['label' => 'Шаблоны резюме', 'icon' => 'file', 'url' => ['/card/resume-template'], 'active' => \Yii::$app->controller->id == 'resume-template'];
$projectStatuses = \common\models\Status::getStatusesArray(\common\models\UseStatus::USE_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')
],
[
'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,
'visible' => Yii::$app->user->can('confidential_information')
],