set column widths on tables

This commit is contained in:
2021-12-10 18:21:06 -06:00
parent 651b0f9d67
commit be21a6beb6

View File

@@ -18,25 +18,20 @@
{{ form.player.as_hidden }}
{{ form.teamsnap_id.as_hidden }}
<th scope="row"
id="player-order-{{ form.instance.player.id }}"
class="{{ order_class }}">
{% if form.order.value %}
<button type="button"
class="btn btn-light p-1"
id="player-order-button-{{ form.instance.player.id }}"
onclick="toggle_in_lineup(this)"
>
{{ form.order.value }}
</button>
{% elif form.order.value == 0 %}
<button type="button"
class="btn btn-dark p-1"s
id="player-order-button-{{ form.instance.player.id }}"
onclick="toggle_in_lineup(this)"
>
D
</button>
<th scope="row" class="col-1">
<span id="player-order-{{ form.instance.player.id }}">
{% if form.order.value > 0 %} {{ form.order.value }} {% endif %}
</span>
<span id="player-availability-{{ form.instance.player.id }}" class="mx-1 {{ available_class }}">
{% if form.availability.available == 2 %}
<i class="bi bi-circle-fill text-success"></i>
{% elif form.availability.available == 1 %}
<i class="bi bi-circle-fill text-info"></i>
{% elif form.availability.available == 0 %}
<i class="bi bi-circle-fill text-danger"></i>
{% else %}
<i class="bi bi-circle-fill text-secondary"></i>
{% endif %}
</th>
@@ -58,7 +53,7 @@
<small class="text-muted fw-light">#{{ form.instance.player.jersey_number }}</small>
{# <br><code><small>{{ form.statline }}</small></code>#}
</th>
<td>
<td class="col-2">
{{ form.position }}
</td>
{# <td>{{ form.instance.position }}</td>#}