66 lines
2.4 KiB
PHP
66 lines
2.4 KiB
PHP
<div id="headerbar">
|
|
<h1 class="headerbar-title"><?php _trans('units'); ?></h1>
|
|
|
|
<div class="headerbar-item pull-right">
|
|
<a class="btn btn-sm btn-primary" href="<?php echo site_url('units/form'); ?>">
|
|
<i class="fa fa-plus"></i> <?php _trans('new'); ?>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="headerbar-item pull-right">
|
|
<?php echo pager(site_url('units/index'), 'mdl_units'); ?>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="content" class="table-content">
|
|
|
|
<?php $this->layout->load_view('layout/alerts'); ?>
|
|
|
|
<div class="table-responsive">
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
<tr>
|
|
<th><?php _trans('unit_name'); ?></th>
|
|
<th><?php _trans('unit_name_plrl'); ?></th>
|
|
<th><?php _trans('options'); ?></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($units as $unit) { ?>
|
|
<tr>
|
|
<td><?php _htmlsc($unit->unit_name); ?></td>
|
|
<td><?php _htmlsc($unit->unit_name_plrl); ?></td>
|
|
<td>
|
|
<div class="options btn-group">
|
|
<a class="btn btn-default btn-sm dropdown-toggle"
|
|
data-toggle="dropdown" href="#">
|
|
<i class="fa fa-cog"></i> <?php _trans('options'); ?>
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
<li>
|
|
<a href="<?php echo site_url('units/form/' . $unit->unit_id); ?>">
|
|
<i class="fa fa-edit fa-margin"></i> <?php _trans('edit'); ?>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="<?php echo site_url('units/delete/' . $unit->unit_id); ?>"
|
|
onclick="return confirm('<?php _trans('delete_record_warning'); ?>');">
|
|
<i class="fa fa-trash-o fa-margin"></i> <?php _trans('delete'); ?>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|