Skip to content

Commit

Permalink
Fix panels application received emails
Browse files Browse the repository at this point in the history
Fixes several typos and missing labels in the panel app received notification email.
  • Loading branch information
kitsuta committed Sep 11, 2023
1 parent 9df7b1c commit 74558fe
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions uber/templates/emails/panels/application.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<li><strong>Name</strong>: {{ panelist.first_name }} {{ panelist.last_name }}</li>
<li><strong>Email</strong>: {{ panelist.email }}</li>
<li><strong>Phone</strong>: {{ panelist.cellphone }}</li>
{% if panelist.pronouns or panelist.other_pronouns %}<li><strong>Pronouns</strong>: {{ panelist.pronouns }}{% if panelist.other_pronouns %} (Other: {{ panelist.other_pronouns }}){% endif %}</li>{% endif %}
{% if panelist.communication_pref or panelist.other_communication_pref %}<li><strong>Communication Preference</strong>: {{ panelist.communication_pref }}{% if panelist.other_communication_pref %} (Other: {{ panelist.other_communication_pref }}){% endif %}</li>{% endif %}
{% if panelist.pronouns or panelist.other_pronouns %}<li><strong>Pronouns</strong>: {{ panelist.pronouns_labels|join(', ') }}{% if panelist.other_pronouns %} (Other: {{ panelist.other_pronouns }}){% endif %}</li>{% endif %}
{% if panelist.communication_pref or panelist.other_communication_pref %}<li><strong>Communication Preference</strong>: {{ panelist.communication_pref_labels|join(', ') }}{% if panelist.other_communication_pref %} (Other: {{ panelist.other_communication_pref }}){% endif %}</li>{% endif %}
{% if panelist.occupation %}<li><strong>Occupation</strong>: {{ panelist.occupation }}</li>{% endif %}
{% if panelist.website %}<li><strong>Website</strong>: {{ panelist.website }}</li>{% endif %}
{% if panelist.other_credentials %}<li><strong>Other Experience</strong>: {{ panelist.other_credentials|linebreaksbr }}</li>{% endif %}
{% if panelist.guidebook_bio %}<li><strong>Schedule Bio</strong>: {{ panelist.guidebook_bio|linebreaksbr }}</li>{% endif %}
{% if panelist.display_name %}<li><strong>Display Name</strong>: {{ panelist.display_name }}</li>{% endif %}
{% if panelist.has_social_media %}
{% for name, label in panelist._social_media_fields.items() %}<li><strong>{{ label }}</strong>: {{ name }}</li>{% endfor %}
<li><strong>Social Media</strong>: {{ panelist.social_media_info|replace("\n", ";") }}</li>
{% endif %}
{%- endmacro -%}

Expand All @@ -31,14 +31,14 @@
<ul>
<li><strong>Name</strong>: {{ app.name }}</li>
<li><strong>Department</strong>: {{ app.department_label }}</li>
<li><strong>Type</strong>{{ app.presentation_label }}{% if app.presentation == c.OTHER %} ({{ app.other_presentation }}){% endif %}</li>
<li><strong>Type</strong>: {{ app.presentation_label }}{% if app.presentation == c.OTHER %} ({{ app.other_presentation }}){% endif %}</li>
<li><strong>Description</strong>: {{ app.description }}</li>
{% if c.PANEL_RATING_OPTS|length > 1 %}<li><strong>Rating</strong>: {{ app.rating_label }}</li>{% endif %}
{% if c.PANEL_CONTENT_OPTS|length > 1 %}
<li><strong>Content</strong>: {{ app.granular_rating_labels|join(', ') }}</li>
<li><strong>Mature Content</strong>: {{ app.granular_rating_labels|join(', ') }}</li>
<li><strong>Opted in to MAGScouts</strong>: {{ "N/A" if app.magscouts_opt_in == c.NO_CHOICE else app.magscouts_opt_in_label }}</li>
{% endif %}
<li><strong>Tabletop Related</strong>: {{ app.tabletop|yesno }}</li>
<li><strong>Tabletop Related</strong>: {{ app.tabletop|yesno|title }}</li>
<li><strong>Expected Length</strong>: {{ app.length_label if app.length != c.OTHER and not app.length_text else app.length_text }}</li>
{% if app.length_reason %}<li><strong>Reason for Length</strong>: {{ app.length_reason }}</li>{% endif %}
<li><strong>Noise Level</strong>: {{ app.noise_level_label }}</li>
Expand All @@ -47,7 +47,7 @@
{% if app.cost_desc %}<li><strong>Upfront Cost and Materials</strong>: {{ app.cost_desc }}</li>{% endif %}
{% if app.available %}<li><strong>Availability</strong>: {{ app.available|linebreaksbr }}</li>{% endif %}
{% if app.unavailable %}<li><strong>Unavailability</strong>: {{ app.unavailable|linebreaksbr }}</li>{% endif %}
{% if app.tech_needs or app.other_tech_needs %}<li><strong>: {{ app.tech_needs|join(', ') }}{% if app.other_tech_needs %} (Other: {{ app.other_tech_needs }}){% endif %}</strong></li>{% endif %}
{% if app.tech_needs or app.other_tech_needs %}<li><strong>Technical Needs</strong>: {{ app.tech_needs_labels|join(', ') }}{% if app.other_tech_needs %} (Other: {{ app.other_tech_needs }}){% endif %}</li>{% endif %}
{% if app.presentation == c.MUSIC %}<li><strong>Loud Environment Requested</strong>: {{ app.is_loud|yesno }}</li>{% endif %}
{% if app.extra_info %}<li><strong>Extra Info for Internal Use</strong>: {{ app.extra_info }}</li>{% endif %}
{% if app.panelist_bringing %}<li><strong>You Are Bringing</strong>: {{ app.panelist_bringing }}</li>{% endif %}
Expand Down

0 comments on commit 74558fe

Please sign in to comment.