You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add layout and component fragments for improved HTML structure
- Created a new layout fragment to standardize page structure with dynamic title and content.
- Introduced component fragments for navigation, action buttons, sales table header, and empty state.
- Refactored index, new_form, and search templates to utilize the new layout and component fragments.
- Enhanced styling for buttons, tables, and forms for a modern look and feel.
- Implemented responsive design adjustments for better usability on smaller screens.
<td><inputtype="text" th:field="*{item}" th:value="${sale != null ? sale.item : ''}" requiredminlength="3" maxlength="50" title="Item name must be between 2 and 50 characters long." /></td>
58
-
</tr>
59
-
<tr>
60
-
<td>Quantity:</td>
61
-
<td><inputtype="text" th:field="*{quantity}" th:value="${sale != null ? sale.quantity : ''}" pattern="[0-9]*" title="Please enter an integer" required/></td>
62
-
</tr>
63
-
<tr>
64
-
<td>Amount (USD):</td>
65
-
<td><inputtype="text" th:field="*{amount}" th:value="${sale != null ? sale.amount : ''}" pattern="^([1-9][0-9]{0,5}|500000)(\.[0-9]{1,2})?$" title="Please enter an amount up to 500,000, including up to two decimal places" /></td>
0 commit comments