1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-30 11:24:21 +01:00
fab-manager/app/frontend/templates/shared/_member_select.html

20 lines
1003 B
HTML

<div class="widget panel b-a m">
<div class="panel-heading b-b small">
<h3 class="panel-title" translate>{{ 'app.shared.member_select.select_a_member' }}</h3>
</div>
<div class="widget-content no-bg auto wrapper">
<ui-select ng-model="ctrl.member" on-select="updateMember()">
<ui-select-match placeholder="{{ 'app.shared.member_select.start_typing' | translate }}">
<span ng-bind="$select.selected.name"></span>
</ui-select-match>
<ui-select-choices repeat="m in matchingMembers" refresh="autoCompleteName($select.search)" refresh-delay="300">
<span ng-bind-html="m.name | highlight: $select.search"></span>
</ui-select-choices>
</ui-select>
{{member}}
<div class="alert alert-danger m-t" style="margin-bottom: 0 !important;" ng-if="enableUserValidationRequired && ctrl.member.id && !ctrl.member.validated_at">
<span translate>{{ 'app.shared.member_select.member_not_validated' }}</span>
</div>
</div>
</div>