1
0

customer_form.php 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <div class="container mt-3 py-4">
  2. <h2><?=htmlspecialchars($page_title)?></h2>
  3. <form method="post">
  4. <div class="row mb-1">
  5. <label class="col-sm-4 col-form-label" for="name">Name</label>
  6. <div class="col-sm">
  7. <input class="form-control" type="text" name="name" id="name" placeholder="Enter name" value="<?=htmlspecialchars($customer->name)?>" required />
  8. </div>
  9. </div>
  10. <div class="row mb-1">
  11. <label class="col-sm-4 col-form-label" for="address-1">Address Line 1</label>
  12. <div class="col-sm">
  13. <input class="form-control" type="text" name="address_1" id="address-1" placeholder="Enter address line 1" value="<?=htmlspecialchars($customer->address_1)?>" />
  14. </div>
  15. </div>
  16. <div class="row mb-1">
  17. <label class="col-sm-4 col-form-label" for="address-2">Address Line 2</label>
  18. <div class="col-sm">
  19. <input class="form-control" type="text" name="address_2" id="address-2" placeholder="Enter address line 2" value="<?=htmlspecialchars($customer->address_2)?>" />
  20. </div>
  21. </div>
  22. <div class="row mb-1">
  23. <label class="col-sm-4 col-form-label" for="city">City</label>
  24. <div class="col-sm">
  25. <input class="form-control" type="text" name="city" id="city" placeholder="Enter city" value="<?=htmlspecialchars($customer->city)?>" />
  26. </div>
  27. </div>
  28. <div class="row mb-1">
  29. <label class="col-sm-4 col-form-label" for="county">County</label>
  30. <div class="col-sm">
  31. <input class="form-control" type="text" name="county" id="county" placeholder="Enter county" value="<?=htmlspecialchars($customer->county)?>" />
  32. </div>
  33. </div>
  34. <div class="row mb-1">
  35. <label class="col-sm-4 col-form-label" for="postal-code">Postal Code</label>
  36. <div class="col-sm">
  37. <input class="form-control" type="text" name="postal_code" id="postal-code" placeholder="Enter postal code" value="<?=htmlspecialchars($customer->postal_code)?>" />
  38. </div>
  39. </div>
  40. <div class="row mb-1">
  41. <label class="col-sm-4 col-form-label"for="email">Email Address</label>
  42. <div class="col-sm">
  43. <input class="form-control" type="email" name="email" id="email" placeholder="Enter email address" value="<?=htmlspecialchars($customer->email)?>" />
  44. </div>
  45. </div>
  46. <div class="row mb-1">
  47. <label class="col-sm-4 col-form-label"for="phone">Contact Number</label>
  48. <div class="col-sm">
  49. <input class="form-control" type="text" name="phone" id="phone" placeholder="Enter contact number" value="<?=htmlspecialchars($customer->phone)?>" />
  50. </div>
  51. </div>
  52. <div class="row my-3">
  53. <div class="col-sm offset-sm-4">
  54. <div class="form-check">
  55. <input class="form-check-input" type="checkbox" name="email_after_test" id="email-after-test" value="1" <?=Form::checked($customer->email_after_test)?> />
  56. <label for="email-after-test">Email After Test</label>
  57. </div>
  58. <div class="form-check">
  59. <input class="form-check-input" type="checkbox" name="email_locations_after_test" id="email-locations-after-test" value="1" <?=Form::checked($customer->email_locations_after_test)?> />
  60. <label for="email-locations-after-test">Email to Locations After Test</label>
  61. </div>
  62. <button class="btn btn-primary" type="submit" name="submit" value="<?=$_SESSION["csrf_token"]?>">Submit</button>
  63. </div>
  64. </div>
  65. </form>
  66. </div>