2014-02-06 11:35:45 +02:00
|
|
|
|
{**
|
|
|
|
|
* Модальное с меню "Создать"
|
|
|
|
|
*
|
|
|
|
|
* @styles css/modals.css
|
|
|
|
|
*}
|
|
|
|
|
|
2014-04-28 13:34:54 +03:00
|
|
|
|
{extends 'components/modal/modal.tpl'}
|
2014-02-06 11:35:45 +02:00
|
|
|
|
|
|
|
|
|
{block name='modal_id'}modal-users-select{/block}
|
|
|
|
|
{block name='modal_class'}modal-users-select js-modal-default{/block}
|
|
|
|
|
{block name='modal_title'}{$aLang.block_friends}{/block}
|
|
|
|
|
|
|
|
|
|
{block name='modal_content'}
|
|
|
|
|
{* Экшнбар *}
|
|
|
|
|
{if $aUserList && $bSelectable}
|
2014-04-08 14:43:35 +03:00
|
|
|
|
{include 'components/actionbar/actionbar.item.select.tpl' sItemSelector='.js-user-list-select .js-user-list-small-item' assign=sUsersSelect}
|
|
|
|
|
{include 'components/actionbar/actionbar.tpl' aItems=[
|
2014-04-03 10:40:55 +03:00
|
|
|
|
[ 'html' => $sUsersSelect ]
|
2014-02-06 11:35:45 +02:00
|
|
|
|
]}
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
{* Список *}
|
2014-04-28 13:34:54 +03:00
|
|
|
|
{include 'components/user_list_small/user_list_small.tpl' aUserList=$aUserList bUserListSmallSelectable=$bSelectable bUserListSmallShowEmpty=true sUserListSmallClasses='js-user-list-select'}
|
2014-02-06 11:35:45 +02:00
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
|
|
{block name='modal_footer_begin'}
|
2014-02-12 10:54:18 +02:00
|
|
|
|
{if $aUserList && $bSelectable}
|
2014-05-10 18:45:14 +03:00
|
|
|
|
{include 'components/button/button.tpl'
|
|
|
|
|
sText = $aLang.common.add
|
2014-05-15 19:45:14 +03:00
|
|
|
|
sMods = 'primary'
|
2014-05-10 18:45:14 +03:00
|
|
|
|
sClasses = 'js-user-list-select-add'
|
|
|
|
|
sAttributes = "data-target=\"{$sTarget}\""}
|
2014-02-12 10:54:18 +02:00
|
|
|
|
{/if}
|
2014-02-06 11:35:45 +02:00
|
|
|
|
{/block}
|