Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit 99bae5c3 authored by 65160024's avatar 65160024
Browse files

update

parent 94c4c5ac
Branches
No related tags found
No related merge requests found
...@@ -81,13 +81,17 @@ ...@@ -81,13 +81,17 @@
<td class="px-6 py-4"> <td class="px-6 py-4">
<!-- ฟอร์มยืมอุปกรณ์ --> <!-- ฟอร์มยืมอุปกรณ์ -->
<% if (item.status==='available' ) { %> <% if (item.status==='available' ) { %>
<form action="/borrow" method="POST"> <form action="/confirm-loan" method="POST" class="flex space-x-2">
<input type="hidden" name="equipment_id" value="<%= item.id %>"> <input type="hidden" name="equipment_id" value="<%= item.id %>">
<input type="number" name="quantity" min="1" max="<%= item.quantity %>" required> <label for="quantity" class="text-sm text-gray-700">จำนวน:</label>
<button type="submit">ยืมอุปกรณ์</button> <input type="number" name="quantity" min="1" max="<%= item.quantity %>"
class="p-2 border border-gray-300 rounded-md" required>
<button type="submit"
class="bg-blue-600 text-white p-2 rounded-md hover:bg-blue-700">
ยืมอุปกรณ์
</button>
</form> </form>
<% } else { %> <% } else { %>
<span class="text-gray-400">ไม่สามารถยืมได้</span> <span class="text-gray-400">ไม่สามารถยืมได้</span>
<% } %> <% } %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment