improve view of list lots

now it's a table and is easier to follow
This commit is contained in:
pedro 2025-02-20 14:21:33 +01:00
parent 58d6ac09d4
commit 4a911f2aee

View file

@ -11,20 +11,26 @@
<form method="post"> <form method="post">
{% csrf_token %} {% csrf_token %}
{% for tag in lot_tags %} <table class="table">
<div class="row"> <thead>
<div class="col-lg-3 col-md-4 label ">{{ tag }}</div> <tr>
</div> <th>Select</th>
<th>Lot Group / Lot</th>
{% for lot in lots %} </tr>
{% if lot.type == tag %} </thead>
<div class="row"> <tbody>
<div class="col-lg-3 col-md-4 label "><input type="checkbox" name="lots" value="{{ lot.id }}" /></div> {% for tag in lot_tags %}
<div class="col-lg-3 col-md-4 label ">{{ lot.name }}</div> {% for lot in lots %}
</div> {% if lot.type == tag %}
{% endif %} <tr>
{% endfor %} <td><input type="checkbox" name="lots" value="{{ lot.id }}" /></td>
{% endfor %} <td>{{ tag }}/{{ lot.name }}</td>
</tr>
{% endif %}
{% endfor %}
{% endfor %}
</tbody>
</table>
<button class="btn btn-green-admin" type="submit">Save</button> <button class="btn btn-green-admin" type="submit">Save</button>
</form> </form>