1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-05 16:04:24 +03:00
ifhub.club/application/frontend/components/user/user-field-choose.tpl
2015-08-17 23:15:41 +07:00

32 lines
1.1 KiB
Smarty
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{**
* Выбор пользователей
*
* @param string $lang_choose
*}
{$component = 'user-field-choose'}
{* Генерируем копии локальных переменных, *}
{* чтобы их можно было изменять в дочерних шаблонах *}
{foreach [ 'name', 'label', 'lang_choose', 'mods', 'classes', 'attributes' ] as $param}
{assign var="$param" value=$smarty.local.$param}
{/foreach}
{$label = $label|default:{lang 'user.choose.label'}}
{$lang_choose = $lang_choose|default:{lang 'user.choose.choose'}}
{* Ссылка показывающая мод. окно со списком пользователей *}
{capture 'user_field_choose'}
<a href="#" class="link-dotted js-{$component}-button">
{$lang_choose}
</a>
{/capture}
{component 'field' template='select'
label = $label
name = $name
inputClasses = 'js-user-field-choose-users'
isMultiple = true
placeholder = " "
note = $smarty.capture.user_field_choose
params = $smarty.local.params}