mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 01:14:24 +03:00
23 lines
964 B
Smarty
23 lines
964 B
Smarty
{**
|
|
* Стена / Форма добавления записи
|
|
*
|
|
* @param integer $id ID родительского поста
|
|
* @param boolean $display Отображать форму или нет
|
|
* @param string $placeholder Плейсхолдер
|
|
*}
|
|
|
|
<form class="wall-form js-wall-form {$smarty.local.classes}" data-id="{$smarty.local.id|default:0}" {if ! $smarty.local.display|default:true}style="display: none"{/if}>
|
|
{* Текст *}
|
|
{include 'components/field/field.textarea.tpl'
|
|
placeholder = "{$smarty.local.placeholder|default:$aLang.wall.form.fields.text.placeholder}"
|
|
inputClasses = 'width-full js-wall-form-text'}
|
|
|
|
{* Подвал формы *}
|
|
<footer class="wall-form-footer">
|
|
{include 'components/button/button.tpl'
|
|
type = 'submit'
|
|
mods = 'primary'
|
|
classes = 'js-wall-form-submit'
|
|
text = $aLang.common.add}
|
|
</footer>
|
|
</form> |