new linked locations table
这个提交包含在:
父节点
19b235ab3a
当前提交
03dadfca23
共有 2 个文件被更改,包括 16 次插入 和 9 次删除
|
|
@ -1,4 +1,4 @@
|
||||||
<div class="container" id="create_station_profile">
|
<div class="container mb-4" id="create_station_profile">
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<?php if($this->session->flashdata('message')) { ?>
|
<?php if($this->session->flashdata('message')) { ?>
|
||||||
|
|
@ -117,7 +117,7 @@
|
||||||
|
|
||||||
<input type="hidden" class="form-control" name="station_logbook_id" value="<?php echo $station_logbook_details->logbook_id; ?>" required>
|
<input type="hidden" class="form-control" name="station_logbook_id" value="<?php echo $station_logbook_details->logbook_id; ?>" required>
|
||||||
|
|
||||||
<button type="submit" class="btn btn-primary"><i class="fas fa-plus-square"></i> <?php echo lang('station_logbooks_link_loc'); ?></button>
|
<button type="submit" class="btn btn-primary"><i class="fas fa-link"></i> <?php echo lang('station_logbooks_link_loc'); ?></button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -129,12 +129,14 @@
|
||||||
<?php echo lang('station_logbooks_linked_loc'); ?>
|
<?php echo lang('station_logbooks_linked_loc'); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="table-responsive">
|
<div class="table-responsive m-4">
|
||||||
<table id="station_logbooks_linked_table" class="table table-hover">
|
<table id="station_logbooks_linked_table" class="table table-hover">
|
||||||
<thead class="thead-light">
|
<thead class="thead-light">
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col"><?php echo lang('station_location_name'); ?></th>
|
<th scope="col"><?php echo lang('station_location_name'); ?></th>
|
||||||
<th scope="col"></th>
|
<th scope="col"><?php echo lang('station_location_callsign'); ?></th>
|
||||||
|
<th scope="col"><?php echo lang('gen_hamradio_dxcc'); ?></th>
|
||||||
|
<th scope="col">Unlink Station Location</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
@ -143,16 +145,20 @@
|
||||||
foreach ($station_locations_linked->result() as $row) {
|
foreach ($station_locations_linked->result() as $row) {
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo $row->station_profile_name;?> (<?php echo lang('gen_hamradio_callsign'); ?>: <?php echo $row->station_callsign;?> <?php echo lang('gen_hamradio_dxcc'); ?>: <?php echo $row->station_country; if ($row->end != NULL) { echo ' <span class="badge text-bg-danger">'.lang('gen_hamradio_deleted_dxcc').'</span>'; } ?>)</td>
|
<td style="text-align: center; vertical-align: middle;"><?php echo $row->station_profile_name;?></td>
|
||||||
<td><a href="<?php echo site_url('logbooks/delete_relationship/'); ?><?php echo $station_logbook_details->logbook_id; ?>/<?php echo $row->station_id;?>" class="btn btn-danger"><i class="fas fa-trash-alt"></i></a></td>
|
<td style="text-align: center; vertical-align: middle;"><?php echo $row->station_callsign;?></td>
|
||||||
|
<td style="text-align: center; vertical-align: middle;"><?php echo $row->station_country; if ($row->end != NULL) { echo ' <span class="badge text-bg-danger">'.lang('gen_hamradio_deleted_dxcc').'</span>'; } ?></td>
|
||||||
|
<td style="text-align: center; vertical-align: middle;"><a href="<?php echo site_url('logbooks/delete_relationship/'); ?><?php echo $station_logbook_details->logbook_id; ?>/<?php echo $row->station_id;?>" class="btn btn-danger"><i class="fas fa-unlink"></i></a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2"><?php echo lang('station_logbooks_no_linked_loc'); ?></td>
|
<td style="text-align: center; vertical-align: middle;" colspan="2"><?php echo lang('station_logbooks_no_linked_loc'); ?></td>
|
||||||
<td></td>
|
<td style="text-align: center; vertical-align: middle;"></td>
|
||||||
|
<td style="text-align: center; vertical-align: middle;"></td>
|
||||||
|
<td style="text-align: center; vertical-align: middle;"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ $(document).ready( function () {
|
||||||
|
|
||||||
$(document).ready( function () {
|
$(document).ready( function () {
|
||||||
$('#station_logbooks_linked_table').DataTable({
|
$('#station_logbooks_linked_table').DataTable({
|
||||||
"stateSave": true
|
"stateSave": true,
|
||||||
|
"paging": true
|
||||||
});
|
});
|
||||||
} );
|
} );
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用