modal_add_locations_to_project.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * @var Customer $customer
  4. */
  5. ?>
  6. <div class="modal fade" role="dialog" tabindex="-1" id="add-locations-to-project-modal">
  7. <div class="modal-dialog modal-lg">
  8. <form class="modal-content" method="post">
  9. <div class="modal-header">
  10. <strong><?=htmlspecialchars(__("Add Locations To Project"))?></strong>
  11. </div>
  12. <div class="modal-body">
  13. <div class="form-group">
  14. <label for="add-locations-to-project-project-id">
  15. <?=htmlspecialchars(__("Project"))?>
  16. </label>
  17. <select class="form-control" name="project_id" id="add-locations-to-project-project-id" required>
  18. <option value=""><?=htmlspecialchars(__("Select Project"))?></option>
  19. <?php
  20. foreach($customer->getProjects() as $project) {
  21. ?>
  22. <option value="<?=$project->id?>">
  23. <?=htmlspecialchars($project->name)?>
  24. </option>
  25. <?php
  26. }
  27. ?>
  28. </select>
  29. </div>
  30. </div>
  31. <div class="modal-footer">
  32. <input type="hidden" name="submit" value="<?=htmlspecialchars($_SESSION["csrf_token"])?>" />
  33. <button type="submit" class="btn btn-success">
  34. <?= htmlspecialchars(__("Add Locations")) ?>
  35. </button>
  36. </div>
  37. </form>
  38. </div>
  39. </div>