Files
grocy/views/locations.blade.php

56 lines
1.3 KiB
PHP
Raw Normal View History

2018-04-11 19:49:35 +02:00
@extends('layout.default')
2018-04-16 19:11:32 +02:00
@section('title', $L('Locations'))
2018-04-12 21:13:38 +02:00
@section('activeNav', 'locations')
@section('viewJsName', 'locations')
2018-04-11 19:49:35 +02:00
@section('content')
<h1 class="page-header">
@yield('title')
<a class="btn btn-default" href="{{ $U('/location/new') }}" role="button">
<i class="fa fa-plus"></i>&nbsp;{{ $L('Add') }}
</a>
</h1>
2017-04-19 21:09:28 +02:00
2018-07-09 19:27:22 +02:00
<div class="container-fluid">
<div class="row">
<div class="col-sm-3 no-gutters">
<label for="search">{{ $L('Search') }}</label>
<input type="text" class="form-control" id="search">
</div>
</div>
</div>
<div class="table-responsive">
<table id="locations-table" class="table table-striped">
<thead>
<tr>
<th>#</th>
<th>{{ $L('Name') }}</th>
<th>{{ $L('Description') }}</th>
</tr>
</thead>
<tbody>
@foreach($locations as $location)
<tr>
<td class="fit-content">
<a class="btn btn-info" href="{{ $U('/location/') }}{{ $location->id }}" role="button">
<i class="fa fa-pencil"></i>
</a>
<a class="btn btn-danger location-delete-button" href="#" role="button" data-location-id="{{ $location->id }}" data-location-name="{{ $location->name }}">
<i class="fa fa-trash"></i>
</a>
</td>
<td>
{{ $location->name }}
</td>
<td>
{{ $location->description }}
</td>
</tr>
@endforeach
</tbody>
</table>
2017-04-15 23:16:20 +02:00
</div>
2018-04-11 19:49:35 +02:00
@stop