| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- /**
- * @var Customer $customer
- */
- ?>
- <div class="modal fade" role="dialog" tabindex="-1" id="add-locations-to-project-modal">
- <div class="modal-dialog modal-lg">
- <form class="modal-content" method="post">
- <div class="modal-header">
- <strong><?=htmlspecialchars(__("Add Locations To Project"))?></strong>
- </div>
- <div class="modal-body">
- <div class="form-group">
- <label for="add-locations-to-project-project-id">
- <?=htmlspecialchars(__("Project"))?>
- </label>
- <select class="form-control" name="project_id" id="add-locations-to-project-project-id" required>
- <option value=""><?=htmlspecialchars(__("Select Project"))?></option>
- <?php
- foreach($customer->getProjects() as $project) {
- ?>
- <option value="<?=$project->id?>">
- <?=htmlspecialchars($project->name)?>
- </option>
- <?php
- }
- ?>
- </select>
- </div>
- </div>
- <div class="modal-footer">
- <input type="hidden" name="submit" value="<?=htmlspecialchars($_SESSION["csrf_token"])?>" />
- <button type="submit" class="btn btn-success">
- <?= htmlspecialchars(__("Add Locations")) ?>
- </button>
- </div>
- </form>
- </div>
- </div>
|