2024-07-19 12:30:57 +00:00
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12 mt-4">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
|
|
|
<?php if ($this->session->flashdata('status')): ?>
|
|
|
|
<div class="alert alert-success">
|
|
|
|
<?= $this->session->flashdata('status'); ?>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
<h3>
|
2024-07-22 09:49:37 +00:00
|
|
|
Drafts
|
2024-07-19 12:30:57 +00:00
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<!-- here your table will occur -->
|
|
|
|
<table id="basetable1" class="table table-bordered">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Form_Id</th>
|
|
|
|
<th>Title</th>
|
|
|
|
<th>Description</th>
|
|
|
|
<th>Created On</th>
|
|
|
|
<th>Edit</th>
|
|
|
|
<th>Delete</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php foreach ($forms as $row): ?>
|
|
|
|
<tr>
|
|
|
|
<td><?php echo $row->id; ?></td>
|
|
|
|
<td><a
|
|
|
|
href="<?php echo base_url('forms/preview/' . $row->id); ?>"><?php echo $row->title; ?></a>
|
|
|
|
</td>
|
|
|
|
<td><?php echo $row->description; ?></td>
|
2024-07-22 09:49:37 +00:00
|
|
|
<td><?php echo $row->created_at; ?></td>
|
2024-07-19 12:30:57 +00:00
|
|
|
<td>
|
|
|
|
<a href="<?php echo base_url('Form_controller/edit_form/' . $row->id); ?>"
|
|
|
|
class="btn btn-success btn-sm">Edit</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="<?php echo base_url('forms/delete/' . $row->id); ?>"
|
|
|
|
class="btn btn-danger btn-sm">Delete</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|