mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Fixed accessibility issues for inventory asset edit view
This commit is contained in:
@@ -346,42 +346,42 @@
|
|||||||
<div class="row g-3">
|
<div class="row g-3">
|
||||||
<!-- Same fields as in Create -->
|
<!-- Same fields as in Create -->
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label class="form-label">@T["Name"]</label>
|
<label class="form-label" for="updateName">@T["Name"]</label>
|
||||||
<input type="text" class="form-control" name="Name" />
|
<input type="text" id="updateName" class="form-control" name="Name" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label class="form-label">@T["Location"]</label>
|
<label class="form-label" for="updateLocationSelect">@T["Location"]</label>
|
||||||
<select class="form-select" name="Location" id="updateLocationSelect">
|
<select class="form-select" name="Location" aria-label="@T["Location"]" id="updateLocationSelect">
|
||||||
<option value="">@T["Select location"]</option>
|
<option value="">@T["Select location"]</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label class="form-label">@T["Owner"]</label>
|
<label class="form-label" for="updateUsersSelect">@T["Owner"]</label>
|
||||||
<select class="form-select" name="Owner" id="updateUsersSelect">
|
<select class="form-select" name="Owner" aria-label="@T["Owner"]" id="updateUsersSelect">
|
||||||
<option value="">@T["Select owner"]</option>
|
<option value="">@T["Select owner"]</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label class="form-label">@T["Serial Number"]</label>
|
<label class="form-label" for="updateSerialNumber">@T["Serial Number"]</label>
|
||||||
<input type="text" class="form-control" name="SerialNumber" />
|
<input type="text" class="form-control" id="updateSerialNumber" name="SerialNumber" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr class="my-3" />
|
<hr class="my-3" />
|
||||||
|
|
||||||
<h6 class="fw-bold">@T["Description"]</h6>
|
<h6 class="fw-bold">@T["Description"]</h6>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label class="form-label">@T["Type"]</label>
|
<label class="form-label" for="updateType">@T["Type"]</label>
|
||||||
<input type="text" class="form-control" name="Description.Type" />
|
<input type="text" class="form-control" id="updateType" name="Description.Type" />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label class="form-label">@T["Make"]</label>
|
<label class="form-label" for="updateMake">@T["Make"]</label>
|
||||||
<input type="text" class="form-control" name="Description.Make" />
|
<input type="text" class="form-control" id="updateMake" name="Description.Make" />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label class="form-label">@T["Model"]</label>
|
<label class="form-label" for="updateModel">@T["Model"]</label>
|
||||||
<input type="text" class="form-control" name="Description.Model" />
|
<input type="text" class="form-control" id="updateModel" name="Description.Model" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 mt-3">
|
<div class="col-12 mt-3">
|
||||||
@@ -398,20 +398,20 @@
|
|||||||
|
|
||||||
<h6 class="fw-bold">@T["Purchase Information"]</h6>
|
<h6 class="fw-bold">@T["Purchase Information"]</h6>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label class="form-label">@T["Purchase Date"]</label>
|
<label class="form-label" for="updatePurchaseDate">@T["Purchase Date"]</label>
|
||||||
<input type="date" class="form-control" name="Description.Purchase.PurchaseDate" />
|
<input type="date" class="form-control" id="updatePurchaseDate" name="Description.Purchase.PurchaseDate" />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label class="form-label">@T["Purchase Value"]</label>
|
<label class="form-label" for="updatePurchaseValue">@T["Purchase Value"]</label>
|
||||||
<input type="text" class="form-control" name="Description.Purchase.PurchaseValue" />
|
<input type="text" class="form-control" id="updatePurchaseValue" name="Description.Purchase.PurchaseValue" />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label class="form-label">@T["Purchased At"]</label>
|
<label class="form-label" for="updatePurchaseAt">@T["Purchased At"]</label>
|
||||||
<input type="text" class="form-control" name="Description.Purchase.PurchaseAt" />
|
<input type="text" class="form-control" id="updatePurchaseAt" name="Description.Purchase.PurchaseAt" />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label class="form-label">@T["Purchased By"]</label>
|
<label class="form-label" for="updatePurchaseBy">@T["Purchased By"]</label>
|
||||||
<input type="text" class="form-control" name="Description.Purchase.PurchaseBy" />
|
<input type="text" class="form-control" id="updatePurchaseBy" name="Description.Purchase.PurchaseBy" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -438,8 +438,8 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
const row = document.createElement('div');
|
const row = document.createElement('div');
|
||||||
row.className = 'd-flex gap-2 align-items-center attribute-row';
|
row.className = 'd-flex gap-2 align-items-center attribute-row';
|
||||||
row.innerHTML = `
|
row.innerHTML = `
|
||||||
<input type="text" class="form-control" placeholder="@T["Attribute name"]" data-attr-name />
|
<input type="text" class="form-control" aria-label="@T["Attribute name"]" placeholder="@T["Attribute name"]" data-attr-name />
|
||||||
<input type="text" class="form-control" placeholder="@T["Attribute value"]" data-attr-value />
|
<input type="text" class="form-control" aria-label="@T["Attribute value"]" placeholder="@T["Attribute value"]" data-attr-value />
|
||||||
<button type="button" class="btn btn-danger btn-sm btn-remove-attribute">@T["Remove"]</button>
|
<button type="button" class="btn btn-danger btn-sm btn-remove-attribute">@T["Remove"]</button>
|
||||||
`;
|
`;
|
||||||
updateAttributesContainer.appendChild(row);
|
updateAttributesContainer.appendChild(row);
|
||||||
@@ -489,8 +489,8 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
const row = document.createElement('div');
|
const row = document.createElement('div');
|
||||||
row.className = 'd-flex gap-2 align-items-center attribute-row';
|
row.className = 'd-flex gap-2 align-items-center attribute-row';
|
||||||
row.innerHTML = `
|
row.innerHTML = `
|
||||||
<input type="text" class="form-control" value="${attrName}" data-attr-name />
|
<input type="text" class="form-control" aria-label="@T["Attribute name"]" value="${attrName}" data-attr-name />
|
||||||
<input type="text" class="form-control" value="${attrValue}" data-attr-value />
|
<input type="text" class="form-control" aria-label="@T["Attribute value"]" value="${attrValue}" data-attr-value />
|
||||||
<button type="button" class="btn btn-danger btn-sm btn-remove-attribute">@T["Remove"]</button>
|
<button type="button" class="btn btn-danger btn-sm btn-remove-attribute">@T["Remove"]</button>
|
||||||
`;
|
`;
|
||||||
updateAttributesContainer.appendChild(row);
|
updateAttributesContainer.appendChild(row);
|
||||||
|
|||||||
Reference in New Issue
Block a user