filter country

This commit is contained in:
Michele Artini 2021-09-28 11:25:38 +02:00
parent 0a5c711629
commit 92ae3fb533
1 changed files with 2 additions and 1 deletions

View File

@ -95,8 +95,9 @@
<div class="card mb-3" ng-if="currentUser.valid && ((currentUser.role == 'USER') || (currentUser.role == 'NATIONAL_ADMIN'))">
<div class="card-header bg-primary text-white py-1">Countries</div>
<div class="card-body">
<input type="text" class="form-control form-control-sm mb-3" ng-model="countryFilter" placeholder="Filter country...">
<div class="form-group row">
<div class="col-xs-12 col-md-6 col-lg-4" ng-repeat="c in vocabularies.countries">
<div class="col-xs-12 col-md-6 col-lg-4" ng-repeat="c in vocabularies.countries | filter:countryFilter">
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" checklist-model="currentUser.countries" checklist-value="c.value"/>
<label class="form-check-label">{{c.name}}</label>