small UI changes
This commit is contained in:
parent
c91765e828
commit
4196b8df9e
2 changed files with 17 additions and 17 deletions
resources/views
|
@ -17,29 +17,23 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>Show All</td>
|
||||
<td>
|
||||
<form method="get" class="pull-right">
|
||||
@if (request()->path() === "admin/tests" OR request()->path() === "mod/tests")
|
||||
<button class="btn btn-sm btn-default pull-left" formaction="/{{ Auth::user()->getAdminPath() }}/tests/all">Show</button>
|
||||
@elseif (request()->path() == "admin/users")
|
||||
<button class="btn btn-sm btn-default pull-left" formaction="/{{ Auth::user()->getAdminPath() }}/users/all">Show</button>
|
||||
@endif
|
||||
</form>
|
||||
@if (request()->path() === "admin/tests" OR request()->path() === "mod/tests")
|
||||
<a href="/{{ Auth::user()->getAdminPath() }}/tests/all">Show All</a>
|
||||
@elseif (request()->path() == "admin/users")
|
||||
<a href="/{{ Auth::user()->getAdminPath() }}/users/all">Show All</a>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@foreach ($groups as $group)
|
||||
<tr>
|
||||
<td>{{ $group->id }}</td>
|
||||
<td>{{ $group->name }}</td>
|
||||
<td>
|
||||
<form method="get" class="pull-right">
|
||||
@if (request()->path() == "admin/tests" OR request()->path() === "mod/tests")
|
||||
<button class="btn btn-sm btn-default pull-left" formaction="/{{ Auth::user()->getAdminPath() }}/tests/group/{{ $group->id }}">Show</button>
|
||||
@elseif (request()->path() == "admin/users")
|
||||
<button class="btn btn-sm btn-default pull-left" formaction="/{{ Auth::user()->getAdminPath() }}/users/group/{{ $group->id }}">Show</button>
|
||||
@endif
|
||||
</form>
|
||||
@if (request()->path() == "admin/tests" OR request()->path() === "mod/tests")
|
||||
<a href="/{{ Auth::user()->getAdminPath() }}/tests/group/{{ $group->id }}">{{ $group->name }}</a>
|
||||
@elseif (request()->path() == "admin/users")
|
||||
<a href="/{{ Auth::user()->getAdminPath() }}/users/group/{{ $group->id }}">{{ $group->name }}</a>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
|
|
@ -17,9 +17,15 @@
|
|||
<div class="panel-body">
|
||||
@if (Auth::user()->isAdministrator() || (Auth::user()->isModerator() AND $user->group_id === Auth::user()->group_id))
|
||||
<form method="get">
|
||||
<button type="button" class="btn btn-sm btn-danger pull-right" data-toggle="modal" data-target=".delete-modal" data-url="users" data-id="{{ $user->id }}">Delete</button>
|
||||
@can('delete', $user)
|
||||
<button type="button" class="btn btn-sm btn-danger pull-right" data-toggle="modal" data-target=".delete-modal" data-url="users" data-id="{{ $user->id }}">Delete</button>
|
||||
@endcan
|
||||
@can('update', $user)
|
||||
<button class="btn btn-sm btn-default pull-right" formaction="/{{ Auth::user()->getAdminPath() }}/users/{{ $user->id }}/edit">Edit</button>
|
||||
@endcan
|
||||
@can('resetPassword', $user)
|
||||
<button type="button" class="btn btn-sm btn-default pull-right" data-toggle="modal" data-target=".reset-password-modal" data-id="{{ $user->id }}">Reset Password</button>
|
||||
@endcan
|
||||
</form>
|
||||
@endif
|
||||
<strong>Name:</strong><br>
|
||||
|
|
Reference in a new issue