develop templates for consolidated apps benchcoach
attempted to use as much generic view as possible. the previous views were generic anyway. also did some managing of inheritance (extends/includes)
This commit is contained in:
23
benchcoach/templates/benchcoach/event-list.html
Normal file
23
benchcoach/templates/benchcoach/event-list.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block navbar %}
|
||||
{% with events_tab="active" %}
|
||||
{{ block.super }}
|
||||
{% endwith %}
|
||||
{% endblock %}
|
||||
|
||||
{% block page_heading %}
|
||||
Events
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<ul class="list-group">
|
||||
{% for event in events %}
|
||||
<li class="list-group-item">
|
||||
{{ event.start.date }}<br>{{ event.start.time }}<br>
|
||||
<a href="{% url 'edit lineup' event_id=event.id %}">Edit Lineup...</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
</html>
|
||||
Reference in New Issue
Block a user