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