Another fix related to #88, also accounts for users with invalid location_ids
This commit is contained in:
@@ -49,10 +49,10 @@ View User {{ $user->fullName() }} ::
|
||||
Software
|
||||
@endif
|
||||
</td>
|
||||
<td><a href="{{ route('view/asset', $asset->id) }}">{{ $asset->asset_tag }}</a></td>
|
||||
<td><a href="{{ route('view/asset', $asset->id) }}">{{ $asset->name }}</a></td>
|
||||
<td><a href="{{ route('view/hardware', $asset->id) }}">{{ $asset->asset_tag }}</a></td>
|
||||
<td><a href="{{ route('view/hardware', $asset->id) }}">{{ $asset->name }}</a></td>
|
||||
|
||||
<td> <a href="{{ route('checkin/asset', $asset->id) }}" class="btn-flat info">Checkin</a></td>
|
||||
<td> <a href="{{ route('checkin/hardware', $asset->id) }}" class="btn-flat info">Checkin</a></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
@@ -130,7 +130,7 @@ View User {{ $user->fullName() }} ::
|
||||
<td>{{ $log->action_type }}</td>
|
||||
<td>
|
||||
@if ((isset($log->assetlog->name)) && ($log->assetlog->deleted_at==''))
|
||||
<a href="{{ route('view/asset', $log->asset_id) }}">{{ $log->assetlog->name }}</a>
|
||||
<a href="{{ route('view/hardware', $log->asset_id) }}">{{ $log->assetlog->name }}</a>
|
||||
@elseif ((isset($log->assetlog->name)) && ($log->assetlog->deleted_at!=''))
|
||||
<del>{{ $log->assetlog->name }}</del> (deleted)
|
||||
@else
|
||||
@@ -165,8 +165,10 @@ View User {{ $user->fullName() }} ::
|
||||
<iframe width="300" height="133" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?&q={{ $user->userloc->address }},{{ $user->userloc->city }},{{ $user->userloc->state }},{{ $user->userloc->country }}&output=embed"></iframe>
|
||||
@endif
|
||||
<ul>
|
||||
<li>{{ $user->userloc->address }} {{ $user->userloc->address2 }}</li>
|
||||
<li>{{ $user->userloc->city }}, {{ $user->userloc->state }} {{ $user->userloc->zip }}<br /><br /></li>
|
||||
@if ($user->location_id)
|
||||
<li>{{ $user->userloc->address }} {{ $user->userloc->address2 }}</li>
|
||||
<li>{{ $user->userloc->city }}, {{ $user->userloc->state }} {{ $user->userloc->zip }}<br /><br /></li>
|
||||
@endif
|
||||
@if ($user->phone)
|
||||
<li><i class="icon-phone"></i>{{ $user->phone }}</li>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user