|
|
@@ -15,6 +15,15 @@ $user = $core->getUser();
|
|
|
|
|
|
$location = $sale->getLocation();
|
|
|
|
|
|
+$customers = Customer::getAll();
|
|
|
+
|
|
|
+$location_options = [];
|
|
|
+foreach($customers as $customer) {
|
|
|
+ foreach($customer->getLocations() as $customer_location) {
|
|
|
+ $location_options[$customer_location->id] = $customer_location->getDisplayName();
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
?>
|
|
|
|
|
|
<section class="mb-4">
|
|
|
@@ -44,7 +53,7 @@ $location = $sale->getLocation();
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
- <div class="col-md">
|
|
|
+ <div class="col-md-6">
|
|
|
<div class="mb-3">
|
|
|
<label class="form-label" for="company-id">
|
|
|
<?=htmlspecialchars(__("Company"))?>
|
|
|
@@ -57,7 +66,17 @@ $location = $sale->getLocation();
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="col-md">
|
|
|
+ <div class="col-md-6">
|
|
|
+ <div class="mb-3">
|
|
|
+ <label class="form-label" for="location-id"><?= htmlspecialchars(__("Location")) ?></label>
|
|
|
+ <select class="form-select" name="location_id" id="location-id">
|
|
|
+ <?php
|
|
|
+ HtmlHelper::renderOptions($location_options, $sale->location_id);
|
|
|
+ ?>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-md-6">
|
|
|
<div class="mb-3">
|
|
|
<label class="form-label" for="date-predicted-sold"><?=htmlspecialchars(__("Predicted Sold Date"))?></label>
|
|
|
<input class="form-control" type="date" name="date_predicted_sold" id="date-predicted-sold" value="<?=htmlspecialchars($sale->date_predicted_sold)?>" required />
|