WIP: Add to lot view search support and UI changes #62
|
@ -18,6 +18,13 @@
|
||||||
.lot-item.selected {
|
.lot-item.selected {
|
||||||
background-color: #e2f0ff;
|
background-color: #e2f0ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.lot-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
||||||
|
gap: 15px;
|
||||||
|
padding: 15px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -40,8 +47,9 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="collapse{{ forloop.counter }}" class="collapse">
|
<div id="collapse{{ forloop.counter }}" class="collapse">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
<div class="lot-grid">
|
||||||
{% for lot in lots %}
|
{% 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 }}">
|
<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 }}">
|
<label class="form-check-label w-100" for="lot{{ lot.id }}">
|
||||||
<div class="d-flex justify-content-between align-items-center">
|
<div class="d-flex justify-content-between align-items-center">
|
||||||
|
@ -60,6 +68,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<button type="submit" id="assignButton" class="btn btn-green-user mt-3" disabled>{% trans "Assign" %}</button>
|
<button type="submit" id="assignButton" class="btn btn-green-user mt-3" disabled>{% trans "Assign" %}</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue