Skip to content

Commit

Permalink
Fix check-in form formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsuta committed Jun 6, 2024
1 parent d4003d2 commit daaa555
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 38 deletions.
9 changes: 8 additions & 1 deletion magstock/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,11 @@ class PreregOtherInfo:
def staffing_label(self):
return ("We already have enough volunteers to run MAGStock this year. If you'd like to be added "
"to our waitlist, click here and indicate your areas of interest. If we can accommodate more "
"volunteers, Staffing Operations will reach out to you in mid-May")
"volunteers, Staffing Operations will reach out to you in mid-May")

@MagForm.form_mixin
class CheckInForm:
camping_type = HiddenField('Camping Type')
cabin_type = HiddenField('Cabin Type')
meal_plan = HiddenField('Meal Plan')
license_plate = PersonalInfo.license_plate
24 changes: 24 additions & 0 deletions magstock/templates/forms/attendee/check_in_form.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% extends 'uber/templates/forms/attendee/check_in_form.html' %}

{% block merch %}
<div class="row g-sm-3">
<div class="col">{{ form_macros.form_input(check_in_form.camping_type, hidden_field_text=attendee.camping_type_label) }}</div>
{% if attendee.camping_type == c.CABIN %}
<div class="col">{{ form_macros.form_input(check_in_form.cabin_type, hidden_field_text=attendee.cabin_type_label) }}</div>
{% endif %}
<div class="col">{{ form_macros.form_input(check_in_form.meal_plan, hidden_field_text=attendee.meal_plan_label) }}</div>

{{ super() }}
</div>
{% endblock %}

{% block editable %}
<div class="row g-sm-3">
{% if c.COLLECT_EXACT_BIRTHDATE %}
<div class="col">
{{ form_macros.form_input(check_in_form.birthdate) }}
</div>
{% endif %}
<div class="col">{{ form_macros.form_input(check_in_form.license_plate, help_text='The license plate # of the car they parked.') }}</div>
</div>
{% endblock %}
37 changes: 0 additions & 37 deletions magstock/templates/registration/check_in_form.html

This file was deleted.

0 comments on commit daaa555

Please sign in to comment.