207 lines
8.8 KiB
PHP
207 lines
8.8 KiB
PHP
<link href="/assets/css/android_automation_job_detail/list.css" rel="stylesheet" type="text/css" />
|
||
|
||
<!-- Start Content-->
|
||
<div class="container-fluid">
|
||
|
||
<!-- start page title -->
|
||
<div class="row align-items-center">
|
||
<div class="col-12">
|
||
<div class="page-title-box">
|
||
<div class="page-title-right text-right action">
|
||
<a href="/android_automation_job_details/create" class="btn btn-success">New Android Automation Job Detail</a>
|
||
</div>
|
||
<h4 class="page-title">Android Automation Job Detail</h4>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<!-- end page title -->
|
||
|
||
<!-- start alert -->
|
||
<?php if ($this->session->flashdata('success')) { ?>
|
||
<div class="col-12">
|
||
<div class="alert alert-success alert-dismissible bg-success text-white border-0" role="alert">
|
||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||
<span aria-hidden="true">×</span>
|
||
</button>
|
||
<?php echo $this->session->flashdata('success') ?>
|
||
</div>
|
||
</div>
|
||
<?php } ?>
|
||
<!-- end alert -->
|
||
|
||
<div class="row">
|
||
<div class="col-12">
|
||
<div class="card">
|
||
<div class="row">
|
||
<form class="search-block form-inline" id="searchForm" action="/android_automation_job_details" method="get">
|
||
<div class="form-group mr-sm-3">
|
||
<label for="filter_transport_provider" style="width: 17.3rem;" class="font-weight-bold"><h6>Transport Provider</h6></label>
|
||
<select class="form-control select2 w-100" id="filter_transport_provider" name="transport_provider_id" allow-search="false">
|
||
<option value="">All</option>
|
||
<?php
|
||
foreach($transport_provider as $key=>$value) {
|
||
$selected = ($filterData['transport_provider_id'] == $value['id']) ? 'selected' : '';
|
||
echo '<option value="' . $value['id'] . '"' . $selected . '>' . $value['name'] . '</option>';
|
||
}
|
||
?>
|
||
</select>
|
||
</div>
|
||
<div class="form-group mr-sm-3">
|
||
<label for="filter_android_automation_job" class="font-weight-bold"><h6>Android Automation Job</h6></label>
|
||
<!-- <select class="form-control select2 w-100" id="filter_android_automation_job" name="job_id" allow-search="false">
|
||
<option value="">All</option>
|
||
<?php
|
||
foreach($android_automation_jobs as $key=>$value) {
|
||
$selected = ($filterData['job_id'] == $value['id']) ? 'selected' : '';
|
||
echo '<option value="' . $value['id'] . '"' . $selected . '>' . $value['id'] . '</option>';
|
||
}
|
||
?>
|
||
</select> -->
|
||
<input
|
||
class="form-control"
|
||
id="filter_android_automation_job"
|
||
name="job_id"
|
||
placeholder="Android Automation Job ID"
|
||
value="<?= isset($filterData['job_id']) ? $filterData['job_id'] : '' ?>"
|
||
/>
|
||
</div>
|
||
|
||
<div class="form-group mr-sm-3" style="margin-top: 1rem">
|
||
<label style="width: 15.8rem" for="from_complete">Name</label>
|
||
<input class="form-control"
|
||
id="name"
|
||
name="name"
|
||
placeholder="Name"
|
||
value="<?= isset($filterData['name']) ? $filterData['name'] : '' ?>"
|
||
/>
|
||
</div>
|
||
|
||
<div class="form-group mr-sm-3" style="margin-top: 1rem">
|
||
<label style="width: 15.8rem" for="uuid">UUID</label>
|
||
<input class="form-control"
|
||
id="uuid"
|
||
name="uuid"
|
||
placeholder="UUID"
|
||
value="<?= isset($filterData['uuid']) ? $filterData['uuid'] : '' ?>"
|
||
/>
|
||
</div>
|
||
|
||
<div class="form-group mr-sm-3" style="margin-top: 1rem">
|
||
<label style="width: 15.8rem" for="from_complete">Service ID</label>
|
||
<input class="form-control"
|
||
id="service_id"
|
||
name="service_id"
|
||
placeholder="Service ID"
|
||
value="<?= isset($filterData['service_id']) ? $filterData['service_id'] : '' ?>"
|
||
/>
|
||
</div>
|
||
|
||
<button class="btn btn-primary btn-search" id="btnSearch" type="submit">Search</button>
|
||
</form>
|
||
</div>
|
||
|
||
<div class="card-body">
|
||
<div class="table-responsive-sm">
|
||
<table id="trips-datatable" class="table table-sm table-centered mb-0" width="100%">
|
||
<thead>
|
||
<tr>
|
||
<th>ID</th>
|
||
<th>Location Start</th>
|
||
<th>Location End</th>
|
||
<th>Name</th>
|
||
<th>Icon Url</th>
|
||
<th>Icon Info</th>
|
||
<th>Descriptor</th>
|
||
<th>Warning Message</th>
|
||
<th>UUID</th>
|
||
<th>Series ID</th>
|
||
<th>Service ID</th>
|
||
<th>Additional Booking Fee</th>
|
||
<th>Advance Booking Fee</th>
|
||
<th>Low Estimate</th>
|
||
<th>High Estimate</th>
|
||
<th>Fixed</th>
|
||
<th>Quote Date</th>
|
||
</tr>
|
||
</thead>
|
||
|
||
<tbody class="table-striped">
|
||
<?php foreach($list as $item): ?>
|
||
<tr>
|
||
<td><?php echo $item['id'] ?></td>
|
||
<td><?php echo $item['location_start'] ?></td>
|
||
<td><?php echo $item['location_end'] ?></td>
|
||
<td><?php echo $item['name'] ?></td>
|
||
<td><?php echo $item['icon_url'] ?></td>
|
||
<td><?php echo $item['icon_info'] ?></td>
|
||
<td><?php echo $item['descriptor'] ?></td>
|
||
<td><?php echo $item['warning_message'] ?></td>
|
||
<td><?php echo $item['uuid'] ?></td>
|
||
<td><?php echo $item['series_id'] ?></td>
|
||
<td><?php echo $item['service_id'] ?></td>
|
||
<td><?php echo $item['additional_booking_fee'] ?></td>
|
||
<td><?php echo $item['advance_booking_fee'] ?></td>
|
||
<td><?php echo $item['low_estimate'] ?></td>
|
||
<td><?php echo $item['high_estimate'] ?></td>
|
||
<td><?php echo $item['fixed'] ?></td>
|
||
<td><?php echo $item['quote_date'] ?></td>
|
||
<td class="actions">
|
||
<a href="/android_automation_job_details/edit/<?php echo $item['id']; ?>" class="btn btn-primary">View</a>
|
||
<button
|
||
type="button"
|
||
class="btn btn-danger btn-remove"
|
||
data-id="<?php echo $item['id'] ?>"
|
||
data-android-automation-job-detail="<?php echo $item['name'] ?>"
|
||
data-toggle="modal"
|
||
data-target="#remove-android-automation-job-detail-warning-modal"
|
||
>Remove</button>
|
||
</td>
|
||
</tr>
|
||
<?php endforeach ?>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
<?php echo $pagination ?>
|
||
</div> <!-- end card body-->
|
||
</div> <!-- end card -->
|
||
</div><!-- end col-->
|
||
</div>
|
||
<!-- end row-->
|
||
</div> <!-- container -->
|
||
|
||
<div id="remove-android-automation-job-detail-warning-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="warning-header-modalLabel" aria-hidden="true">
|
||
<div class="modal-dialog">
|
||
<div class="modal-content">
|
||
<div class="modal-header modal-colored-header bg-warning">
|
||
<h4 class="modal-title" id="warning-header-modalLabel"></h4>
|
||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||
</div>
|
||
<div class="modal-body">
|
||
<h5 class="mt-0">Remove warning</h5>
|
||
<p>This can not be undone. Do you want to conitnue?</p>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-light" data-dismiss="modal">Close</button>
|
||
<button type="button" class="btn btn-warning" id="removeBtn" data-id="">Continue</button>
|
||
</div>
|
||
</div><!-- /.modal-content -->
|
||
</div><!-- /.modal-dialog -->
|
||
</div><!-- /.modal -->
|
||
|
||
<script src="/assets/js/plugins/pickers/datepicker.js"></script>
|
||
<script src="/assets/js/app.js" type="text/javascript"></script>
|
||
<script src="/assets/js/pages/android_automation_job_detail/list.js" type="text/javascript"></script>
|
||
|
||
<style>
|
||
#searchForm {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
#btnSearch {
|
||
width: 100px;
|
||
margin-top: 1rem;
|
||
margin-left: 18.3rem;
|
||
}
|
||
</style>
|