Skip to content

Commit

Permalink
Fixes checkin button on view
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Feb 11, 2015
1 parent 2277b6e commit dbc93de
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions app/views/backend/hardware/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
</p>
@endif

@if ((isset($asset->assigned_to ) && ($asset->assigned_to > 0)))
@if ((isset($asset->assigneduser) && ($asset->assigned_to > 0)))
<h6><br>@lang('admin/hardware/form.checkedout_to')</h6>
<ul>

Expand Down Expand Up @@ -285,13 +285,24 @@

@endif

@if (($asset->status_id ) && ($asset->status_id > 1))
@if (($asset->status_id ) && ($asset->status_id > 0))
<!-- Status Info -->

@if ($asset->assetstatus)
<h6><br>{{{ $asset->assetstatus->name }}}
@lang('admin/hardware/general.asset')</h6>

<ul>
@if (($asset->assetstatus->deployable=='1') && ($asset->assigned_to > 0))
<li><br /><a href="{{ route('checkin/hardware', $asset->id) }}" class="btn-flat large info ">@lang('admin/hardware/general.checkin')</a></li>
@elseif (($asset->assetstatus->deployable=='1') && (($asset->assigned_to=='') || ($asset->assigned_to==0)))
<li><br /><a href="{{ route('checkout/hardware', $asset->id) }}" class="btn-flat large info ">@lang('admin/hardware/general.checkout')</a></li>
@else
popo
{{ $asset->assigned_to }}
@endif
</ul>

@if ($asset->assetstatus->notes)
<div class="col-md-12">
<div class="alert alert-info alert-block">
Expand Down

0 comments on commit dbc93de

Please sign in to comment.