Skip to content

Commit

Permalink
Add group name filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian committed Mar 22, 2022
1 parent d62539e commit 77da647
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"first": "First",
"first_name": "First Name",
"generated_on": "Generated on",
"group_name": "Group Name",
"has_photo": "Has Photo",
"information": "Information",
"language": "Language",
Expand Down
4 changes: 4 additions & 0 deletions app/scripts/controllers/people.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ angular.module('accreditationApp')
$scope.filter.position = '';
$scope.filter.member = undefined;
$scope.filter.skill = undefined;
$scope.filter.group = '';
$scope.filter.printed = undefined;
$scope.filter.photo = undefined;
$scope.filter.sort = '';
Expand Down Expand Up @@ -59,6 +60,9 @@ angular.module('accreditationApp')
if ($scope.filter.skill) {
query['skill'] = $scope.filter.skill;
}
if ($scope.filter.group) {
query['group'] = $scope.filter.group;
}
if ($scope.filter.printed !== undefined) {
query['printed'] = $scope.filter.printed;
}
Expand Down
4 changes: 4 additions & 0 deletions app/views/people.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ <h3 class="panel-title" translate>filter</h3>
<option ng-repeat="skill in skills" value="{{skill.id}}">{{skill.skill_number}} {{skill.name.text}}</option>
</select>
</div>
<div class="form-group">
<label for="group" translate>group_name</label>
<input ng-model="filter.group" class="form-control input-sm" id="group"/>
</div>
<div class="form-group">
<label for="skill" translate>has_photo</label>
<select ng-model="filter.photo" class="form-control" name="photo" id="photo">
Expand Down

0 comments on commit 77da647

Please sign in to comment.