Disallow checkout of undeployable items

This commit is contained in:
snipe
2013-11-29 15:27:44 -05:00
parent 56adc67e67
commit 80afa7cbc7
@@ -109,11 +109,13 @@ Assets ::
@endif
<td>
@if ($asset->status_id < 1 )
@if ($asset->assigned_to != 0)
<a href="{{ route('checkin/hardware', $asset->id) }}" class="btn btn-primary">Checkin</a>
@else
<a href="{{ route('checkout/hardware', $asset->id) }}" class="btn btn-info">Checkout</a>
@endif
@endif
</td>
<td nowrap="nowrap">
<a href="{{ route('update/hardware', $asset->id) }}" class="btn btn-warning"><i class="icon-pencil icon-white"></i></a>