diff --git a/benchcoach/templates/benchcoach/detail.html b/benchcoach/templates/benchcoach/detail.html new file mode 100644 index 0000000..004e935 --- /dev/null +++ b/benchcoach/templates/benchcoach/detail.html @@ -0,0 +1,22 @@ +{% extends 'base.html' %} + +{% block navbar %} + {% with events_tab="active" %} + {{ block.super }} + {% endwith %} +{% endblock %} + +{% block page_heading %} + Object +{% endblock %} + +{% block content %} +
+
+ + {% block rows %} + {% endblock %} +
+
+
+{% endblock %} \ No newline at end of file diff --git a/benchcoach/templates/benchcoach/event-detail.html b/benchcoach/templates/benchcoach/event-detail.html new file mode 100644 index 0000000..0670222 --- /dev/null +++ b/benchcoach/templates/benchcoach/event-detail.html @@ -0,0 +1,19 @@ +{% extends 'benchcoach/detail.html' %} + +{% block navbar %} + {% with events_tab="active" %} + {{ block.super }} + {% endwith %} +{% endblock %} + +{% block page_heading %} + Event +{% endblock %} + +{% block rows %} + Date{{ event.start.date|date }} + Time{{ event.start.time|time }} + Away{{ event.away_team.name }} + Home{{ event.home_team.name }} + Venue{{ event.venue }} +{% endblock %} \ No newline at end of file diff --git a/benchcoach/templates/benchcoach/event-list.html b/benchcoach/templates/benchcoach/event-list.html new file mode 100644 index 0000000..9cc6d81 --- /dev/null +++ b/benchcoach/templates/benchcoach/event-list.html @@ -0,0 +1,23 @@ +{% extends 'base.html' %} + +{% block navbar %} + {% with events_tab="active" %} + {{ block.super }} + {% endwith %} +{% endblock %} + +{% block page_heading %} +Events +{% endblock %} + +{% block content %} + +{% endblock %} + \ No newline at end of file diff --git a/lineups/templates/lineups/info-table.html b/benchcoach/templates/benchcoach/info-table.html similarity index 80% rename from lineups/templates/lineups/info-table.html rename to benchcoach/templates/benchcoach/info-table.html index 80b2581..8358bdd 100644 --- a/lineups/templates/lineups/info-table.html +++ b/benchcoach/templates/benchcoach/info-table.html @@ -2,7 +2,7 @@ {% for key, value in d.items %} {{ key }} - {{ value|safe }} + {{ value }} {% endfor %} \ No newline at end of file diff --git a/lineups/templates/lineups/lineup.html b/benchcoach/templates/benchcoach/lineup.html similarity index 93% rename from lineups/templates/lineups/lineup.html rename to benchcoach/templates/benchcoach/lineup.html index e9fc50a..1ccbe96 100644 --- a/lineups/templates/lineups/lineup.html +++ b/benchcoach/templates/benchcoach/lineup.html @@ -1,6 +1,6 @@ -{% extends 'base.html' %}{% block title %} {{ title }} {% endblock %}{% load crispy_forms_tags %}{% load static %} +{% extends 'base.html' %}{% block title %} {{ title }} {% endblock %}{% load static %} {% with events_active="active" %} - {% block precontent %} + {% block header %}
{% if previous_event %} @@ -38,7 +38,7 @@ {% include 'messages.html' %}
-
{% csrf_token %} + {% csrf_token %}
@@ -54,7 +54,7 @@
- {% include 'lineups/info-table.html' with d=details %} + {% include 'benchcoach/info-table.html' with d=details %}
@@ -74,10 +74,10 @@
- {% include 'lineups/player-table.html' with table_id="dhd" formset=formset_dhd available_class="d-none" %} + {% include 'benchcoach/player-table.html' with table_id="dhd" formset=formset_dhd available_class="d-none" %}
- {% include 'lineups/player-table.html' with table_id="lineup" formset=formset_lineup available_class="d-none"%} + {% include 'benchcoach/player-table.html' with table_id="lineup" formset=formset_lineup available_class="d-none"%}
@@ -96,7 +96,7 @@
- {% include 'lineups/player-table.html' with table_id="bench" formset=formset_bench order_class="d-none" %} + {% include 'benchcoach/player-table.html' with table_id="bench" formset=formset_bench order_class="d-none" %}
diff --git a/benchcoach/templates/benchcoach/list.html b/benchcoach/templates/benchcoach/list.html new file mode 100644 index 0000000..74c9693 --- /dev/null +++ b/benchcoach/templates/benchcoach/list.html @@ -0,0 +1,20 @@ +{% extends 'base.html' %} + +{% block navbar %} + {% with events_tab=events_tab_active members_tab=members_tab_active opponents_tab=opponents_tab_active venues_tab=venues_tab_active %} + {{ block.super }} + {% endwith %} +{% endblock %} + +{% block page_heading %} +{{ page_title }} +{% endblock %} + +{% block content %} + +{% endblock %} + \ No newline at end of file diff --git a/lineups/templates/lineups/player-table.html b/benchcoach/templates/benchcoach/player-table.html similarity index 100% rename from lineups/templates/lineups/player-table.html rename to benchcoach/templates/benchcoach/player-table.html diff --git a/players/__init__.py b/players/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/templates/base.html b/templates/base.html index 740cd9e..35d3cd6 100644 --- a/templates/base.html +++ b/templates/base.html @@ -2,53 +2,19 @@ {% load static %} - {% block title %}Title{% endblock %} - - - - - - - - - - + {% include 'base_layout.html' %} +{% block navbar %} +{% include 'navbar.html' %} +{% endblock %} + -
- -{% block precontent %}{% endblock %} - -
+{% block header %} +{% endblock %} +
+

{% block page_heading %}{% endblock %}

{% block content %}{% endblock %}
diff --git a/templates/base_layout.html b/templates/base_layout.html new file mode 100644 index 0000000..0f80539 --- /dev/null +++ b/templates/base_layout.html @@ -0,0 +1,12 @@ +{% load static %} + + + + + + + + + + + \ No newline at end of file diff --git a/templates/edit.html b/templates/edit.html index 7b5ea60..4f9ba19 100644 --- a/templates/edit.html +++ b/templates/edit.html @@ -1,5 +1,5 @@ {% extends 'base.html' %} -{% load crispy_forms_tags %} + {% block content %} {% csrf_token %} diff --git a/templates/navbar.html b/templates/navbar.html new file mode 100644 index 0000000..913464e --- /dev/null +++ b/templates/navbar.html @@ -0,0 +1,29 @@ +{% load static %} + \ No newline at end of file