Merge pull request #2988 from int2001/logbook_id

Show Logbook-ID
This commit is contained in:
Joerg (DJ7NT)
2026-02-20 14:16:41 +01:00
committed by GitHub
3 changed files with 4 additions and 1 deletions

View File

@@ -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);

View File

@@ -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) { ?>