diff --git a/teamsnap/templates/teamsnap/edit_lineup.html b/teamsnap/templates/teamsnap/edit_lineup.html new file mode 100644 index 0000000..fdc1141 --- /dev/null +++ b/teamsnap/templates/teamsnap/edit_lineup.html @@ -0,0 +1,116 @@ +{% extends "base.html" %}{% load static %} +{% block title %} {{ event.data.formatted_title }}{% endblock %} +{% block page_heading %}{{ event.data.formatted_title }}{% endblock %} +{% block page_subheading %}{{ event.data.start_date }}, {{ event.data.location_name }}{% endblock %} + +{% block content %} + +
Lineup
+
+ {{ formset.management_form }} + {% csrf_token %} +
+ + + {% for form in formset %} + {% if form.event_lineup_entry_id.value %} + + {{ form.event_lineup_entry_id.as_hidden }} + {{ form.event_lineup_id.as_hidden }} + {{ form.event_id.as_hidden }} + {{ form.member_id.as_hidden }} + {{ form.sequence.as_hidden }} + {{ form.label.as_hidden }} + {{ form.member_name.as_hidden }} + + + + + + + + {% endif %} + {% endfor %} + +
+ {{ forloop.counter }} + + {{ form.member_name.value }} + +
{{ form.label }}
+
+
+
+ + {{ form.DELETE.as_hidden }} +
+
+
+ +
+
+ +
+
Bench
+
+ + {# #} + {# #} + {# #} + {# #} + {# #} + {# #} + + {% for availability in availablities %} + {% if availability.data.member_is_non_player is False %} + + + + + + + + {% endif %} + {% endfor %} + + +
#} + {# StatusLastFirst
+ {% if availability.data.status_code == 1 %} + + {% endif %} + {% if availability.data.status_code == 0 %} + + {% endif %} + {% if availability.data.status_code == None %} + + {% endif %} + {% if availability.data.status_code == 2 %} + + {% endif %} + + {{ availability.data.member_first_name }} {{ availability.data.member_last_name }} + + +
+
+ +
+
+
+
+ + + +{% endblock %} \ No newline at end of file