|
|
@@ -38,19 +38,13 @@ $default_company_id = $settings->defaultCompanyId ?? null;
|
|
|
<select class="form-control" name="location_id" id="location-id">
|
|
|
<?php
|
|
|
foreach($customers as $customer) {
|
|
|
- ?>
|
|
|
- <optgroup label="<?=htmlspecialchars($customer->name)?>">
|
|
|
- <?php
|
|
|
- foreach($customer->getLocations() as $location) {
|
|
|
- ?>
|
|
|
- <option value="<?=$location->id?>">
|
|
|
- <?=htmlspecialchars($location->name)?>
|
|
|
- </option>
|
|
|
- <?php
|
|
|
- }
|
|
|
+ foreach($customer->getLocations() as $location) {
|
|
|
?>
|
|
|
- </optgroup>
|
|
|
- <?php
|
|
|
+ <option value="<?=$location->id?>">
|
|
|
+ <?=htmlspecialchars($location->getDisplayName())?>
|
|
|
+ </option>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
}
|
|
|
?>
|
|
|
</select>
|