40 lines
1.7 KiB
HTML
40 lines
1.7 KiB
HTML
<form action="{$action|default:"/page_edit/"}" method="post" enctype='multipart/form-data' id="page-editor">
|
|
{$actionBlog}
|
|
<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>
|
|
|
|
|
|
{if ($smarty.get.mod=='page_edit')}
|
|
|
|
<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>
|
|
|
|
{/if}
|
|
<br>
|
|
{*if ($smarty.get.mod=='page_edit')*}
|
|
<input type='submit' value='Сохранить' tabindex='5' name="ok" class="btn btn-dark mt-3 mb-3">
|
|
|
|
{*/if*}
|
|
{*$btnSave*}
|
|
{$btnCancel}
|
|
</form>
|
|
{$editor_js} |