core/api/modules/page_edit/editor.html

42 lines
1.9 KiB
HTML
Raw Normal View History

2023-08-14 09:15:58 +05:00
<form action="{$action|default:"/page_edit/{$smarty.get.id}"}" method="post" enctype='multipart/form-data' id="page-editor">
2023-05-03 14:51:58 +05:00
{$actionBlog}
2022-12-17 18:15:09 +05:00
<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>
2023-08-14 09:15:58 +05:00
{if ($smarty.get.id)}<input type='hidden' name='act' tabindex='3' value='save'>
{else}<input type='hidden' name='act' tabindex='3' value='new'>
{/if}
2023-05-03 14:51:58 +05:00
{if ($smarty.get.mod=='page_edit')}
2022-12-17 18:15:09 +05:00
<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>
2023-05-03 14:51:58 +05:00
{/if}
2022-12-17 18:15:09 +05:00
<br>
2023-05-03 14:51:58 +05:00
{*if ($smarty.get.mod=='page_edit')*}
2022-12-17 18:15:09 +05:00
<input type='submit' value='Сохранить' tabindex='5' name="ok" class="btn btn-dark mt-3 mb-3">
2023-05-03 14:51:58 +05:00
{*/if*}
{*$btnSave*}
{$btnCancel}
2022-12-17 18:15:09 +05:00
</form>
2023-01-14 21:17:46 +05:00
{$editor_js}