Files
grocy/views/quantityunits.blade.php

51 lines
1.2 KiB
PHP
Raw Normal View History

2018-04-11 19:49:35 +02:00
@extends('layout.default')
2018-04-12 21:13:38 +02:00
@section('title', 'Quantity units')
@section('activeNav', 'quantityunits')
@section('viewJsName', 'quantityunits')
2018-04-11 19:49:35 +02:00
@section('content')
2018-04-14 11:10:38 +02:00
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2">
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>
2018-04-12 21:13:38 +02:00
@foreach($quantityunits as $quantityunit)
2017-04-15 23:16:20 +02:00
<tr>
<td class="fit-content">
2018-04-12 21:13:38 +02:00
<a class="btn btn-info" href="/quantityunit/{{ $quantityunit->id }}" role="button">
2017-04-15 23:16:20 +02:00
<i class="fa fa-pencil"></i>
</a>
2018-04-12 21:13:38 +02:00
<a class="btn btn-danger quantityunit-delete-button" href="#" role="button" data-quantityunit-id="{{ $quantityunit->id }}" data-quantityunit-name="{{ $quantityunit->name }}">
2017-04-15 23:16:20 +02:00
<i class="fa fa-trash"></i>
</a>
</td>
<td>
2018-04-12 21:13:38 +02:00
{{ $quantityunit->name }}
2017-04-15 23:16:20 +02:00
</td>
<td>
2018-04-12 21:13:38 +02:00
{{ $quantityunit->description }}
2017-04-15 23:16:20 +02:00
</td>
</tr>
2018-04-12 21:13:38 +02:00
@endforeach
2017-04-15 23:16:20 +02:00
</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