mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Fixed asset edit modal accessibility issues
This commit is contained in:
@@ -175,13 +175,13 @@
|
|||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<label class="form-label">@T["Location"]</label>
|
<label class="form-label">@T["Location"]</label>
|
||||||
<select class="form-select" name="Location" id="createLocationSelect">
|
<select class="form-select" name="Location" aria-label="@T["Location"]" id="createLocationSelect">
|
||||||
<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">@T["Owner"]</label>
|
||||||
<select class="form-select" name="Owner" id="createUsersSelect">
|
<select class="form-select" name="Owner" aria-label="@T[name: "Owner"]" id="createUsersSelect">
|
||||||
<option value="">@T["Select owner"]</option>
|
<option value="">@T["Select owner"]</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -395,41 +395,41 @@
|
|||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="row g-3">
|
<div class="row g-3">
|
||||||
<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" class="form-control" id="updateName" 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" />
|
||||||
|
|
||||||
<h4 class="fw-bold">@T["Description"]</h4>
|
<h4 class="fw-bold">@T["Description"]</h4>
|
||||||
<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">
|
||||||
@@ -446,20 +446,20 @@
|
|||||||
|
|
||||||
<h4 class="fw-bold">@T["Purchase Information"]</h4>
|
<h4 class="fw-bold">@T["Purchase Information"]</h4>
|
||||||
<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>
|
||||||
@@ -486,8 +486,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" placeholder="@T["Attribute name"]" aria-label="@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" placeholder="@T["Attribute value"]" aria-label="@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);
|
||||||
@@ -535,8 +535,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" value="${attrName}" aria-label="@T["Attribute name"]" data-attr-name />
|
||||||
<input type="text" class="form-control" value="${attrValue}" data-attr-value />
|
<input type="text" class="form-control" value="${attrValue}" aria-label="@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);
|
||||||
|
|||||||
Reference in New Issue
Block a user