mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-05 16:04:24 +03:00
29 lines
869 B
Smarty
29 lines
869 B
Smarty
{**
|
|
* Добавление в друзья
|
|
*
|
|
* @styles css/modals.css
|
|
*}
|
|
|
|
{extends 'components/modal/modal.tpl'}
|
|
|
|
{block 'modal_id'}modal-add-friend{/block}
|
|
{block 'modal_class'}js-modal-default{/block}
|
|
{block 'modal_title'}
|
|
{lang name='user.friends.form.title'}
|
|
{/block}
|
|
|
|
{block 'modal_content'}
|
|
{* TODO: Form validation (front-end / back-end) *}
|
|
<form id="add_friend_form" class="js-user-friend-form">
|
|
{include 'components/field/field.textarea.tpl'
|
|
sName = 'add_friend_text'
|
|
aRules = [ 'required' => true, 'rangelength' => '[2,200]' ]
|
|
iRows = 3
|
|
bNoMargin = true
|
|
sLabel = {lang name='user.friends.form.fields.text.label'}}
|
|
</form>
|
|
{/block}
|
|
|
|
{block 'modal_footer_begin'}
|
|
{include 'components/button/button.tpl' sMods='primary' sForm='#add_friend_form' sText={lang name='user.friends.form.fields.submit.text'}}
|
|
{/block} |