30 lines
1.5 KiB
HTML
30 lines
1.5 KiB
HTML
<form action="/page_edit/{$smarty.get.id}" method="post" enctype='multipart/form-data'>
|
|
|
|
<input type='text' name='title' class="form-control mt-3 mb-3" tabindex='1' value='{$page[0].title}' placeholder="Введите заголовок страницы">
|
|
|
|
<textarea tabindex='2' name='txt' id='editarea' style="height: 600px;">{$page[0].txt}</textarea>
|
|
|
|
<input type='text' name='description' class="form-control mt-3" tabindex='3' value='{$page[0].description}' placeholder="description">
|
|
|
|
<input type='text' name='keywords' class="form-control mt-3" tabindex='4' value='{$page[0].keywords}' placeholder="keywords">
|
|
|
|
<input type='text' name='d' class="form-control mt-3" tabindex='5' value='{if $page[0].d}{$page[0].d}{else}{$smarty.now|date_format:"%Y-%m-%d"}{/if}' placeholder="2017-12-31">
|
|
|
|
<input type='text' name='alias' class="form-control mt-3" tabindex='6' value='{$page[0].alias}' placeholder="ЧПУ/Алиас">
|
|
|
|
|
|
|
|
<b>Категория</b>
|
|
<select name="category" class="form-control mt-3">
|
|
<option value="0">Нет</option>
|
|
{section name=customer loop=$pages_category}
|
|
{if $pages_category[customer].id}
|
|
|
|
<option value="{$pages_category[customer].id}" {if $page[0].category==$pages_category[customer].id}selected{/if}>{$pages_category[customer].title}</option>
|
|
{/if}
|
|
{/section}
|
|
</select>
|
|
<br>
|
|
<input type='submit' value='Сохранить' tabindex='5' name="ok" class="btn btn-dark mt-3 mb-3">
|
|
</form>
|
|
{$editor_js} |