37 lines
1.2 KiB
HTML
Executable File
37 lines
1.2 KiB
HTML
Executable File
<form action="" method="post" enctype='multipart/form-data' id="page-editor">
|
|
{$actionBlog}
|
|
<input type='text' name='title' class="form-control mt-3 mb-3" tabindex='1' id="title" value='{$page.title}' placeholder="Введите заголовок страницы">
|
|
|
|
<textarea tabindex='2' name='txt' id='editarea' style="height: 600px;">{$page.txt}</textarea>
|
|
{if ($smarty.get.id)}<input type='hidden' name='act' tabindex='3' value='save'>
|
|
{else}<input type='hidden' name='act' tabindex='3' value='new'>
|
|
{/if}
|
|
|
|
{*if ($smarty.get.mod=='contenteditor')}
|
|
|
|
|
|
|
|
|
|
|
|
<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.category==$pages_category[customer].id}selected{/if}>{$pages_category[customer].title}</option>
|
|
{/if}
|
|
{/section}
|
|
</select>
|
|
|
|
{/if*}
|
|
|
|
<br>
|
|
|
|
|
|
<input type='submit' value='Сохранить' tabindex='5' name="ok" class="btn btn-dark mt-3 mb-3">
|
|
|
|
|
|
{$btnCancel}
|
|
</form>
|
|
{$editor_js} |