2014-07-07 13:50:14 +03:00
|
|
|
{**
|
|
|
|
* Стена / Форма добавления записи
|
|
|
|
*
|
|
|
|
* @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}>
|
2014-11-09 16:19:58 +02:00
|
|
|
{* Текст *}
|
2015-01-03 10:19:49 +02:00
|
|
|
{component 'field' template='textarea'
|
2014-11-09 16:19:58 +02:00
|
|
|
placeholder = "{$smarty.local.placeholder|default:$aLang.wall.form.fields.text.placeholder}"
|
|
|
|
inputClasses = 'width-full js-wall-form-text'}
|
2014-07-07 13:50:14 +03:00
|
|
|
|
2014-11-09 16:19:58 +02:00
|
|
|
{* Подвал формы *}
|
|
|
|
<footer class="wall-form-footer">
|
2015-01-03 10:19:49 +02:00
|
|
|
{component 'button'
|
2014-11-09 16:19:58 +02:00
|
|
|
type = 'submit'
|
|
|
|
mods = 'primary'
|
|
|
|
classes = 'js-wall-form-submit'
|
|
|
|
text = $aLang.common.add}
|
|
|
|
</footer>
|
2014-07-07 13:50:14 +03:00
|
|
|
</form>
|