|
|
@@ -1,5 +1,9 @@
|
|
|
<?php
|
|
|
|
|
|
+namespace App;
|
|
|
+
|
|
|
+use App\Helpers\HtmlHelper;
|
|
|
+
|
|
|
/**
|
|
|
* @var int $customer_id
|
|
|
*/
|
|
|
@@ -7,6 +11,11 @@
|
|
|
?>
|
|
|
|
|
|
<div class="mb-3">
|
|
|
- <label class="form-label" for="customer-id"><?=htmlspecialchars(__("Customer ID"))?></label>
|
|
|
- <input class="form-control" type="number" name="customer_id" id="customer-id" value="<?=htmlspecialchars($customer_id)?>" placeholder="<?=htmlspecialchars(__("Type ID"))?>" />
|
|
|
+ <label class="form-label" for="customer-id"><?=htmlspecialchars(__("Customer"))?></label>
|
|
|
+ <select class="form-select" name="customer_id" id="customer-id">
|
|
|
+ <option value=""><?=htmlspecialchars(__("Select Customer"))?></option>
|
|
|
+ <?php
|
|
|
+ HtmlHelper::renderOptions(Customer::getOptions(), $customer_id);
|
|
|
+ ?>
|
|
|
+ </select>
|
|
|
</div>
|