Added status dropdown to item-create/edit modal
This commit is contained in:
parent
50d98c0894
commit
1f85dd5710
@ -1,8 +1,8 @@
|
|||||||
<%~ E.includeFile("partials/head.eta.html", {"title": "Items"}) %> <%~ E.includeFile("partials/controls.eta.html", {"active": "Items"}) %>
|
<%~ E.includeFile("partials/head.eta.html", {"title": "Items"}) %> <%~ E.includeFile("partials/controls.eta.html", {"active": "Items"}) %>
|
||||||
|
|
||||||
<div class="modal fade" id="itemModifyModal" tabindex="-1" aria-labelledby="itemModifyModal" aria-hidden="true">
|
<div class="modal fade" id="itemModifyModal" tabindex="-1" aria-labelledby="itemModifyModal" aria-hidden="true">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog modal-dialog-centered modal-lg ">
|
||||||
<div class="modal-content">
|
<div class="modal-content modal-dialog-scrollable">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h1 class="modal-title fs-5" id="itemModifyModalLabel">Edit a item</h1>
|
<h1 class="modal-title fs-5" id="itemModifyModalLabel">Edit a item</h1>
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||||
@ -56,6 +56,20 @@
|
|||||||
<div id="storageLocationModalLocationText" class="form-text">You have to create a storage location beforehand.</div>
|
<div id="storageLocationModalLocationText" class="form-text">You have to create a storage location beforehand.</div>
|
||||||
<input type="hidden" id="storageLocationModalIdHidden" name="id" />
|
<input type="hidden" id="storageLocationModalIdHidden" name="id" />
|
||||||
</div>
|
</div>
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="itemModifyModalStatus" class="form-label">Status</label>
|
||||||
|
<select class="form-select" id="itemModifyModalStatus" name="status" required>
|
||||||
|
<option value="normal" class="text-success">Normal</option>
|
||||||
|
<option value="borrowed" class="text-info">Borrowed</option>
|
||||||
|
<option value="stolen" class="text-danger">Stolen</option>
|
||||||
|
<option value="lost" class="text-warning"">Lost</option>
|
||||||
|
|
||||||
|
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<div id="storageLocationModalLocationText" class="form-text">You have to create a storage location beforehand.</div>
|
||||||
|
<input type="hidden" id="storageLocationModalIdHidden" name="id" />
|
||||||
|
</div>
|
||||||
<input type="text" id="itemModifyModalId" name="id" hidden />
|
<input type="text" id="itemModifyModalId" name="id" hidden />
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
@ -67,7 +81,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- TODO: Center table content -->
|
|
||||||
<h1>Items</h1>
|
<h1>Items</h1>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
Loading…
Reference in New Issue
Block a user