Skip to content

Commit

Permalink
Re-show response on submit
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jan 15, 2025
1 parent 603223e commit 8f86c99
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions availability/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,11 +522,12 @@ def availabilit(key: str):

# }}}

return respond_with_message(
"Thank you for submitting your availability. "
"If you need to edit your availability, you may do so by revisiting "
"the same link."
)
flash(
"Thank you for submitting your availability. "
"If you need to edit your availability, you may do so by revisiting "
"the same link.")
return render_calendar(av_request, req_timespans, cal_spans, cal_slots)

else:
raise ValueError(f"unexpected request method: '{request.method}'")

Expand Down
1 change: 1 addition & 0 deletions availability/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ <h5 class="card-title">Instructions</h5>
<li><b>{{ av_request.message }}</b></li>
{% endif %}
{% if has_spans %}
<li>You can always change your response by visiting your response again.</li>
<li>For the time spans shown in green, please drag your mouse to indicate
your available times. Edit by dragging. Shift-click to delete.
<b>Please indicate your entire available time, <em>not</em> the
Expand Down

0 comments on commit 8f86c99

Please sign in to comment.