mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Show Logbook-ID
This commit is contained in:
@@ -259,7 +259,7 @@ class Stationsetup extends CI_Controller {
|
||||
$result = $this->logbooks_model->show_all()->result();
|
||||
foreach ($result as $entry) {
|
||||
$single=(Object)[];
|
||||
$single->logbook_id = $entry->logbook_id;
|
||||
$single->logbook_id = '<span class="badge bg-info">'.$entry->logbook_id.'</span>';
|
||||
$single->logbook_name = $this->lbname2html($entry->logbook_id, $entry->logbook_name);
|
||||
$single->logbook_state = $this->lbstate2html($entry->logbook_id);
|
||||
$single->logbook_edit = $this->lbedit2html($entry->logbook_id);
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
<table id="station_logbooks_table" class="table-sm table table-hover table-striped table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><?= __("ID")?></th>
|
||||
<th scope="col"><?= __("Name")?></th>
|
||||
<th scope="col"><?= __("Status")?></th>
|
||||
<th scope="col"><?= __("Edit Linked locations"); ?></th>
|
||||
@@ -41,6 +42,7 @@
|
||||
<tbody>
|
||||
<?php foreach ($my_logbooks->result() as $row) { ?>
|
||||
<tr>
|
||||
<td><span class="badge bg-info"><?php echo $row->logbook_id;?></span></td>
|
||||
<td><?php echo $row->logbook_name;?> <i id="<?php echo $row->logbook_id ?>" class="editContainerName fas fa-edit" role="button"></i></td>
|
||||
<td>
|
||||
<?php if($this->session->userdata('active_station_logbook') != $row->logbook_id) { ?>
|
||||
|
||||
@@ -522,6 +522,7 @@ function loadLogbookTable(rows) {
|
||||
let logbook = rows[i];
|
||||
|
||||
var data = [];
|
||||
data.push(logbook.logbook_id);
|
||||
data.push(logbook.logbook_name);
|
||||
data.push(logbook.logbook_state);
|
||||
data.push(logbook.logbook_edit);
|
||||
|
||||
Reference in New Issue
Block a user