virt2/api/mod/jeditvakancy.html

90 lines
4.4 KiB
HTML
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{include file=$header title='Редактирование вакансии' h1="Редактирование"}
<div class='row'>
<div class='col-lg-3 col-md-3 col-sm-12 col-xs-12' style='border:0px solid gray;'>
{include file=$mnulk}
</div>
<div class='col-lg-9 col-md-9 col-sm-12 col-xs-12' style='border:0px solid gray;'>
<a class="btn btn-primary" href="/jmyvakans/" role="button">Назад в список</a>
<a class="btn btn-primary" href="/jmyvakans/" id='del_vak' role="button">Удалить</a>
<a class="btn btn-primary" href="/j_show_vakans/{$smarty.get.id}" role="button">Просмотр</a>
<br><br>
<form method="post" action='/act/jeditvakancy' id="jeditorg_form" enctype='multipart/form-data'>
<select name="cat" class="input-text" id='cat'>
{section name=customer loop=$cat}
{if $cat[customer].id}
<option value="{$cat[customer].id}" {if ($bd[0].cat==$cat[customer].id)} selected{/if}>{$cat[customer].cat}</option>
{/if}
{/section}
</select>
<br><br>
<select name="prof" class="input-text" id='prof'>
{section name=customer loop=$prof}
{if $prof[customer].id}
<option value="{$prof[customer].id}" data-chained="{$prof[customer].cat_id}" {if ($bd[0].prof==$prof[customer].id)} selected{/if}>{$prof[customer].prof}</option>
{/if}
{/section}
</select>
<br><br>
<input type='hidden' name='act' value='save'>
<input type='hidden' name='id' id='tmp' value='{$smarty.get.id}'>
<input type='text' name='tel' class="input-text" value='{$bd[0].tel}' placeholder="Номер телефона">
<br><br>
<input type='text' name='gorod' class="input-text" value='{$bd[0].gorod}'>
<label for="nameorg">Требования</label>
<textarea class="input-text" name='treb'>{$bd[0].treb}</textarea>
<label for="grafik">Желаемый график работы</label>
<select name="grafik" class="input-text" id='grafik'>
<option value="">Без разницы</option>
{section name=customer loop=$grafik}
{if $grafik[customer].id}
<option value="{$grafik[customer].id}" {if ($grafik[customer].id==$bd[0].grafik)} selected{/if}>{$grafik[customer].grafik}</option>
{/if}
{/section}
</select>
<label for="nameorg">Условия работы</label>
<textarea class="input-text" name='usl'>{$bd[0].usl}</textarea>
<label for="nameorg">Зарплата (от .... )</label>
<input type='text' name='zp' class="input-text" value='{$bd[0].zp}'>
<label for="nameorg">Срок</label>
<input type='text' name='srok' id="srok" class="input-text" value='{$bd[0].srok}'>
<br><br>
<div class="form-group form-check">
<input type="checkbox" class="form-check-input" id="exampleCheck1" name='public' {if ($bd[0].public=='on')}checked="checked"{/if})>
<label class="form-check-label" for="exampleCheck1" >Публиковать?</label>
</div>
<input class="button" type="submit" value="Сохранить" name="ok">
<div class="alert alert-success hidden" role="alert" id="res_msg res_msg_error">
Вакансия успешно изменена
</div>
{*<div class="alert alert-danger hidden" role="alert" id="res_msg_error">
При сохранении вакансии произошла ошибка, скорее всего ваши действия должны были привести к непредсказуемому результату
</div>
разобраться какого хрена тут выходит ошибка
*}
</form>
</div>
</div>
<div class="modal" tabindex="-1" role="dialog" id="exampleModal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Удалить вакансию?</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>Эта вакансия будет удалена</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" id="del">Удалить</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Отмена</button>
</div>
</div>
</div>
</div>
{include file=$footer plugins='
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="/api/jquery/plugins/jqueryui/datepicker-ru.js"></script>
'}