core/api/modules/page_all/new_cat.html

57 lines
2.8 KiB
HTML
Executable File

<input type="hidden" id="tmp" value="">
<input type="hidden" id="tmp2" value=""> {if $smarty.get.id}
<h2>Изменить категорию:</h2>
<button type="button" data-link="/page_cat/" class="btn btn-dark" title="Новая страница" style="float:left;height: 35px;">
Создать раздел</button> {else}
<h2></h2>
{/if}
<div class="clearfix"></div>
<form action="/page_all/" method="post" enctype='multipart/form-data' class="mt-3">
<div class="mb-3">
<label class="form-label">Название раздела</label>
<input type="text" name="title" class="form-control" value="{$pages_cat[0].title}">
<!-- div id="emailHelp" class="form-text">We'll never share your email with anyone else.</div -->
</div>
<div class="mb-3">
<label class="form-label">Вышестоящий раздел</label>
<select class="form-control" name="parent">
<option value="0">Нет</option>
{section name=customer loop=$list} {if $list[customer].id}
<option value="{$list[customer].id}" {if ($pages_cat[0].parent==$list[customer].id)} selected{/if}>{$list[customer].title}</option>
{/if} {/section}
</select>
</div>
<div class="mb-3 form-check">
<input type="checkbox" class="form-check-input" name="public" {if ($pages_cat[0].public==1)} checked {/if}>
<label class="form-check-label" for="exampleCheck1">Публиковать</label>
</div>
<div class="mb-3">
<label class="form-label">Описание</label>
<input type="text" name="description" class="form-control" value="{$pages_cat[0].description}">
<!-- div id="emailHelp" class="form-text">We'll never share your email with anyone else.</div -->
</div>
<div class="mb-3">
<label class="form-label">Ключевые слова</label>
<input type="text" name="keywords" class="form-control" value="{$pages_cat[0].keywords}">
<!-- div id="emailHelp" class="form-text">We'll never share your email with anyone else.</div -->
</div>
{if $pages_cat[0].img}
<div class="mb-3" id="div-img">
<img src="/img/pages_cat/{$pages_cat[0].img}.jpg" style="width: 200px;">
<button type="button" class="btn btn-danger" id="btn-open-modal-del-img">Удалить</button>
</div>
{/if}
<div class="mb-3">
<label class="form-label">Обложка раздела</label>
<input type="file" name="oblozhka" class="form-control">
<div class="form-text">Старайтесь выбирать картинки одинакового размера</div>
</div>
<button type="submit" class="btn btn-primary">Сохранить</button>
</form>