Jelajahi Sumber

Compacted filters.

Alan Lam 8 tahun lalu
induk
melakukan
dd3bc31c80
1 mengubah file dengan 23 tambahan dan 22 penghapusan
  1. 23 22
      views/test_list.php

+ 23 - 22
views/test_list.php

@@ -76,8 +76,8 @@ $results = [
 				</div>
 				<div class="card-body">
 
-					<div class="row">
-						<div class="col-xl-6 col-lg-8 offset-xl-3 offset-lg-2">
+					<div class="row mb-3">
+						<div class="col-lg-6">
 							<div class="row mb-1">
 								<label class="col-form-label col-sm-4" for="status">Status</label>
 								<div class="col-sm">
@@ -111,43 +111,44 @@ $results = [
 								</div>
 							</div>
 							<div class="row mb-1">
-								<label class="col-sm-4 col-form-label" for="location-id">Location ID</label>
+								<label class="col-sm-4 col-form-label" for="pass">Result</label>
 								<div class="col-sm">
-									<input class="form-control" type="text" name="location_id" id="location-id" placeholder="Enter location ID" value="<?=$location_id?>" />
+									<select class="form-control" name="pass" id="pass">
+										<?php
+										foreach($results as $value => $display) {
+											$selected = (strval($value) === strval($pass)) ? "selected" : "";
+											?>
+											<option value="<?=$value?>" <?=$selected?>><?=htmlspecialchars($display)?></option>
+											<?php
+										}
+										?>
+									</select>
 								</div>
 							</div>
+						</div>
+						<div class="col-lg">
 							<div class="row mb-1">
-								<label class="col-sm-4 col-form-label" for="location-internal-id">Location Internal ID</label>
+								<label class="col-sm-4 col-form-label" for="test-id">Test ID</label>
 								<div class="col-sm">
-									<input class="form-control" type="text" name="location_internal_id" id="location-internal-id" placeholder="Enter location internal ID" value="<?=$location_internal_id?>" />
+									<input class="form-control" type="text" name="test_id" id="test-id" placeholder="Enter test ID" value="<?=$test_id?>" />
 								</div>
 							</div>
 							<div class="row mb-1">
-								<label class="col-sm-4 col-form-label" for="test-id">Test ID</label>
+								<label class="col-sm-4 col-form-label" for="location-id">Location ID</label>
 								<div class="col-sm">
-									<input class="form-control" type="text" name="test_id" id="test-id" placeholder="Enter test ID" value="<?=$test_id?>" />
+									<input class="form-control" type="text" name="location_id" id="location-id" placeholder="Enter location ID" value="<?=$location_id?>" />
 								</div>
 							</div>
 							<div class="row mb-1">
-								<label class="col-sm-4 col-form-label" for="pass">Result</label>
+								<label class="col-sm-4 col-form-label" for="location-internal-id">Internal ID</label>
 								<div class="col-sm">
-									<select class="form-control" name="pass" id="pass">
-										<?php
-										foreach($results as $value => $display) {
-											$selected = (strval($value) === strval($pass)) ? "selected" : "";
-											?>
-											<option value="<?=$value?>" <?=$selected?>><?=htmlspecialchars($display)?></option>
-											<?php
-										}
-										?>
-									</select>
+									<input class="form-control" type="text" name="location_internal_id" id="location-internal-id" placeholder="Enter location internal ID" value="<?=$location_internal_id?>" />
 								</div>
 							</div>
-							<br />
-							<button class="btn btn-primary" type="submit">Filter</button>
-							<a class="btn btn-secondary" href="/account/tests">Clear Filters</a>
 						</div>
 					</div>
+					<button class="btn btn-primary" type="submit">Filter</button>
+					<a class="btn btn-secondary" href="/account/tests">Clear Filters</a>
 
 				</div>
 			</div>