made the create button nice
This commit is contained in:
@@ -27,12 +27,26 @@
|
||||
<td>{{ $device['image_url'] }}</td>
|
||||
@can('admin-only')
|
||||
<td>
|
||||
<button><a href="{{ $device->device_id }}/edit">Edit</a></button>
|
||||
<form method="POST" action="{{ $device->device_id }}">
|
||||
@method('DELETE')
|
||||
@csrf
|
||||
<button>Delete</button>
|
||||
</form>
|
||||
<div class="field is-grouped">
|
||||
<div class="control">
|
||||
<a class="button is-small is-outlined is-info is-light" href="{{ $device->device_id }}/edit">
|
||||
<span class="icon is-small">
|
||||
<i class="fa-solid fa-pen-to-square"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="control">
|
||||
<form method="POST" action="{{ $device->device_id }}">
|
||||
@method('DELETE')
|
||||
@csrf
|
||||
<button class="button is-small is-outlined is-danger is-light" type="submit">
|
||||
<span class="icon is-small">
|
||||
<i class="fa-solid fa-trash"></i>
|
||||
</span>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
@endcan
|
||||
</tr>
|
||||
@@ -47,7 +61,12 @@
|
||||
|
||||
<h3 class="title is-3 has-text-centered">Location Transactions</h3>
|
||||
<div class="buttons is-right">
|
||||
<a class="button is-small" href="{{ $device->device_id }}/locations/create">New Location</a>
|
||||
<a class="button is-small is-outlined is-success is-light" href="{{ $device->device_id }}/locations/create">
|
||||
<span class="icon">
|
||||
<i class="fa-solid fa-plus"></i>
|
||||
</span>
|
||||
<span>New Location</span>
|
||||
</a>
|
||||
</div>
|
||||
@php
|
||||
$locationTransactions = $device->locations;
|
||||
@@ -77,7 +96,12 @@
|
||||
|
||||
<h3 class="title is-3 has-text-centered">Owner Transactions</h3>
|
||||
<div class="buttons is-right">
|
||||
<a class="button is-small" href="{{ $device->device_id }}/owners/create">New Owner</a>
|
||||
<a class="button is-small is-outlined is-success is-light" href="{{ $device->device_id }}/owners/create">
|
||||
<span class="icon">
|
||||
<i class="fa-solid fa-plus"></i>
|
||||
</span>
|
||||
<span>New Owner</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="table-container">
|
||||
<table class="table is-narrow is-fullwidth is-striped is-hoverable">
|
||||
|
@@ -3,12 +3,26 @@
|
||||
<td>{{ $location->timestamp_located_since }}</td>
|
||||
@can('admin-only')
|
||||
<td>
|
||||
<button><a href="locations/{{ $location->location_transaction_id }}/edit">Edit</a></button>
|
||||
<form method="POST" action="locations/{{ $location->location_transaction_id }}">
|
||||
@method('DELETE')
|
||||
@csrf
|
||||
<button>Delete</button>
|
||||
</form>
|
||||
<div class="field is-grouped">
|
||||
<div class="control">
|
||||
<a class="button is-small is-outlined is-info is-light" href="locations/{{ $location->location_transaction_id }}/edit">
|
||||
<span class="icon is-small">
|
||||
<i class="fa-solid fa-pen-to-square"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="control">
|
||||
<form method="POST" action="locations/{{ $location->location_transaction_id }}">
|
||||
@method('DELETE')
|
||||
@csrf
|
||||
<button class="button is-small is-outlined is-danger is-light" type="submit">
|
||||
<span class="icon is-small">
|
||||
<i class="fa-solid fa-trash"></i>
|
||||
</span>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
@endcan
|
||||
</tr>
|
||||
|
@@ -3,12 +3,27 @@
|
||||
<td>{{ $owner->timestamp_owner_since }}</td>
|
||||
@can('admin-only')
|
||||
<td>
|
||||
<button><a href="owners/{{ $owner->owner_transaction_id }}/edit">Edit</a></button>
|
||||
<form method="POST" action="owners/{{ $owner->owner_transaction_id }}">
|
||||
@method('DELETE')
|
||||
@csrf
|
||||
<button>Delete</button>
|
||||
</form>
|
||||
<div class="field is-grouped">
|
||||
<div class="control">
|
||||
<a class="button is-small is-outlined is-info is-light"
|
||||
href="owners/{{ $owner->owner_transaction_id }}/edit">
|
||||
<span class="icon is-small">
|
||||
<i class="fa-solid fa-pen-to-square"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="control">
|
||||
<form method="POST" action="owners/{{ $owner->owner_transaction_id }}">
|
||||
@method('DELETE')
|
||||
@csrf
|
||||
<button class="button is-small is-outlined is-danger is-light" type="submit">
|
||||
<span class="icon is-small">
|
||||
<i class="fa-solid fa-trash"></i>
|
||||
</span>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
@endcan
|
||||
</tr>
|
||||
</tr>
|
||||
|
@@ -25,7 +25,11 @@
|
||||
<td>{{ $purchasing->seller }}</td>
|
||||
@can('admin-only')
|
||||
<td>
|
||||
<button><a href="{{ $device->device_id }}/purchasing/edit">Edit</a></button>
|
||||
<a class="button is-small is-outlined is-info is-light" href="{{ $device->device_id }}/purchasing/edit">
|
||||
<span class="icon is-small">
|
||||
<i class="fa-solid fa-pen-to-square"></i>
|
||||
</span>
|
||||
</a>
|
||||
</td>
|
||||
@endcan
|
||||
</tr>
|
||||
|
@@ -4,7 +4,12 @@
|
||||
<h3 class="title is-3 has-text-centered">Device List</h3>
|
||||
@can('admin-only')
|
||||
<div class="buttons is-right">
|
||||
<a class="button is-small" href="devices/create">Create Device</a>
|
||||
<a class="button is-small is-outlined is-success is-light" href="devices/create">
|
||||
<span class="icon">
|
||||
<i class="fa-solid fa-plus"></i>
|
||||
</span>
|
||||
<span>Create Device</span>
|
||||
</a>
|
||||
</div>
|
||||
@endcan
|
||||
@unless (count($devices) == 0)
|
||||
|
Reference in New Issue
Block a user