now grid based
This commit is contained in:
parent
5bf873f282
commit
43d9d11a64
|
@ -18,6 +18,13 @@
|
|||
.lot-item.selected {
|
||||
background-color: #e2f0ff;
|
||||
}
|
||||
|
||||
.lot-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
||||
gap: 15px;
|
||||
padding: 15px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="row">
|
||||
|
@ -40,8 +47,9 @@
|
|||
</div>
|
||||
<div id="collapse{{ forloop.counter }}" class="collapse">
|
||||
<div class="card-body">
|
||||
<div class="lot-grid">
|
||||
{% for lot in lots %}
|
||||
<div class="form-check lot-item" data-name="{{ lot.name }}" data-code="{{ lot.code }}">
|
||||
<div class="form-check lot-item ms-2" data-name="{{ lot.name }}" data-code="{{ lot.code }}">
|
||||
<input class="form-check-input mt-2" type="checkbox" name="lots" value="{{ lot.id }}" id="lot{{ lot.id }}">
|
||||
<label class="form-check-label w-100" for="lot{{ lot.id }}">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
|
@ -60,6 +68,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
<button type="submit" id="assignButton" class="btn btn-green-user mt-3" disabled>{% trans "Assign" %}</button>
|
||||
</form>
|
||||
|
|
Loading…
Reference in a new issue