Skip to content

Commit

Permalink
Fix #388 - License not showing checked out in view
Browse files Browse the repository at this point in the history
  • Loading branch information
madd15 committed Nov 24, 2014
1 parent 5e6c4a2 commit 73dd339
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions app/views/backend/licenses/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,31 +110,35 @@
<tr>
<td>Seat {{ $count }} </td>
<td>

@if ($licensedto->asset_id)
@if (($licensedto->assigned_to) && ($licensedto->deleted_at == NULL))
<a href="{{ route('view/user', $licensedto->assigned_to) }}">
{{{ $licensedto->user->fullName() }}}
</a>
@elseif (($licensedto->assigned_to) && ($licensedto->deleted_at != NULL))
<del>{{{ $licensedto->user->fullName() }}}</del>
@elseif ($licensedto->asset_id)
@if ($licensedto->asset->assigned_to != 0)
<a href="{{ route('view/user', $licensedto->asset->assigned_to) }}">
{{{ $licensedto->asset->assigneduser->fullName() }}}
</a>
@endif
@endif


</td>
<td>
@if ($licensedto->asset_id)
<a href="{{ route('view/hardware', $licensedto->asset_id) }}">
{{{ $licensedto->asset->name }}} {{{ $licensedto->asset->asset_tag }}}
</a>
@endif
@if ($licensedto->asset_id)
<a href="{{ route('view/hardware', $licensedto->asset_id) }}">
{{{ $licensedto->asset->name }}} {{{ $licensedto->asset->asset_tag }}}
</a>
@endif
</td>
<td>

@if ($licensedto->asset_id)
<a href="{{ route('checkin/license', $licensedto->id) }}" class="btn-flat info"> @lang('general.checkin') </a>
@else
<a href="{{ route('checkout/license', $licensedto->id) }}" class="btn-flat success">@lang('general.checkout')</a>
@endif
@if (($licensedto->assigned_to) || ($licensedto->asset_id))
<a href="{{ route('checkin/license', $licensedto->id) }}" class="btn btn-primary">
@lang('general.checkin')</a>
@else
<a href="{{ route('checkout/license', $licensedto->id) }}" class="btn btn-info">
@lang('general.checkout')</a>
@endif
</td>

</tr>
Expand Down

0 comments on commit 73dd339

Please sign in to comment.