Merge branch 'master' into lineup_as_table
This commit is contained in:
@@ -7,7 +7,8 @@
|
||||
{{ event.venue.name }} <br>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="col-md-6">
|
||||
<h6>Lineup</h6>
|
||||
{# <ul class="list-group">#}
|
||||
<form action="{% url 'edit lineup' event_id=event.id%}" method="post">
|
||||
|
||||
@@ -35,10 +36,23 @@
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="col-6">
|
||||
<div class="col-md-6">
|
||||
<h6>Players</h6>
|
||||
<ul class="list-group">
|
||||
{% for player in players %}
|
||||
<li class="list-group-item">{{ player.first_name }} {{ player.last_name }}</li>
|
||||
<li class="list-group-item">
|
||||
{% if player.availability.available == 2 %}
|
||||
<img class="bg-success p-2 rounded-circle" width="5" height="5"><span class="visually-hidden">Yes</span></img>
|
||||
{% elif player.availability.available == 1%}
|
||||
<img class="bg-info p-2 rounded-circle" width="5" height="5"><span class="visually-hidden">Maybe</span></span>
|
||||
{% elif player.availability.available == 0%}
|
||||
<img class="bg-danger p-2 rounded-circle" width="5" height="5"><span class="visually-hidden">No</span></span>
|
||||
{% elif player.availability.available == -1%}
|
||||
<img class="bg-secondary p-2 rounded-circle" width="5" height="5"><span class="visually-hidden">Unknown</span></span>
|
||||
{% endif %}
|
||||
{{ player.first_name }} {{ player.last_name }}
|
||||
<code><small>{{ player.statline }}</small></code>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user