Files
grocy/views/quantityunits.blade.php

47 lines
1.2 KiB
PHP
Raw Normal View History

2018-04-11 19:49:35 +02:00
@extends('layout.default')
@section('content')
2017-04-15 23:16:20 +02:00
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
2017-04-19 21:09:28 +02:00
2017-04-15 23:16:20 +02:00
<h1 class="page-header">
Quantity units
<a class="btn btn-default" href="/quantityunit/new" role="button">
<i class="fa fa-plus"></i>&nbsp;Add
</a>
</h1>
<div class="table-responsive">
2017-04-16 23:11:03 +02:00
<table id="quantityunits-table" class="table table-striped">
2017-04-15 23:16:20 +02:00
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<?php foreach ($quantityunits as $quantityunit) : ?>
<tr>
<td class="fit-content">
<a class="btn btn-info" href="/quantityunit/<?php echo $quantityunit->id; ?>" role="button">
<i class="fa fa-pencil"></i>
</a>
<a class="btn btn-danger quantityunit-delete-button" href="#" role="button" data-quantityunit-id="<?php echo $quantityunit->id; ?>" data-quantityunit-name="<?php echo $quantityunit->name; ?>">
<i class="fa fa-trash"></i>
</a>
</td>
<td>
<?php echo $quantityunit->name; ?>
</td>
<td>
<?php echo $quantityunit->description; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
2017-04-19 21:09:28 +02:00
2017-04-15 23:16:20 +02:00
</div>
2018-04-11 19:49:35 +02:00
@stop