59 lines
1.5 KiB
PHP
59 lines
1.5 KiB
PHP
<?= $this->extend('layouts/main.php') ?>
|
|
|
|
<?= $this->section('content') ?>
|
|
<?php
|
|
$instname = $insts[0]['instname'];
|
|
?>
|
|
<main id="main" class="main">
|
|
<div class="pagetitle">
|
|
<h1>Flags List For Instrument <?=$instname;?></h1>
|
|
</div>
|
|
|
|
<?php
|
|
if(isset($validation)) {
|
|
?>
|
|
<div class='alert alert-danger alert-dismissible'>
|
|
<?= $validation->listErrors(); ?>
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"> <span aria-hidden="true"></span> </button>
|
|
</div>
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
<div class="card" style="height:700px;">
|
|
<div class="card-body">
|
|
<div class='card-title d-flex'>
|
|
<h5><b>Flag List</b></h5>
|
|
<a href='<?=base_url();?>flags/create/<?=$instid;?>' class='btn btn-sm btn-info ms-auto'> <i class='bi bi-plus-circle'></i> New Flag</a>
|
|
</div>
|
|
<table class="table table-sm table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th scope='col'>ID</th> <th scope='col'>Flag Text</th> <th scope="col">Flag Desc.</th> <th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
foreach($flags as $data) {
|
|
$flagid = $data['flagid'];
|
|
$flagtext = $data['flagtext'];
|
|
$flagdesc= $data['flagdesc'];
|
|
?>
|
|
<tr>
|
|
<td><?=$flagid;?></td> <td><?=$flagtext;?></td> <td><?=$flagdesc;?></td>
|
|
<td>
|
|
<a href='<?=base_url()."flags/edit/".$flagid;?>' class='btn btn-sm btn-warning'>edit</a>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('script') ?>
|
|
<?= $this->endSection() ?>
|