Skip to content

Commit

Permalink
Merge pull request #356 from robertdijk/committee-export
Browse files Browse the repository at this point in the history
Add filter for committee memberships in export
  • Loading branch information
robertdijk authored Dec 12, 2023
2 parents cdfabd9 + 302f1dc commit 99296a8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ldb/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,12 @@ def set_querysets(self, query):
"machazine",
],
"organization": [],
"person": ["mail_announcements", "mail_company", "mail_education"],
"person": [
"mail_announcements",
"mail_company",
"mail_education",
"committee_memberships__board",
],
"person__member": ["associate_member", "donating_member", "merit_invitations"],
"person__student": ["first_year", "enrolled"],
"person__alumnus": [],
Expand Down
12 changes: 12 additions & 0 deletions ldb/static/partials/export.html
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,18 @@ <h1>2. Filters</h1>
</div>
</div>
</fieldset>

<fieldset ng-show="export.queryset.members || export.queryset.merit || export.queryset.honorary || export.queryset.alumni || export.queryset.students || export.queryset.employees">
<legend>Commissies</legend>
<div class="form-group">
<div class="control-label">Commissie in:</div>
<div class="controls">
<input type="number" ng-model="export.filters.person__committee_memberships__board" placeholder="Bestuur">
<span class="help-block">Heeft een commissie gedaan in dit bestuursjaar.</span>
</div>
</div>
</fieldset>

</div>
</div>
</div>
Expand Down

0 comments on commit 99296a8

Please sign in to comment.