-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Guest/Music checklist for Super 2025
Updates text for existing steps and adds a "performer badges" step that lets groups indicate they've assigned all performer badges. Fixes https://jira.magfest.net/browse/MAGDEV-1330.
- Loading branch information
Showing
13 changed files
with
153 additions
and
33 deletions.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
alembic/versions/72225013a93d_guest_music_checklist_updates_for_super_.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
"""Guest/Music checklist updates for Super 2025 | ||
Revision ID: 72225013a93d | ||
Revises: 643d80417d4a | ||
Create Date: 2024-08-24 21:44:25.261247 | ||
""" | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '72225013a93d' | ||
down_revision = '643d80417d4a' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
|
||
try: | ||
is_sqlite = op.get_context().dialect.name == 'sqlite' | ||
except Exception: | ||
is_sqlite = False | ||
|
||
if is_sqlite: | ||
op.get_context().connection.execute('PRAGMA foreign_keys=ON;') | ||
utcnow_server_default = "(datetime('now', 'utc'))" | ||
else: | ||
utcnow_server_default = "timezone('utc', current_timestamp)" | ||
|
||
def sqlite_column_reflect_listener(inspector, table, column_info): | ||
"""Adds parenthesis around SQLite datetime defaults for utcnow.""" | ||
if column_info['default'] == "datetime('now', 'utc')": | ||
column_info['default'] = utcnow_server_default | ||
|
||
sqlite_reflect_kwargs = { | ||
'listeners': [('column_reflect', sqlite_column_reflect_listener)] | ||
} | ||
|
||
# =========================================================================== | ||
# HOWTO: Handle alter statements in SQLite | ||
# | ||
# def upgrade(): | ||
# if is_sqlite: | ||
# with op.batch_alter_table('table_name', reflect_kwargs=sqlite_reflect_kwargs) as batch_op: | ||
# batch_op.alter_column('column_name', type_=sa.Unicode(), server_default='', nullable=False) | ||
# else: | ||
# op.alter_column('table_name', 'column_name', type_=sa.Unicode(), server_default='', nullable=False) | ||
# | ||
# =========================================================================== | ||
|
||
|
||
def upgrade(): | ||
op.add_column('guest_group', sa.Column('badges_assigned', sa.Boolean(), server_default='False', nullable=False)) | ||
op.add_column('guest_travel_plans', sa.Column('completed', sa.Boolean(), server_default='False', nullable=False)) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('guest_travel_plans', 'completed') | ||
op.drop_column('guest_group', 'badges_assigned') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
{% extends "guest_checklist/bio_deadline.html" %} | ||
|
||
{% block deadline_headline %}Performer Announcement Information{% endblock %} | ||
|
||
{% block form_desc %} | ||
Please provide a short bio that we can use on our website and in social media announcements leading up to the event. | ||
Everything else is optional, but is extremely helpful in promoting you to our attendees. | ||
{% endblock %} | ||
{% block deadline_headline %}Performer Announcement Information{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
uber/templates/guest_checklist/performer_badges_deadline.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{% if snippet %} | ||
<tr> | ||
<td width="25">{{ macros.checklist_image(guest.badges_assigned) }}</td> | ||
<td><b><a href="performer_badges?guest_id={{ guest.id }}"> | ||
{% block deadline_headline %}Assign Performer Badges{% endblock %}</a></b></td> | ||
<td><i>Deadline:</i> {{ guest.deadline_from_model('performer_badges')|datetime_local }}</td> | ||
</tr> | ||
<tr> | ||
<td colspan="3"> | ||
{% block deadline_text %} | ||
Please assign all badges for performers in your group, excluding plus-ones. | ||
{% endblock %} | ||
<br/></br> | ||
</td> | ||
</tr> | ||
{% else %} | ||
<h2>{% block form_title %}Performer Badges for {{ guest.group.name }}{% endblock %}</h2> | ||
|
||
{% block form_desc %} | ||
<p><a href="../preregistration/group_members?id={{ guest.group.id }}" class="btn btn-lg btn-info" target="_blank">Manage Badge(s)</a></p> | ||
{% if guest.badges_assigned %} | ||
<p>You've already indicated that you have assigned all performer badges. | ||
You may unassign and re-assign badges using the link above, or use the confirmation link sent to each badge to view and update its information.</p> | ||
{% else %} | ||
<p>Please use the badge assignment page above to enter information for all performer(s).</p> | ||
<p>You can send each "Register someone for this badge" link directly to other group member(s) to fill out. Once you are done, let us know using the button below. You do <strong>NOT</strong> need to fill out information for your plus-ones to complete this step.</p> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% if guest.badges_assigned %} | ||
<a href="index?id={{ guest.id }}" class="btn btn-default">Back to Checklist</a> | ||
{% else %} | ||
<form method="post" action="performer_badges" class="form-horizontal" role="form"> | ||
<input type="hidden" name="guest_id" value="{{ guest.id }}" /> | ||
{{ csrf_token() }} | ||
{% block form_extra %}{% endblock %} | ||
<button type="submit" name="badges_assigned" class="btn btn-primary" value="1">I Have Assigned All Performer Badges</button> | ||
</form> | ||
{% endif %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% extends "guestbase.html" %} | ||
{% set snippet=False %} | ||
{% block body %} | ||
|
||
{%- include ['guest_checklist/' ~ guest.group_type_label|lower|replace(' ','_') ~ '_performer_badges_deadline.html', 'guest_checklist/performer_badges_deadline.html'] -%} | ||
|
||
{% endblock %} |