first commit

This commit is contained in:
dev-chiefworks
2022-05-31 16:21:53 -04:00
commit f76abffdcd
5978 changed files with 1078901 additions and 0 deletions
@@ -0,0 +1,132 @@
<link href="/assets/css/transport_provider/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="/transport_provider/create" class="btn btn-success">New Transport Provider</a>
</div>
<h4 class="page-title">Transport Provider</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" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</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="card-body">
<div class="row">
<form class="search-block form-inline" id="searchForm" action="/transport_provider" method="get">
<div class="form-group mr-sm-3">
<label for="filter_active" class="sr-only">Status</label>
<select class="form-control select2 w-100" id="filter_active" name="active" allow-search="false">
<option value="">All</option>
<?php
foreach($statusOptions as $key=>$value) {
$selected = ($filterData['active'] == $value) ? 'selected' : '';
echo '<option value="' . $value . '"' . $selected . '>' . $key . '</option>';
}
?>
</select>
</div>
<button class="btn btn-primary btn-search" id="btnSearch" type="submit">Search</button>
</form>
</div>
<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>Name</th>
<th>Client</th>
<th>Token</th>
<th>Code</th>
<th>Access Token</th>
<th>Timeout</th>
<th>Retries</th>
<th>Custom</th>
</tr>
</thead>
<tbody class="table-striped">
<?php foreach($list as $item): ?>
<tr>
<td><?php echo $item['id'] ?></td>
<td><?php echo $item['name'] ?></td>
<td><?php echo $item['client'] ?></td>
<td><?php echo $item['token'] ?></td>
<td><?php echo $item['code'] ?></td>
<td><?php echo $item['access_token'] ?></td>
<td><?php echo $item['timeout'] ?></td>
<td><?php echo $item['retries'] ?></td>
<td>
<?php
echo json_encode($item['custom']) === 'null' ? '' : json_encode($item['custom']);
?>
</td>
<td class="actions">
<a href="/transport_provider/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-transport-provider="<?php echo $item['name'] ?>"
data-toggle="modal"
data-target="#remove-transport-provider-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-transport-provider-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/app.js" type="text/javascript"></script>
<script src="/assets/js/pages/transport_providers/list.js" type="text/javascript"></script>