| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php /** @noinspection PhpUnhandledExceptionInspection */
- namespace App;
- ?>
- <div class="modal fade" role="dialog" tabindex="-1" data-backdrop="static" id="sale-item-modal">
- <div class="modal-dialog modal-lg">
- <form class="modal-content" method="post">
- <?php
- use App\Helpers\HtmlHelper;
- View::include("modals/header", ["title" => __("Lead Item")]);
- ?>
- <input type="hidden" name="sale_item_id" value="" />
- <div class="modal-body">
- <div class="mb-3">
- <label class="form-label" for="sale-item-supplier-id">
- <?=htmlspecialchars(__("Supplier"))?>
- </label>
- <select class="form-select" name="supplier_id" id="sale-item-supplier-id">
- <option value=""><?=htmlspecialchars(__("Select Supplier"))?></option>
- <?php
- HtmlHelper::renderOptions(Supplier::getOptions());
- ?>
- </select>
- </div>
- <div class="mb-3">
- <label for="sale-item-product-id" class="form-label"><?=htmlspecialchars(__("Product"))?></label>
- <select class="form-select" name="product_id" id="sale-item-product-id">
- <option value=""><?=htmlspecialchars(__("Select Product"))?></option>
- </select>
- </div>
- <div class="mb-3">
- <label for="sale-item-quantity" class="form-label">
- <?=htmlspecialchars(__("Quantity"))?>
- </label>
- <input class="form-control" type="number" name="quantity" id="sale-item-quantity" min="0" value="1" placeholder="<?=htmlspecialchars(__("Type quantity"))?>" required />
- </div>
- <div class="mb-3">
- <label for="sale-item-unit-price" class="form-label">
- <?=htmlspecialchars(__("Unit Price"))?>
- </label>
- <input class="form-control" type="number" name="unit_price" id="sale-item-unit-price" min="0.00" step="0.01" value="0.00" placeholder="<?=htmlspecialchars(__("Type unit price"))?>" required />
- </div>
- </div>
- <div class="modal-footer">
- <button type="submit" class="btn btn-success">
- <?= htmlspecialchars(__("Save")) ?>
- </button>
- </div>
- </form>
- </div>
- </div>
|