Merge pull request #270 from LD-Reborn/247-bug-asset-create-modal-accessibility-issues

Fixed asset create modal accessibility issues
This commit is contained in:
LD50
2025-11-02 23:40:09 +01:00
committed by GitHub

View File

@@ -169,25 +169,25 @@
<div class="row g-3">
<!-- Basic Info -->
<div class="col-md-6">
<label class="form-label">@T["Name"]</label>
<input type="text" class="form-control" name="Name" />
<label class="form-label" for="createName">@T["Name"]</label>
<input type="text" class="form-control" id="createName" name="Name" />
</div>
<div class="col-md-6">
<label class="form-label">@T["Location"]</label>
<label class="form-label" for="createLocationSelect">@T["Location"]</label>
<select class="form-select" name="Location" aria-label="@T["Location"]" id="createLocationSelect">
<option value="">@T["Select location"]</option>
</select>
</div>
<div class="col-md-6">
<label class="form-label">@T["Owner"]</label>
<label class="form-label" for="createUsersSelect">@T["Owner"]</label>
<select class="form-select" name="Owner" aria-label="@T[name: "Owner"]" id="createUsersSelect">
<option value="">@T["Select owner"]</option>
</select>
</div>
<div class="col-md-6">
<label class="form-label">@T["Serial Number"]</label>
<input type="text" class="form-control" name="SerialNumber" />
<label class="form-label" for="createSerialNumber">@T["Serial Number"]</label>
<input type="text" class="form-control" id="createSerialNumber" name="SerialNumber" />
</div>
<hr class="my-3" />
@@ -195,16 +195,16 @@
<!-- Description Section -->
<h4 class="fw-bold">@T["Description"]</h4>
<div class="col-md-6">
<label class="form-label">@T["Type"]</label>
<input type="text" class="form-control" name="Description.Type" />
<label class="form-label" for="createType">@T["Type"]</label>
<input type="text" class="form-control" id="createType" name="Description.Type" />
</div>
<div class="col-md-6">
<label class="form-label">@T["Make"]</label>
<input type="text" class="form-control" name="Description.Make" />
<label class="form-label" for="createMake">@T["Make"]</label>
<input type="text" class="form-control" id="createMake" name="Description.Make" />
</div>
<div class="col-md-6">
<label class="form-label">@T["Model"]</label>
<input type="text" class="form-control" name="Description.Model" />
<label class="form-label" for="createModel">@T["Model"]</label>
<input type="text" class="form-control" id="createModel" name="Description.Model" />
</div>
@@ -226,20 +226,20 @@
<!-- Purchase Info -->
<h4 class="fw-bold">@T["Purchase Information"]</h4>
<div class="col-md-6">
<label class="form-label">@T["Purchase Date"]</label>
<input type="date" class="form-control" name="Description.Purchase.PurchaseDate" />
<label class="form-label" for="createPurchaseDate">@T["Purchase Date"]</label>
<input type="date" class="form-control" id="createPurchaseDate" name="Description.Purchase.PurchaseDate" />
</div>
<div class="col-md-6">
<label class="form-label">@T["Purchase Value"]</label>
<input type="text" class="form-control" name="Description.Purchase.PurchaseValue" />
<label class="form-label" for="createPurchaseValue">@T["Purchase Value"]</label>
<input type="text" class="form-control" id="createPurchaseValue" name="Description.Purchase.PurchaseValue" />
</div>
<div class="col-md-6">
<label class="form-label">@T["Purchased At"]</label>
<input type="text" class="form-control" name="Description.Purchase.PurchaseAt" />
<label class="form-label" for="createPurchaseAt">@T["Purchased At"]</label>
<input type="text" class="form-control" id="createPurchaseAt" name="Description.Purchase.PurchaseAt" />
</div>
<div class="col-md-6">
<label class="form-label">@T["Purchased By"]</label>
<input type="text" class="form-control" name="Description.Purchase.PurchaseBy" />
<label class="form-label" for="createPurchaseBy">@T["Purchased By"]</label>
<input type="text" class="form-control" id="createPurchaseBy" name="Description.Purchase.PurchaseBy" />
</div>
</div>
</div>