2015-05-05 03:10:25 +02:00
< div class = "form-group" ng-class = "{'has-error': userForm['user[group_id]'].$dirty && userForm['user[group_id]'].$invalid}" >
2017-01-03 12:07:16 +01:00
< label for = "user_group_id" class = "col-sm-3 control-label" >
2019-12-17 12:40:36 +01:00
< span translate > {{ 'app.shared.user_admin.group' }}< / span >
2017-01-03 12:07:16 +01:00
< span class = "exponent" > < i class = "fa fa-asterisk" aria-hidden = "true" > < / i > < / span >
< / label >
2015-05-05 03:10:25 +02:00
< div class = "col-sm-9" >
2016-03-23 18:39:41 +01:00
< select ng-model = "user.group_id" ng-disabled = "user.subscribed_plan" class = "form-control" name = "user[group_id]" id = "user_group_id" ng-options = "g.id as g.name for g in groups" required >
2015-05-05 03:10:25 +02:00
< / select >
< input type = "hidden" name = "user[group_id]" ng-value = "user.group_id" / >
2019-12-17 12:40:36 +01:00
< span class = "help-block" ng-show = "userForm['user[group_id]'].$dirty && userForm['user[group_id]'].$error.required" translate > {{ 'app.shared.user_admin.group_is_required' }}< / span >
2015-05-05 03:10:25 +02:00
< / div >
< / div >
2016-03-23 18:39:41 +01:00
< div class = "form-group" >
2019-12-17 12:40:36 +01:00
< label class = "col-sm-2 control-label" translate > {{ 'app.shared.user_admin.trainings' }}< / label >
2016-03-23 18:39:41 +01:00
< div class = "col-sm-10" >
2019-06-06 16:34:53 +02:00
< input type = "hidden" name = "user[statistic_profile_attributes][training_ids][]" value = "" / >
2016-03-23 18:39:41 +01:00
< ui-select multiple ng-model = "user.training_ids" class = "form-control" >
< ui-select-match >
< span ng-bind = "$item.name" > < / span >
2019-06-06 16:34:53 +02:00
< input type = "hidden" name = "user[statistic_profile_attributes][training_ids][]" value = "{{$item.id}}" / >
2016-03-23 18:39:41 +01:00
< / ui-select-match >
2017-10-11 11:40:15 +02:00
< ui-select-choices ui-disable-choice = "t.disabled" repeat = "t.id as t in (trainings | filter: $select.search)" >
2016-03-23 18:39:41 +01:00
< span ng-bind-html = "t.name | highlight: $select.search" > < / span >
< / ui-select-choices >
< / ui-select >
< / div >
< / div >
< div class = "form-group" >
2019-12-17 12:40:36 +01:00
< label class = "col-sm-2 control-label" translate > {{ 'app.shared.user_admin.tags' }}< / label >
2016-03-23 18:39:41 +01:00
< div class = "col-sm-10" >
< input type = "hidden" name = "user[tag_ids][]" value = "" / >
< ui-select multiple ng-model = "user.tag_ids" name = "user[tag_ids][]" class = "form-control" >
< ui-select-match >
< span ng-bind = "$item.name" > < / span >
< input type = "hidden" name = "user[tag_ids][]" value = "{{$item.id}}" / >
< / ui-select-match >
< ui-select-choices repeat = "t.id as t in (tags | filter: $select.search)" >
< span ng-bind-html = "t.name | highlight: $select.search" > < / span >
< / ui-select-choices >
< / ui-select >
< / div >
< / div >