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 %}
<table class="table">
<thead>
<tr>
<th>Select</th>
<th>Lot Group / Lot</th>
</tr>
</thead>
<tbody>
{% for tag in lot_tags %} {% for tag in lot_tags %}
<div class="row">
<div class="col-lg-3 col-md-4 label ">{{ tag }}</div>
</div>
{% for lot in lots %} {% for lot in lots %}
{% if lot.type == tag %} {% if lot.type == tag %}
<div class="row"> <tr>
<div class="col-lg-3 col-md-4 label "><input type="checkbox" name="lots" value="{{ lot.id }}" /></div> <td><input type="checkbox" name="lots" value="{{ lot.id }}" /></td>
<div class="col-lg-3 col-md-4 label ">{{ lot.name }}</div> <td>{{ tag }}/{{ lot.name }}</td>
</div> </tr>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% 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>