49 lines
2.8 KiB
HTML
Executable File
49 lines
2.8 KiB
HTML
Executable File
{*
|
|
Модальное окно создания категории
|
|
*}
|
|
|
|
<div class="modal fade" id="modal_new_cat" tabindex="-1" role="dialog" aria-hidden="true">
|
|
<div class="modal-dialog modal-dialog-centered modal-xl" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-body">
|
|
<!-- -->
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col text-right">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true"> <i class="fa fa-times"></i></span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- -->
|
|
<!-- -->
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<h3>Новая категория</h3>
|
|
<form id="formNewCategory" action="/act/a_tovar_cat">
|
|
<input class="hidden" name="act" value="new_category">
|
|
<input class="form-control mb-2" placeholder="Наименование" name="title">
|
|
<p>Вышестоящая:</p>
|
|
<select class="form-control mt-2 mb-2" name="category" id="category">
|
|
<option value="0">Нет</option>
|
|
{section name=customer loop=$catList} {if $catList[customer].id}
|
|
<option value="{$catList[customer].id}" {if ($smarty.get.id==$catList[customer].id)} selected{/if}>{$catList[customer].title}</option>
|
|
{/if} {/section}
|
|
</select>
|
|
<input type="submit" class="btn btn-dark mb-2" id="btnAddOrg" data-id="" name="createOrg" value="Создать">
|
|
<div class="alert alert-light hidden" role="alert" id="resultAddOrg">
|
|
<p>Готово! Обновите страницу =)</p>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |