mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 17:34:26 +03:00
22 lines
915 B
Smarty
22 lines
915 B
Smarty
{**
|
|
* Стена / Форма добавления записи
|
|
*
|
|
* @param integer $iWallFormId ID родительского поста
|
|
* @param boolean $bWallFormDisplay Отображать форму или нет
|
|
* @param string $sWallFormPlaceholder Плейсхолдер
|
|
*}
|
|
|
|
<form class="wall-form js-wall-form {$sWallFormClasses}" data-id="{$iWallFormId|default:0}" {if ! $bWallFormDisplay|default:true}style="display: none"{/if}>
|
|
{* Текст *}
|
|
{include 'components/field/field.textarea.tpl'
|
|
sPlaceholder = "{if $sWallFormPlaceholder}{$sWallFormPlaceholder}{else}{$aLang.wall_add_title}{/if}"
|
|
sInputClasses = 'width-full js-wall-form-text'}
|
|
|
|
{* Подвал формы *}
|
|
<footer class="wall-form-footer">
|
|
{include 'components/button/button.tpl'
|
|
sMods = 'primary'
|
|
sClasses = 'js-wall-form-submit'
|
|
sText = $aLang.wall_add_submit}
|
|
</footer>
|
|
</form> |