mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-05-19 17:28:23 +03:00
Fix user-field-choose
This commit is contained in:
parent
6fd533fde5
commit
49ad5beb36
|
@ -32,12 +32,11 @@
|
|||
{if $smarty.local.editable|default:true}
|
||||
<form class="{$component}-form js-{$component}-form">
|
||||
{component 'user' template='choose'
|
||||
name = 'add'
|
||||
classes = "js-{$component}-choose"
|
||||
label = $aLang.user_list_add.form.fields.add.label
|
||||
lang_choose = {lang 'user_list_add.choose'}}
|
||||
name = 'add'
|
||||
classes = "js-{$component}-choose"
|
||||
label = {lang 'user_list_add.form.fields.add.label'}}
|
||||
|
||||
{component 'button' text=$aLang.common.add mods='primary' classes="js-$component-form-submit"}
|
||||
{component 'button' text={lang 'common.add'} mods='primary' classes="js-$component-form-submit"}
|
||||
</form>
|
||||
{/if}
|
||||
|
||||
|
|
|
@ -12,12 +12,11 @@
|
|||
{assign var="$param" value=$smarty.local.$param}
|
||||
{/foreach}
|
||||
|
||||
{* TODO: i18n *}
|
||||
{$label = $label|default:{lang 'user_list_add.form.fields.add.label'}}
|
||||
{$lang_choose = $lang_choose|default:{lang 'user_list_add.choose'}}
|
||||
{$label = $label|default:{lang 'user.choose.label'}}
|
||||
{$lang_choose = $lang_choose|default:{lang 'user.choose.choose'}}
|
||||
|
||||
{* Ссылка показывающая мод. окно со списком пользователей *}
|
||||
{capture 'user_list_add_choose'}
|
||||
{capture 'user_field_choose'}
|
||||
<a href="#" class="link-dotted js-{$component}-button">
|
||||
{$lang_choose}
|
||||
</a>
|
||||
|
@ -29,5 +28,5 @@
|
|||
inputClasses = 'js-user-field-choose-users'
|
||||
isMultiple = true
|
||||
placeholder = " "
|
||||
note = $smarty.capture.user_list_add_choose
|
||||
note = $smarty.capture.user_field_choose
|
||||
params = $smarty.local.params}
|
|
@ -566,15 +566,12 @@ return array(
|
|||
* Пополняемый список пользователей
|
||||
*/
|
||||
'user_list_add' => array(
|
||||
'choose' => 'Выбрать из списка друзей',
|
||||
|
||||
// Форма добавления
|
||||
'form' => array(
|
||||
// Поля
|
||||
'fields' => array(
|
||||
'add' => array(
|
||||
'label' => 'Список пользователей',
|
||||
'note' => 'Введите один или несколько логинов'
|
||||
'label' => '___user.users___',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
@ -1131,6 +1128,11 @@ return array(
|
|||
'unfollow' => 'Отписаться',
|
||||
'report' => '___report.report___',
|
||||
),
|
||||
// Действия
|
||||
'choose' => array(
|
||||
'label' => '___user.users___',
|
||||
'choose' => 'Выбрать из списка друзей',
|
||||
),
|
||||
// Пол
|
||||
'gender' => array(
|
||||
'gender' => 'Пол',
|
||||
|
|
Loading…
Reference in a new issue