1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-15 00:24:09 +01:00
fab-manager/app/frontend/templates/admin/members/_form.html

45 lines
2.3 KiB
HTML
Raw Normal View History

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}">
<label for="user_group_id" class="col-sm-3 control-label">
<span translate>{{ 'app.shared.user_admin.group' }}</span>
<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" />
<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">
<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>
<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">
<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>