core/api/modules/page_edit/editor.html

30 lines
1.5 KiB
HTML
Raw Normal View History

2022-12-17 18:15:09 +05:00
<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>
2023-01-14 21:17:46 +05:00
<select name="category" class="form-control mt-3">
2022-12-17 18:15:09 +05:00
<option value="0">Нет</option>
2023-01-14 21:17:46 +05:00
{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>
2022-12-17 18:15:09 +05:00
{/if}
{/section}
</select>
<br>
<input type='submit' value='Сохранить' tabindex='5' name="ok" class="btn btn-dark mt-3 mb-3">
</form>
2023-01-14 21:17:46 +05:00
{$editor_js}