Consolidated schedule into an events list.

This commit is contained in:
2021-11-14 11:20:57 -06:00
parent cc1421c6e1
commit 1ec7a09620
9 changed files with 85 additions and 48 deletions

View File

@@ -20,7 +20,7 @@
<div class="collapse navbar-collapse">
<ul class="navbar-nav mr-auto">
<li>
<a class="nav-link" href="{% url 'schedule' %}">Schedule</a>
<a class="nav-link" href="{% url 'events list' %}">Events</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'players list' %}">Players</a>

View File

@@ -7,9 +7,15 @@
<ol class="list-group">
{% for item in items %}
<li class="list-group-item">
<span class="fs-5 fw-bold">{{ item.title }}</span> <span class="fs-6">{{ item.subtitle }}</span>
<span class="fs-5 fw-bold">{{ item.title }}</span>
<span class="fs-6">{{ item.subtitle }}</span>
{% if item.body %}
<br><span class="fs-6">{{ item.body }}</span>
{% endif %}
<br>
<a class="btn btn-primary btn-sm" href="{% url edit_url_name item.id%}" role="button">Edit</a>
{% for button in item.buttons %}
<a class="btn btn-primary btn-sm" href="{{ button.href }}" role="button">{{ button.label }}</a>
{% endfor %}
</li>
{% endfor %}
</ol>