3
0
mirror of https://github.com/snipe/snipe-it.git synced 2025-11-01 16:18:45 +00:00

Remove name_display_format macro that was accidentally re-added

This commit is contained in:
Marcus Moore 2025-10-06 13:06:52 -07:00
parent 23885f5166
commit cd785c9fc3
No known key found for this signature in database

View File

@ -86,22 +86,6 @@ Form::macro('time_display_format', function ($name = 'time_display_format', $sel
return $select;
});
Form::macro('name_display_format', function ($name = 'name_display_format', $selected = null, $class = null) {
$formats = [
'first_last' => trans('general.firstname_lastname_display'),
'last_first' => trans('general.lastname_firstname_display'),
];
$select = '<select name="' . $name . '" class="' . $class . '" style="width: 100%" aria-label="' . $name . '">';
foreach ($formats as $format => $label) {
$select .= '<option value="' . $format . '"' . ($selected == $format ? ' selected="selected" role="option" aria-selected="true"' : ' aria-selected="false"') . '>' . $label . '</option> ' . "\n";
}
$select .= '</select>';
return $select;
});
/**
* Barcode macro
* Generates the dropdown menu of available 1D barcodes