document_item.php 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. namespace App;
  3. use App\Helpers\HtmlHelper;
  4. ?>
  5. <div class="modal fade" role="dialog" tabindex="-1" data-backdrop="static" id="document-item-modal">
  6. <div class="modal-dialog modal-lg">
  7. <form class="modal-content" method="post">
  8. <?php
  9. View::include("modals/header", ["title" => __("Document Item")]);
  10. ?>
  11. <input type="hidden" name="document_item_id" value="" />
  12. <div class="modal-body">
  13. <div class="mb-3">
  14. <label class="form-label" for="document-item-supplier-id">
  15. <?=htmlspecialchars(__("Supplier"))?>
  16. </label>
  17. <select class="form-select" name="supplier_id" id="document-item-supplier-id">
  18. <option value=""><?=htmlspecialchars(__("Select Supplier"))?></option>
  19. <?php
  20. HtmlHelper::renderOptions(Supplier::getOptions());
  21. ?>
  22. </select>
  23. </div>
  24. <div class="mb-3">
  25. <label for="document-item-product-id" class="form-label"><?=htmlspecialchars(__("Product"))?></label>
  26. <select class="form-select" name="product_id" id="document-item-product-id">
  27. <option value=""><?=htmlspecialchars(__("Select Product"))?></option>
  28. </select>
  29. </div>
  30. <div class="mb-3">
  31. <label for="document-item-description" class="form-label">
  32. <?=htmlspecialchars(__("Description"))?>
  33. </label>
  34. <input class="form-control" type="text" name="description" id="document-item-description" placeholder="<?=htmlspecialchars(__("Type description"))?>" maxlength="255" required />
  35. </div>
  36. <div class="mb-3">
  37. <label for="document-item-serial-number" class="form-label">
  38. <?=htmlspecialchars(__("Serial Numbers"))?>
  39. </label>
  40. <textarea class="form-control" name="serial_number" id="document-item-serial-number" placeholder="<?=htmlspecialchars(__("Type serial number"))?>" maxlength="64000" rows="4"></textarea>
  41. </div>
  42. <div class="mb-3">
  43. <label for="document-item-quantity" class="form-label">
  44. <?=htmlspecialchars(__("Quantity"))?>
  45. </label>
  46. <input class="form-control" type="number" name="quantity" id="document-item-quantity" min="0" value="1" placeholder="<?=htmlspecialchars(__("Type quantity"))?>" required />
  47. </div>
  48. <div class="mb-3">
  49. <label for="document-item-unit-price" class="form-label">
  50. <?=htmlspecialchars(__("Unit Price"))?>
  51. </label>
  52. <input class="form-control" type="number" name="unit_price" id="document-item-unit-price" min="0.00" step="0.01" value="0.00" placeholder="<?=htmlspecialchars(__("Type unit price"))?>" required />
  53. </div>
  54. <div class="mb-3">
  55. <label for="document-item-insurance-value" class="form-label">
  56. <?=htmlspecialchars(__("Insurance Value"))?>
  57. </label>
  58. <input class="form-control" type="number" name="insurance_value" id="document-item-insurance-value" min="0.00" step="0.01" value="0.00" placeholder="<?=htmlspecialchars(__("Type insurance value"))?>" required />
  59. </div>
  60. </div>
  61. <div class="modal-footer">
  62. <button type="submit" class="btn btn-success">
  63. <?= htmlspecialchars(__("Save")) ?>
  64. </button>
  65. </div>
  66. </form>
  67. </div>
  68. </div>