From e87e5b9cae19bfd06b815cf01be309d665409828 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 25 Nov 2013 13:34:52 -0500 Subject: [PATCH] Fixes #46 --- app/views/backend/users/index.blade.php | 9 +++--- app/views/backend/users/view.blade.php | 42 +++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 5 deletions(-) diff --git a/app/views/backend/users/index.blade.php b/app/views/backend/users/index.blade.php index b583fba06697..082272cade25 100755 --- a/app/views/backend/users/index.blade.php +++ b/app/views/backend/users/index.blade.php @@ -33,7 +33,8 @@ @lang('admin/users/table.name') @lang('admin/users/table.email') - @lang('admin/users/table.checkedout') + Assets + Licenses @lang('admin/users/table.activated') @lang('admin/users/table.last_login') @lang('admin/users/table.created_at') @@ -50,10 +51,8 @@ {{ $user->email }} - - {{ ($user->assets->count()) }} - - + {{ $user->assets->count() }} + {{ $user->licenses->count() }} {{ $user->isActivated() ? '' : ''}} @if (is_object($user->last_login)) diff --git a/app/views/backend/users/view.blade.php b/app/views/backend/users/view.blade.php index 119f1b5e6938..3f569068112d 100644 --- a/app/views/backend/users/view.blade.php +++ b/app/views/backend/users/view.blade.php @@ -70,6 +70,48 @@ @endif +
Software Checked Out to {{ $user->first_name }}
+
+ + @if (count($user->licenses) > 0) + + + + + + + + + + + @foreach ($user->licenses as $license) + + + + + + + + @endforeach + +
Asset TypeSerialNameActions
+ @if ($license->physical=='0') + Hardware + @else + Software + @endif + {{ $license->serial }}{{ $license->name }} Checkin
+ @else + +
+
+ + @lang('admin/users/table.noresults') +
+
+ @endif + +
History for {{ $user->first_name }}