-
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.
Requested via Slack. Adds several new fields to the different checklist step for bands and changes the wording for others.
- Loading branch information
Showing
27 changed files
with
282 additions
and
82 deletions.
There are no files selected for viewing
70 changes: 70 additions & 0 deletions
70
alembic/versions/3ec57493ad18_add_new_fields_for_band_checklist.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,70 @@ | ||
"""Add new fields for band checklist | ||
Revision ID: 3ec57493ad18 | ||
Revises: ceb6dd682832 | ||
Create Date: 2023-10-05 01:00:24.836124 | ||
""" | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '3ec57493ad18' | ||
down_revision = 'ceb6dd682832' | ||
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(): | ||
with op.batch_alter_table("guest_autograph") as batch_op: | ||
batch_op.add_column(sa.Column('rock_island_autographs', sa.Boolean(), nullable=True)) | ||
batch_op.add_column(sa.Column('rock_island_length', sa.Integer(), server_default='60', nullable=False)) | ||
|
||
with op.batch_alter_table("guest_bio") as batch_op: | ||
batch_op.add_column(sa.Column('spotify', sa.Unicode(), server_default='', nullable=False)) | ||
|
||
with op.batch_alter_table("guest_stage_plot") as batch_op: | ||
batch_op.add_column(sa.Column('notes', sa.Unicode(), server_default='', nullable=False)) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('guest_stage_plot', 'notes') | ||
op.drop_column('guest_bio', 'spotify') | ||
op.drop_column('guest_autograph', 'rock_island_length') | ||
op.drop_column('guest_autograph', 'rock_island_autographs') |
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
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
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
50 changes: 50 additions & 0 deletions
50
uber/templates/guest_checklist/band_autograph_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,50 @@ | ||
{% extends "guest_checklist/autograph_deadline.html" %} | ||
|
||
{% block deadline_text %} | ||
{% if guest.autograph_status %} | ||
You have already indicated | ||
{% if not guest.autograph.num %} | ||
that you do not wish to hold any autograph sessions, | ||
{% else %} | ||
that you would like | ||
{% if guest.autograph.num %} | ||
{{ guest.autograph.num }} autograph session{{ guest.autograph.num|pluralize }}, | ||
{% if guest.autograph.rock_island_autographs %} plus {% endif %} | ||
{% endif %} | ||
{% if guest.autograph.rock_island_autographs %} | ||
a {{ guest.autograph.rock_island_length // 60 }}-hour meet-and-greet at Rock Island, | ||
{% endif %} | ||
{% endif %} | ||
but you can use the link above to update your preferences. | ||
{% else %} | ||
Use the link above to let us know if you would like to host any autograph sessions and/or if you would like a Meet & Greet at Rock Island. | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block form_extra %} | ||
<div class="form-group"> | ||
<div class="col-sm-10 col-sm-offset-2">If you would like to have a Meet & Greet in Rock Island, please indicate below.</div> | ||
<div class="col-sm-6 col-sm-offset-3"> | ||
<select name="rock_island_autographs" class="form-control"> | ||
<option value="">Please select an option...</option> | ||
<option value="1" {% if guest.autograph.rock_island_autographs %}selected {% endif %}>Yes</option> | ||
<option value="0" {% if guest.autograph.rock_island_autographs == False %}selected {% endif %}>No</option> | ||
</select> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label class="col-sm-3 control-label">Length of Sessions (hours)</label> | ||
<div class="col-sm-6"> | ||
<select name="rock_island_length" class="form-control"> | ||
{% set rock_island_length_hours = guest.autograph.rock_island_length//60 %} | ||
{{ int_options(1, 2, rock_island_length_hours) }} | ||
</select> | ||
</div> | ||
</div> | ||
|
||
<p>Note: You are allowed to have both an autograph session with the Autographs Department and a Meet & Greet in Rock Island or any other combination. Autographs should only be done at these two locations.</p> | ||
|
||
<p>The Rock Island Meet & Greet is a chance to sign merch purchased during the event, pose for pictures, and generally have a chance to talk to your fans after the show. This will occur in the Rock Island area of the Main Concert Hall.</p> | ||
|
||
<p>The Autograph Session is a more formal signing session designed to be a quieter, more intimate experience for attendees and performers. Autograph sessions can occur any time throughout the weekend and will appear on the schedule. Sessions are held in Autographs, located in Expo E.</p> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% extends "guest_checklist/badges_deadline.html" %} | ||
|
||
{% block deadline_text %} | ||
{% if guest.all_badges_claimed %} | ||
You have already assigned all badges which have been assigned to your group, but you may change who your | ||
complimentary badges are assigned to using the link above anytime until the start of {{ c.EVENT_NAME }}. | ||
{% else %} | ||
<p>You currently have {{ guest.group.floating|length }} unassigned complimentary | ||
badge{{ guest.group.floating|length|pluralize }} available to your group. You may use the link above to | ||
assign these badges.</p> | ||
{% endif %} | ||
By default, each guest receives a badge for themselves, plus an additional badge. | ||
Additional complimentary badges may be issued upon request by reaching out to {{ c.BAND_EMAIL|email_only|email_to_link }} | ||
or your assigned liaison. | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% 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 %} |
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,12 @@ | ||
{% extends "guest_checklist/charity_deadline.html" %} | ||
|
||
{% block deadline_text %} | ||
{% if guest.charity_status %} | ||
You have already indicated your charity preferences, but you may update them using the link above. | ||
{% else %} | ||
{{ c.EVENT_NAME }} hosts a yearly charity auction, with 100% of proceeds going to | ||
<a href="http://childsplaycharity.org/" target="_blank">Child's Play</a>. | ||
Use the link above to indicate if you would be willing to donate any signed merchandise to the auction or | ||
would be able to assist in any other way. | ||
{% endif %} | ||
{% 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
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,2 +1,3 @@ | ||
{% extends "guest_checklist/panel_deadline.html" %} | ||
|
||
{% block deadline_headline %}Add Your Panels{% endblock %} |
Oops, something went wrong.