Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filter for committee memberships in export #356

Merged
merged 2 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading