mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-09-21 02:07:23 -04:00
fix(view): add aria-label for default stock location and update element IDs
- Improved accessibility by adding an `aria-label` to default stock location radio inputs. - Updated ID formatting for stock location input elements. Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com>
This commit is contained in:
1 parent
a6076c9068
commit
593a2f0d7d
2 files changed
+7
-5
No files matched your search
@@ -296,6 +296,7 @@ return [
|
||||
'statistics' => 'Send Statistics',
|
||||
'statistics_tooltip' => 'Send statistics for development and feature improvement purposes.',
|
||||
'stock_location' => 'Stock location',
|
||||
'stock_location_default' => 'Default stock location',
|
||||
'stock_location_duplicate' => 'Stock Location must be unique.',
|
||||
'stock_location_invalid_chars' => "Stock Location can not contain '_'.",
|
||||
'stock_location_required' => 'Stock location is a required field.',
|
||||
|
||||
@@ -17,17 +17,18 @@ foreach ($stock_locations as $location => $locationData) {
|
||||
<span class="drag_handle glyphicon glyphicon-resize-vertical col-xs-1" style="cursor: move; padding-top: 0.5em;"></span>
|
||||
<div class="col-xs-1">
|
||||
<?= form_radio([
|
||||
'name' => 'stock_location_default',
|
||||
'value' => $locationId,
|
||||
'checked' => (bool) $locationData['is_default'],
|
||||
'class' => 'stock_location_default'
|
||||
'name' => 'stock_location_default',
|
||||
'value' => $locationId,
|
||||
'checked' => (bool) $locationData['is_default'],
|
||||
'class' => 'stock_location_default',
|
||||
'aria-label' => lang('Config.stock_location_default')
|
||||
]) ?>
|
||||
</div>
|
||||
<?= form_label(lang('Config.stock_location') . " $i", "stock_location_$i", ['class' => 'required control-label col-xs-2']) ?>
|
||||
<div class="col-xs-2">
|
||||
<?php $formData = [
|
||||
'name' => "stock_location[$locationId]",
|
||||
'id' => "stock_location[$locationId]",
|
||||
'id' => "stock_location_$i",
|
||||
'class' => 'stock_location valid_chars form-control input-sm required',
|
||||
'value' => $locationName
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user