Staff Login
@@ -72,6 +66,17 @@
Welcome to {% tournament_name %}!
diff --git a/mittab/templates/registration/_debater_card.html b/mittab/templates/registration/_debater_card.html
new file mode 100644
index 00000000..8de7b099
--- /dev/null
+++ b/mittab/templates/registration/_debater_card.html
@@ -0,0 +1,14 @@
+{% load tags %}
+{% with name_key=prefix|add:"_name" school_key=prefix|add:"_school" %}
+{% with name_field=form|get_field:name_key school_field=form|get_field:school_key %}
+
+
+
+
{{ title }}
+ {% include "registration/_input_group.html" with field=name_field label="Name" errors=name_field.errors label_style="font-size: 0.75rem;" margin="mb-1" %}
+ {% include "registration/_input_group.html" with field=school_field label="School" errors=school_field.errors label_style="font-size: 0.75rem;" margin="mb-1" %}
+
+
+
+{% endwith %}
+{% endwith %}
diff --git a/mittab/templates/registration/_input_group.html b/mittab/templates/registration/_input_group.html
new file mode 100644
index 00000000..a50b727b
--- /dev/null
+++ b/mittab/templates/registration/_input_group.html
@@ -0,0 +1,9 @@
+
+{% if errors %}
+
{{ errors }}
+{% endif %}
diff --git a/mittab/templates/registration/_judge_form.html b/mittab/templates/registration/_judge_form.html
new file mode 100644
index 00000000..7a8aeb9d
--- /dev/null
+++ b/mittab/templates/registration/_judge_form.html
@@ -0,0 +1,39 @@
+
+
+
+ {% for hidden in form.hidden_fields %}{{ hidden }}{% endfor %}
+
+ {% include "registration/_input_group.html" with field=form.name label="Name" errors=form.name.errors margin="" %}
+
+
+ {% include "registration/_input_group.html" with field=form.email label="Email" errors=form.email.errors margin="" %}
+
+
+ {% include "registration/_input_group.html" with field=form.experience label="Experience" errors=form.experience.errors margin="" %}
+
+
+ {% if form.availability_fields %}
+
+ {% endif %}
+
+
+
+
+
+
diff --git a/mittab/templates/registration/_school_selector.html b/mittab/templates/registration/_school_selector.html
new file mode 100644
index 00000000..13ab4cb2
--- /dev/null
+++ b/mittab/templates/registration/_school_selector.html
@@ -0,0 +1,29 @@
+{% if show_create_button %}
+
+{% else %}
+
+{% endif %}
diff --git a/mittab/templates/registration/_team_form.html b/mittab/templates/registration/_team_form.html
new file mode 100644
index 00000000..13141eeb
--- /dev/null
+++ b/mittab/templates/registration/_team_form.html
@@ -0,0 +1,33 @@
+
+
+ {% for hidden in form.hidden_fields %}{{ hidden }}{% endfor %}
+ {% for error in form.non_field_errors %}
+
{{ error }}
+ {% endfor %}
+
+
+
+
+
Team Info
+ {% include "registration/_input_group.html" with field=form.name label="Name" errors=form.name.errors margin="" %}
+
+
+ {{ form.team_school_source }}
+ {{ form.team_school_source.errors }}
+
+
+
+ {{ form.seed_choice }}
+ {{ form.seed_choice.errors }}
+
+
+
+
+ {% include "registration/_debater_card.html" with slot="first" title="First Debater" prefix="debater_one" %}
+ {% include "registration/_debater_card.html" with slot="second" title="Second Debater" prefix="debater_two" %}
+
+
+
+
+
+
diff --git a/mittab/templates/registration/admin_list.html b/mittab/templates/registration/admin_list.html
new file mode 100644
index 00000000..678c6b71
--- /dev/null
+++ b/mittab/templates/registration/admin_list.html
@@ -0,0 +1,122 @@
+{% extends "base/__wide.html" %}
+
+{% block title %}Registration Admin{% endblock %}
+{% block banner %}Registration Admin{% endblock %}
+
+{% block content %}
+
+
+
+
Registration Settings & Submissions
+
Toggle availability and manage existing registrations.
+
+
Open Portal
+
+
+
+
+ {% if registrations %}
+
+
+
+
+ | School / Contact |
+ Teams |
+ Judges |
+ Code |
+ Timestamps |
+ Actions |
+
+
+
+ {% for registration in registrations %}
+
+ |
+ {{ registration.school.name }}
+ {{ registration.email }}
+ |
+
+ {{ registration.team_count }} teams
+ {% if registration.team_count %}
+
+ {% for team in registration.teams.all %}
+ -
+ {{ team.name }}
+ {% if team.debaters.all %}
+
+ —
+ {% for debater in team.debaters.all %}
+ {{ debater.name }}{% if not forloop.last %}, {% endif %}
+ {% endfor %}
+
+ {% endif %}
+
+ {% endfor %}
+
+ {% endif %}
+ |
+
+ {{ registration.judge_count }} judges
+ {% if registration.judge_count %}
+
+ {% for judge in registration.judges.all %}
+ -
+ {{ judge.name }}
+ {% if judge.schools.all %}
+
+ —
+ {% for school in judge.schools.all %}
+ {{ school.name }}{% if not forloop.last %}, {% endif %}
+ {% endfor %}
+
+ {% endif %}
+
+ {% endfor %}
+
+ {% endif %}
+ |
+ {{ registration.herokunator_code }} |
+
+ {{ registration.created_at|date:"M j, Y, H:i" }}
+ Updated {{ registration.updated_at|date:"M j, Y, H:i" }}
+ |
+
+ Open
+
+ |
+
+ {% endfor %}
+
+
+
+ {% else %}
+
No registrations have been submitted yet.
+ {% endif %}
+
+{% endblock %}
diff --git a/mittab/templates/registration/code_lookup.html b/mittab/templates/registration/code_lookup.html
new file mode 100644
index 00000000..25c93ae2
--- /dev/null
+++ b/mittab/templates/registration/code_lookup.html
@@ -0,0 +1,35 @@
+{% extends "base/__wide.html" %}
+{% load tags %}
+
+{% block title %}Edit Registration{% endblock %}
+{% block banner %}Edit Registration{% endblock %}
+
+{% block content %}
+
+ {% if not can_modify_registration %}
+
+ Registration editing is currently disabled. Check back later or contact tab staff.
+
+ {% endif %}
+
+
+ Enter the registration code from your confirmation email to edit your submission.
+
+
+
+
+{% endblock %}
diff --git a/mittab/templates/registration/portal.html b/mittab/templates/registration/portal.html
new file mode 100644
index 00000000..ce71c099
--- /dev/null
+++ b/mittab/templates/registration/portal.html
@@ -0,0 +1,176 @@
+{% extends "base/__wide.html" %}
+{% load render_bundle from webpack_loader %}
+{% load tags %}
+
+{% block title %}Tournament Registration{% endblock %}
+{% block banner %}Tournament Registration{% endblock %}
+
+{% block content %}
+{% render_bundle 'registrationPortal' %}
+
+ {% if registration_lock_message %}
+
{{ registration_lock_message }}
+ {% endif %}
+
+
+
+ {% include "registration/_team_form.html" with form=team_formset.empty_form %}
+
+
+ {% include "registration/_judge_form.html" with form=judge_formset.empty_form %}
+
+ {% if summary %}
+
+
+
+
Registration Saved
+
Herokunator Code: {{ summary.herokunator_code }}
+
School: {{ summary.school.name }}
+
Email: {{ summary.email }}
+
Teams
+
+ {% for team in summary.teams.all %}
+
+
{{ team.name }}
+ {% if team.seed == team.FREE_SEED %}
+
Free Seed
+ {% endif %}
+
+ {% for debater in team.debaters.all %}
+ - {{ debater.name }}
+ {% endfor %}
+
+
+ {% endfor %}
+
+
Judges
+
+ {% for judge in summary.judges.all %}
+
+
{{ judge.name }}{% if judge.ballot_code %} (Code: {{ judge.ballot_code }}){% endif %}
+ {% if judge.email %}
+
Email: {{ judge.email }}
+ {% endif %}
+
+ {% endfor %}
+
+
+
+
+ {% endif %}
+
+{% endblock %}
diff --git a/mittab/templates/registration/setup.html b/mittab/templates/registration/setup.html
new file mode 100644
index 00000000..8496b6da
--- /dev/null
+++ b/mittab/templates/registration/setup.html
@@ -0,0 +1,42 @@
+{% extends "base/__normal.html" %}
+{% load bootstrap4 %}
+
+{% block title %}Registration Setup{% endblock %}
+{% block banner %}Registration Setup{% endblock %}
+
+{% block content %}
+
+
+
+
Portal Controls
+
+ Toggle who can access the public registration portal and whether existing links can be edited.
+
+
+
+
+
+{% endblock %}
diff --git a/mittab/templates/tab/settings_form.html b/mittab/templates/tab/settings_form.html
index ba464884..58158c87 100644
--- a/mittab/templates/tab/settings_form.html
+++ b/mittab/templates/tab/settings_form.html
@@ -50,6 +50,9 @@
class="custom-control-input"
name="{{ field.name }}"
id="{{ field.id_for_label }}"
+ data-toggle-label="true"
+ data-label-on="Enabled"
+ data-label-off="Disabled"
{% if field.value %}checked{% endif %}>