1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-03 06:55:03 +03:00
ifhub.club/application/frontend/components/wall/wall.form.tpl
2016-01-19 09:34:44 +07:00

25 lines
967 B
Smarty

{**
* Стена / Форма добавления записи
*
* @param integer $id ID родительского поста
* @param boolean $display Отображать форму или нет
* @param string $placeholder Плейсхолдер
*}
{component_define_params params=[ 'classes', 'id', 'display', 'placeholder' ]}
<form class="wall-form js-wall-form {$classes}" data-id="{$id|default:0}" {if ! $display|default:true}style="display: none"{/if}>
{* Текст *}
{component 'field' template='textarea'
placeholder = "{$placeholder|default:$aLang.wall.form.fields.text.placeholder}"
inputClasses = 'ls-width-full js-wall-form-text'}
{* Подвал формы *}
<footer class="wall-form-footer">
{component 'button'
type = 'submit'
mods = 'primary'
classes = 'js-wall-form-submit'
text = $aLang.common.add}
</footer>
</form>