core/api/modules/page_edit/editor.html

35 lines
1.9 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="ЧПУ/Алиас">
<input type='text' name='rdir' class="form-control mt-3" tabindex='6' value='{$page[0].rdir}' placeholder="301-й редирект на новую страницу">
<b>Публиковать?</b>
<select name="public" class="form-control mt-3">
<option value="0">Нет</option>
<option value="1" {if $page[0].public==1}selected{/if}>Да</option>
</select>
<b>Категория</b>
<select name="parent" class="form-control mt-3">
<option value="0">Нет</option>
{section name=customer loop=$list}
{if $list[customer].id}{assign var=json value=$list[customer].json}
<option value="{$list[customer].id}" {if $page[0].cat==$list[customer].id}selected{/if}>{$json.title}</option>
{/if}
{/section}
</select>
<br>
<input type='submit' value='Сохранить' tabindex='5' name="ok" class="btn btn-dark mt-3 mb-3">
</form>
{$editor}