Skip to content

Commit

Permalink
Fixed wonky checkin/checkout buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Feb 11, 2015
1 parent dbc93de commit c06a4d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/backend/hardware/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@
@endif

<td>
@if ($asset->assetstatus->deployable ==1 )
@if ($asset->assigned_to !='')
@if ($asset->assetstatus->deployable == 1 )
@if (($asset->assigned_to !='') && ($asset->assigned_to > 0))
<a href="{{ route('checkin/hardware', $asset->id) }}" class="btn btn-primary">@lang('general.checkin')</a>
@else
<a href="{{ route('checkout/hardware', $asset->id) }}" class="btn btn-info">@lang('general.checkout')</a>
Expand Down

0 comments on commit c06a4d4

Please sign in to comment.