49 lines
1.9 KiB
HTML
49 lines
1.9 KiB
HTML
|
{include file=$header_admin h1="Категории страниц" title="Категории страниц"}
|
|||
|
<input type="hidden" id="tmp" value="">
|
|||
|
<input type="hidden" id="tmp2" value="">
|
|||
|
<h2>Добавить категорию:</h2>
|
|||
|
<form action="" method="post">
|
|||
|
<div class="input-group">
|
|||
|
<input type="text" name="txt" class="form-control">
|
|||
|
<div class="input-group-prepend">
|
|||
|
<input type="submit" name="ok" value="Добавить" class="btn btn-dark">
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</form>
|
|||
|
<table class="table">
|
|||
|
{section name=customer loop=$list}
|
|||
|
{if $list[customer].id}
|
|||
|
<tr id="{$list[customer].id}">
|
|||
|
<td>
|
|||
|
<a href="/cat/{$list[customer].id}">{$list[customer].txt}</a>
|
|||
|
</td>
|
|||
|
<td style="width:20px;">
|
|||
|
<a href="/edit_cat/{$list[customer].id}" class="edit_cat"><i class="far fa-edit"></i></a>
|
|||
|
</td>
|
|||
|
<td style="width:20px;">
|
|||
|
<a href="{$list[customer].id}" class="del_cat" title="{$list[customer].txt}" data-toggle="modal" data-target="#exampleModal"><i class="fas fa-trash"></i></a>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
{/if}
|
|||
|
{/section}
|
|||
|
</table>
|
|||
|
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
|||
|
<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 id="modal_txt">Modal body text goes here.</p>
|
|||
|
</div>
|
|||
|
<div class="modal-footer">
|
|||
|
<button type="button" class="btn btn-dark" id="del">Удалить</button>
|
|||
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Отмена</button>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|