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 CfP review filter for hidden-from-schedule #1651

Merged
merged 1 commit into from
May 25, 2024
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
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