A free open source IT asset/license management system
Remove the replaced locales form macro
Marcus Mooreca7c416e1987
diff --git a/resources/macros/macros.php b/resources/macros/macros.phpindex 68e729cd7a..231fb0ab8e 100644--- a/resources/macros/macros.php+++ b/resources/macros/macros.php@@ -3,27 +3,6 @@* Macro helpers*/-/**- * Locale macro- * Generates the dropdown menu of available languages- */-Form::macro('locales', function ($name = 'locale', $selected = null, $class = null, $id = null) {-- $idclause = (!is_null($id)) ? $id : '';-- $select = '<select name="'.$name.'" class="'.$class.'" style="width:100%"'.$idclause.' aria-label="'.$name.'" data-placeholder="'.trans('localizations.select_language').'">';- $select .= '<option value="" role="option">'.trans('localizations.select_language').'</option>';-- // Pull the autoglossonym array from the localizations translation file- foreach (trans('localizations.languages') as $abbr => $locale) {- $select .= '<option value="'.$abbr.'"'.(($selected == $abbr) ? ' selected="selected" role="option" aria-selected="true"' : ' aria-selected="false"').'>'.$locale.'</option> ';- }-- $select .= '</select>';-- return $select;-});-/*** Country macro* Generates the dropdown menu of countries for the profile form