map.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. namespace App;
  3. /**
  4. * @var Customer[] $customers
  5. */
  6. ?>
  7. <div class="row mb-3">
  8. <div class="col">
  9. <h3><?=htmlspecialchars(__("Map"))?></h3>
  10. </div>
  11. </div>
  12. <div class="row">
  13. <div class="col-xl-3 col-lg-4">
  14. <table id="customers-table" class="table table-bordered">
  15. <colgroup>
  16. <col style="width: 1%"/>
  17. <col style="width: 100%"/>
  18. </colgroup>
  19. <thead>
  20. <tr>
  21. <th>
  22. <!--suppress HtmlFormInputWithoutLabel -->
  23. <input class="form-check-input" type="checkbox" id="all-items-checkbox" />
  24. </th>
  25. <th>
  26. <?=htmlspecialchars(__("Customer Name"))?>
  27. </th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. <?php
  32. foreach($customers as $customer) {
  33. ?>
  34. <tr>
  35. <td>
  36. <!--suppress HtmlFormInputWithoutLabel -->
  37. <input class="form-check-input" type="checkbox" name="customer_ids[]" value="<?=$customer->id?>" />
  38. </td>
  39. <td>
  40. <a href="<?=htmlspecialchars($customer->getUrl())?>">
  41. <?=htmlspecialchars($customer->name)?>
  42. </a>
  43. </td>
  44. </tr>
  45. <?php
  46. }
  47. ?>
  48. </tbody>
  49. </table>
  50. </div>
  51. <div class="col-xl-9 col-lg-8">
  52. <div class="mb-3" id="map" style="height: 75vh; background: #eee;">
  53. </div>
  54. </div>
  55. </div>