customer_form.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  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="email">Email Address</label>
  12. <div class="col-sm">
  13. <input class="form-control" type="email" name="email" id="email" placeholder="Enter email address" value="<?=htmlspecialchars($customer->email)?>" />
  14. </div>
  15. </div>
  16. <div class="row mb-1">
  17. <label class="col-sm-4 col-form-label"for="phone">Contact Number</label>
  18. <div class="col-sm">
  19. <input class="form-control" type="text" name="phone" id="phone" placeholder="Enter contact number" value="<?=htmlspecialchars($customer->phone)?>" />
  20. </div>
  21. </div>
  22. <div class="row my-3">
  23. <div class="col-sm offset-sm-4">
  24. <div class="form-check">
  25. <input class="form-check-input" type="checkbox" name="email_after_test" id="email-after-test" value="1" <?=Form::checked($customer->email_after_test)?> />
  26. <label for="email-after-test">Email After Test</label>
  27. </div>
  28. <div class="form-check">
  29. <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)?> />
  30. <label for="email-locations-after-test">Email to Locations After Test</label>
  31. </div>
  32. <button class="btn btn-primary" type="submit" name="submit" value="<?=$_SESSION["csrf_token"]?>">Submit</button>
  33. </div>
  34. </div>
  35. </form>
  36. </div>