| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <div class="container mt-3 py-4">
- <input type="hidden" id="submit" value="<?=$_SESSION["csrf_token"]?>" />
- <h2>Map Overview</h2>
- <div class="row">
- <div class="col-6">
- <div class="form-group">
- <label for="location">Location</label>
- <input type="text" class="form-control" id="location" placeholder="Type location" data-autocomplete="map" />
- <div class="help-text text-muted">
- <small>Type location and select to jump to location.</small>
- </div>
- </div>
- </div>
- <div class="col-3">
- <div class="form-group">
- <label for="min-date">Min Test Date</label>
- <input type="date" class="form-control" id="min-date" placeholder="Type date" />
- </div>
- </div>
- <div class="col-3">
- <div class="form-group">
- <label for="max-date">Max Test Date</label>
- <input type="date" class="form-control" id="max-date" placeholder="Type date" />
- </div>
- </div>
- </div>
- <div class="mb-4" id="map" data-maps data-lat="51.3555177" data-lng="-1.1743197" data-zoom="7" style="height: 512px;"></div>
- <div class="row">
- <div class="col-md mb-3">
- <h3>Testers</h3>
- <div class="list-group mb-3">
- <a class="list-group-item list-group-item-action d-flex justify-content-between" data-all-addresses data-selected="false">
- <div>
- All Tester Addresses
- </div>
- <span class="badge badge-pill badge-lg align-self-center"></span>
- </a>
- </div>
- <h3>Customers</h3>
- <div class="list-group d-block">
- <?php
- foreach($customers as $customer) {
- ?>
- <a class="list-group-item list-group-item-action d-flex justify-content-between" data-customer-id="<?=$customer->id?>" data-selected="false">
- <div>
- <?=htmlspecialchars($customer->name)?><br />
- <small></small>
- </div>
- <span class="badge badge-pill badge-lg align-self-center"></span>
- </a>
- <?php
- }
- ?>
- </div>
- </div>
- <div class="col-md mb-3">
- <h3>Current/Future Projects</h3>
- <div class="list-group d-block limit-height-2">
- <?php
- foreach($projects as $project) {
- $customer = $project->getCustomer();
- $unix_deadline = strtotime($project->dts_deadline . " UTC");
- $deadline = date("d/m/Y", $unix_deadline);
- $icon = null;
- if($project->time_of_day != "A") {
- $icon = $project->getTimeOfDayIcon();
- }
- ?>
- <a class="list-group-item list-group-item-action d-flex justify-content-between" data-project-id="<?=$project->id?>" data-selected="false">
- <div class="w-100">
- <div class="d-flex justify-content-between">
- <small><strong><?=strtoupper(htmlspecialchars($customer->name))?></strong></small>
- <small><strong>DEADLINE: <?=$deadline?></strong></small>
- </div>
- <?=htmlspecialchars($project->name)?>
- <?php
- if($icon) {
- ?>
- <i class="fal fa-<?=$icon?>"></i>
- <?php
- }
- ?>
- </div>
- <span class="badge badge-pill badge-lg align-self-center"></span>
- </a>
- <?php
- }
- ?>
- </div>
- </div>
- </div>
- </div>
|