2022-11-03 17:46:36 +03:00
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
use asmoday74\ckeditor5\EditorClassic;
|
|
|
|
|
use common\helpers\StatusHelper;
|
|
|
|
|
use yii\helpers\Html;
|
|
|
|
|
use yii\widgets\ActiveForm;
|
|
|
|
|
|
|
|
|
|
/* @var $this yii\web\View */
|
|
|
|
|
/* @var $model backend\modules\card\models\ResumeTemplate */
|
|
|
|
|
/* @var $form yii\widgets\ActiveForm */
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-8">
|
|
|
|
|
<div class="resume-template-form">
|
|
|
|
|
|
|
|
|
|
<?php $form = ActiveForm::begin(); ?>
|
|
|
|
|
|
|
|
|
|
<?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
|
|
|
|
|
|
|
|
|
|
<?= $form->field($model, 'status')->dropDownList(
|
|
|
|
|
StatusHelper::statusList(),
|
|
|
|
|
[
|
|
|
|
|
'prompt' => 'Выберите'
|
|
|
|
|
]
|
|
|
|
|
) ?>
|
|
|
|
|
|
|
|
|
|
<?= $form->field($model, 'template_body')->widget(EditorClassic::className(), [
|
|
|
|
|
'clientOptions' => [
|
|
|
|
|
'language' => 'ru',
|
|
|
|
|
]
|
|
|
|
|
]); ?>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<?= Html::submitButton('Сохранить', ['class' => 'btn btn-success']) ?>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<?php ActiveForm::end(); ?>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
|
<div class="table-responsive">
|
2022-11-07 11:35:30 +03:00
|
|
|
|
<table class="table" id="fieldNameTable">
|
2022-11-03 17:46:36 +03:00
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Поле</th>
|
|
|
|
|
<th>Сигнатура поля</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr class="info">
|
2022-11-08 14:15:31 +03:00
|
|
|
|
<td class="table-cell">ФИО</td>
|
2022-11-07 11:35:30 +03:00
|
|
|
|
<td class="table-cell">${fio}</td>
|
2022-11-03 17:46:36 +03:00
|
|
|
|
</tr>
|
|
|
|
|
<tr class="info">
|
2022-11-08 14:15:31 +03:00
|
|
|
|
<td class="table-cell">Паспорт</td>
|
2022-11-07 11:35:30 +03:00
|
|
|
|
<td class="table-cell">${passport}</td>
|
2022-11-03 17:46:36 +03:00
|
|
|
|
</tr>
|
|
|
|
|
<tr class="info">
|
2022-11-08 14:15:31 +03:00
|
|
|
|
<td class="table-cell">Электронная почта</td>
|
2022-11-07 11:35:30 +03:00
|
|
|
|
<td class="table-cell">${email}</td>
|
2022-11-03 17:46:36 +03:00
|
|
|
|
</tr>
|
|
|
|
|
<tr class="info">
|
2022-11-08 14:15:31 +03:00
|
|
|
|
<td class="table-cell">Пол</td>
|
2022-11-07 11:35:30 +03:00
|
|
|
|
<td class="table-cell">${gender}</td>
|
2022-11-03 17:46:36 +03:00
|
|
|
|
</tr>
|
|
|
|
|
<tr class="info">
|
2022-11-08 14:15:31 +03:00
|
|
|
|
<td class="table-cell">Резюме</td>
|
2022-11-07 11:35:30 +03:00
|
|
|
|
<td class="table-cell">${resume}</td>
|
2022-11-03 17:46:36 +03:00
|
|
|
|
</tr>
|
|
|
|
|
<tr class="info">
|
2022-11-08 14:15:31 +03:00
|
|
|
|
<td class="table-cell">Зароботная плата</td>
|
2022-11-07 11:35:30 +03:00
|
|
|
|
<td class="table-cell">${salary}</td>
|
2022-11-03 17:46:36 +03:00
|
|
|
|
</tr>
|
|
|
|
|
<tr class="info">
|
2022-11-08 14:15:31 +03:00
|
|
|
|
<td class="table-cell">Позиция</td>
|
2022-11-07 11:35:30 +03:00
|
|
|
|
<td class="table-cell">${position_id}</td>
|
2022-11-03 17:46:36 +03:00
|
|
|
|
</tr>
|
|
|
|
|
<tr class="info">
|
2022-11-08 14:15:31 +03:00
|
|
|
|
<td class="table-cell">Город</td>
|
2022-11-07 11:35:30 +03:00
|
|
|
|
<td class="table-cell">${city}</td>
|
2022-11-03 17:46:36 +03:00
|
|
|
|
</tr>
|
|
|
|
|
<tr class="info">
|
2022-11-08 14:15:31 +03:00
|
|
|
|
<td class="table-cell">Ссылка ВК</td>
|
2022-11-07 11:35:30 +03:00
|
|
|
|
<td class="table-cell">${link_vk}</td>
|
2022-11-03 17:46:36 +03:00
|
|
|
|
</tr>
|
|
|
|
|
<tr class="info">
|
2022-11-08 14:15:31 +03:00
|
|
|
|
<td class="table-cell">Ссылка Телграм</td>
|
2022-11-07 11:35:30 +03:00
|
|
|
|
<td class="table-cell">${link_telegram}</td>
|
2022-11-03 17:46:36 +03:00
|
|
|
|
</tr>
|
|
|
|
|
<tr class="info">
|
2022-11-08 14:15:31 +03:00
|
|
|
|
<td class="table-cell">Резюме текст</td>
|
2022-11-07 11:35:30 +03:00
|
|
|
|
<td class="table-cell">${vc_text}</td>
|
2022-11-03 17:46:36 +03:00
|
|
|
|
</tr>
|
|
|
|
|
<tr class="info">
|
2022-11-08 14:15:31 +03:00
|
|
|
|
<td class="table-cell">Уровень</td>
|
2022-11-07 11:35:30 +03:00
|
|
|
|
<td class="table-cell">${level}</td>
|
2022-11-03 17:46:36 +03:00
|
|
|
|
</tr>
|
|
|
|
|
<tr class="info">
|
2022-11-08 14:15:31 +03:00
|
|
|
|
<td class="table-cell">Резюме текст</td>
|
2022-11-07 11:35:30 +03:00
|
|
|
|
<td class="table-cell">${vc_text}</td>
|
2022-11-03 17:46:36 +03:00
|
|
|
|
</tr>
|
|
|
|
|
<tr class="info">
|
2022-11-08 14:15:31 +03:00
|
|
|
|
<td class="table-cell">Резюме короткий текст</td>
|
2022-11-07 11:35:30 +03:00
|
|
|
|
<td class="table-cell">${vc_text_short}</td>
|
2022-11-03 17:46:36 +03:00
|
|
|
|
</tr>
|
|
|
|
|
<tr class="info">
|
2022-11-08 14:15:31 +03:00
|
|
|
|
<td class="table-cell">Лет опыта</td>
|
2022-11-07 17:52:12 +03:00
|
|
|
|
<td class="table-cell">${years_of_exp}</td>
|
2022-11-03 17:46:36 +03:00
|
|
|
|
</tr>
|
|
|
|
|
<tr class="info">
|
2022-11-08 14:15:31 +03:00
|
|
|
|
<td class="table-cell">Спецификация</td>
|
2022-11-07 11:35:30 +03:00
|
|
|
|
<td class="table-cell">${specification}</td>
|
2022-11-03 17:46:36 +03:00
|
|
|
|
</tr>
|
|
|
|
|
<tr class="info">
|
2022-11-08 14:15:31 +03:00
|
|
|
|
<td class="table-cell">Навыки</td>
|
2022-11-07 11:35:30 +03:00
|
|
|
|
<td class="table-cell">${skills}</td>
|
2022-11-03 17:46:36 +03:00
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
2022-11-08 14:15:31 +03:00
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
Нажмите на ячейку чтобы скопировать содержимое
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
2022-11-03 17:46:36 +03:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2022-11-08 14:15:31 +03:00
|
|
|
|
<script>
|
|
|
|
|
const popup = document.createElement('h4')
|
|
|
|
|
popup.textContent = 'Скопировано'
|
|
|
|
|
popup.style.cssText = `
|
|
|
|
|
background: #a6caf0;
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 0;
|
|
|
|
|
top: 0;
|
|
|
|
|
`
|
|
|
|
|
document.querySelectorAll('.table-cell').forEach(function (elm) {
|
|
|
|
|
elm.style.position = 'relative'
|
|
|
|
|
elm.addEventListener('click', 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)
|
|
|
|
|
elm.appendChild(popup)
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
elm.removeChild(popup)
|
|
|
|
|
}, 1000)
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
</script>
|
2022-11-07 11:35:30 +03:00
|
|
|
|
|
2022-11-03 17:46:36 +03:00
|
|
|
|
|