From 981ebb6d98b6782d0e165f291a06142c568f6cdd Mon Sep 17 00:00:00 2001 From: Tony Date: Fri, 10 Dec 2021 18:21:24 -0600 Subject: [PATCH] lineup enhancements --- lineups/templates/lineups/lineup.html | 128 ++++++++++---------- lineups/templates/lineups/player-table.html | 25 +--- 2 files changed, 69 insertions(+), 84 deletions(-) diff --git a/lineups/templates/lineups/lineup.html b/lineups/templates/lineups/lineup.html index 7f7870c..e7e59e3 100644 --- a/lineups/templates/lineups/lineup.html +++ b/lineups/templates/lineups/lineup.html @@ -36,25 +36,38 @@ {# #}
-
DH'd
-
- {% include 'lineups/player-table.html' with table_id="dhd" formset=formset_dhd available_class="d-none" order_class="d-none"%} +
+
Lineup
+
+ +
-
-
-
Lineup
+
+ {% include 'lineups/player-table.html' with table_id="dhd" formset=formset_dhd available_class="d-none" %} +
+ +{#
Lineup
#}
{% include 'lineups/player-table.html' with table_id="lineup" formset=formset_lineup available_class="d-none"%} -
-
+
-
Bench
+
+
+
Bench
+
+
+ +
+
+
- {% include 'lineups/player-table.html' with table_id="bench" formset=formset_bench order_class="d-none" available_class="d-none"%} + {% include 'lineups/player-table.html' with table_id="bench" formset=formset_bench order_class="d-none" %}
@@ -67,38 +80,57 @@ diff --git a/lineups/templates/lineups/player-table.html b/lineups/templates/lineups/player-table.html index 7682d77..9517554 100644 --- a/lineups/templates/lineups/player-table.html +++ b/lineups/templates/lineups/player-table.html @@ -1,12 +1,4 @@ - - - {# #} - {# #} - {# #} - {# #} - - {% for form in formset %} {% endif %} + + + {# #} {% endfor %}
NamePos
- - {% if form.availability.available == 2 %} - - {% elif form.availability.available == 1 %} - - {% elif form.availability.available == 0 %} - - {% else %} - - {% endif %} - - {{ form.instance.player.first_name }} {{ form.instance.player.last_name }}  #{{ form.instance.player.jersey_number }} @@ -56,6 +38,9 @@ {{ form.position }} + + {{ form.instance.position }}