1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 01:14:24 +03:00
ifhub.club/application/frontend/skin/developer/comments/comment.form.tpl
2014-02-17 15:26:20 +07:00

29 lines
1.3 KiB
Smarty

{**
* Форма комментирования
*
* @param integer $iTargetId
* @param string $sTargetType
*
* @styles css/comments.css
*}
{* Подключение редактора *}
{include 'forms/editor.init.tpl' sEditorType='comment' sMediaTargetType='comment' }
{* Форма *}
<form method="post" class="comment-form js-comment-form" enctype="multipart/form-data" data-target-id="{$iTargetId}" data-target-type="{$sTargetType}">
{hook run='form_add_comment_begin'}
{* Текст комментария *}
{include 'forms/fields/form.field.textarea.tpl' sFieldName='comment_text' sFieldId='form_comment_text' sFieldClasses='width-full js-editor'}
{hook run='form_add_comment_end'}
{* Скрытые поля *}
{include 'forms/fields/form.field.hidden.tpl' sFieldName='reply' sFieldValue='0' sFieldId='form_comment_reply'}
{include 'forms/fields/form.field.hidden.tpl' sFieldName='cmt_target_id' sFieldValue=$iTargetId}
{* Кнопки *}
{include 'forms/fields/form.field.button.tpl' sFieldName='submit_comment' sFieldText=$aLang.common.add sFieldStyle='primary' sFieldClasses='js-comment-form-submit'}
{include 'forms/fields/form.field.button.tpl' sFieldText=$aLang.common.preview_text sFieldType='button' sFieldClasses='js-comment-form-preview'}
</form>