Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit 94c4c5ac authored by 65160024's avatar 65160024
Browse files

update indexjs

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