Skip to content

Commit 3457e7d

Browse files
committed
Remove Form::name_display_format macro
1 parent edbe800 commit 3457e7d

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

resources/macros/macros.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -104,23 +104,6 @@
104104
return $select;
105105
});
106106

107-
108-
Form::macro('name_display_format', function ($name = 'name_display_format', $selected = null, $class = null) {
109-
$formats = [
110-
'first_last' => trans('general.firstname_lastname_display'),
111-
'last_first' => trans('general.lastname_firstname_display'),
112-
];
113-
114-
$select = '<select name="'.$name.'" class="'.$class.'" style="width: 100%" aria-label="'.$name.'">';
115-
foreach ($formats as $format => $label) {
116-
$select .= '<option value="'.$format.'"'.($selected == $format ? ' selected="selected" role="option" aria-selected="true"' : ' aria-selected="false"').'>'.$label.'</option> '."\n";
117-
}
118-
119-
$select .= '</select>';
120-
121-
return $select;
122-
});
123-
124107
/**
125108
* Barcode macro
126109
* Generates the dropdown menu of available 1D barcodes

0 commit comments

Comments
 (0)