1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-07 17:04:24 +03:00
ifhub.club/application/frontend/skin/developer/modals/modal.add_friend.tpl

26 lines
863 B
Smarty

{**
* Добавление в друзья
*
* @styles css/modals.css
*}
{extends 'components/modal/modal.tpl'}
{block name='modal_id'}modal-add-friend{/block}
{block name='modal_class'}js-modal-default{/block}
{block name='modal_title'}{$aLang.profile_add_friend}{/block}
{block name='modal_content'}
<form id="add_friend_form" onsubmit="return ls.user.addFriend(this,{$oUserProfile->getId()},'add');">
{include file='components/field/field.textarea.tpl'
sName = 'add_friend_text'
aRules = [ 'required' => true, 'rangelength' => '[2,200]' ]
iRows = 3
bNoMargin = true
sLabel = $aLang.user_friend_add_text_label}
</form>
{/block}
{block name='modal_footer_begin'}
<button type="submit" class="button button-primary" onclick="jQuery('#add_friend_form').submit()">{$aLang.user_friend_add_submit}</button>
{/block}