Skip to content

Commit

Permalink
ref #599. showing groups in user detail view. fixes a small design bug
Browse files Browse the repository at this point in the history
with group edit view
  • Loading branch information
rashivkp committed Mar 8, 2015
1 parent 7d33962 commit f62f22b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/backend/groups/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<h4>{{ $area }}</h4>

@foreach ($permissions as $permission)
<div class="field-box">
<div class="row field-box">
<label for="name" class="col-md-2 control-label">{{{ $permission['label'] }}}</label>
<div class="col-md-8">
<label class="radio-inline">
Expand Down
29 changes: 29 additions & 0 deletions app/views/backend/users/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,36 @@

@endif

<h6>@lang('general.groups')</h6>
<!-- groups table -->
@if (count($user->groups) > 0)
<div class="table-responsive">
<table class="display">
<thead>
<tr>
<th class="col-md-3">Name</th>
</tr>
</thead>
<tbody>
@foreach ($user->groups as $group)
<tr>
<td><a href="{{ route('update/group', $group->id) }}">{{{ $group->name }}}</a></td>
</tr>
@endforeach
</tbody>
</table>
</div>
@else

<div class="col-md-12">
<div class="alert alert-info alert-block">
<i class="fa fa-info-circle"></i>
@lang('general.no_results')
</div>
</div>
@endif

<br><br><br>
<h6>@lang('admin/users/general.assets_user', array('name' => $user->first_name))</h6>
<br>
<!-- checked out assets table -->
Expand Down

0 comments on commit f62f22b

Please sign in to comment.