Skip to content

Commit

Permalink
Merge pull request #1651 from emfcamp/cfp-review-filter-for-hidden-fr…
Browse files Browse the repository at this point in the history
…om-schedule

Add CfP review filter for hidden-from-schedule
  • Loading branch information
lukegb committed May 25, 2024
2 parents d8af3ea + 4d998a4 commit 2297b80
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/cfp_review/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def bool_qs(val):


def filter_proposal_request() -> tuple[list[Proposal], bool]:
bool_names = ["one_day", "needs_help", "needs_money"]
bool_names = ["one_day", "needs_help", "needs_money", "hide_from_schedule"]
bool_vals = [request.args.get(n, type=bool_qs) for n in bool_names]
bool_dict = {n: v for n, v in zip(bool_names, bool_vals) if v is not None}

Expand Down
9 changes: 9 additions & 0 deletions templates/cfp_review/_proposals_filter_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@
</label>
</div>
</div>
<div class="form-group">
<div class="checkbox">
<label>
<input name="hide_from_schedule" id="hide_from_schedule" type="checkbox" value="True"
{%- if request.args.get('hide_from_schedule', False) %}checked{% endif %}>
Hidden from Schedule
</label>
</div>
</div>
</fieldset>
<fieldset class="form-horizontal col-md-6">
<div class="form-group">
Expand Down

0 comments on commit 2297b80

Please sign in to comment.