Added check all to user delete
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
858f1c2d12
commit
62c99d4e2e
1 changed files with 11 additions and 4 deletions
|
@ -36,7 +36,7 @@
|
||||||
<table class="display table table-hover">
|
<table class="display table table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="col-md-1"></th>
|
<th class="col-md-1"><input type="checkbox" id="checkAll"></th>
|
||||||
<th class="col-md-6">{{ trans('general.name') }}</th>
|
<th class="col-md-6">{{ trans('general.name') }}</th>
|
||||||
<th class="col-md-5">{{ trans('general.groups') }}</th>
|
<th class="col-md-5">{{ trans('general.groups') }}</th>
|
||||||
<th class="col-md-5">{{ trans('general.assets') }}</th>
|
<th class="col-md-5">{{ trans('general.assets') }}</th>
|
||||||
|
@ -50,9 +50,9 @@
|
||||||
<tr {!! ($user->isSuperUser() ? ' class="danger"':'') !!}>
|
<tr {!! ($user->isSuperUser() ? ' class="danger"':'') !!}>
|
||||||
<td>
|
<td>
|
||||||
@if (Auth::id()!=$user->id)
|
@if (Auth::id()!=$user->id)
|
||||||
<input type="checkbox" name="ids[]" value="{{ $user->id }}" class="minimal" checked="checked">
|
<input type="checkbox" name="ids[]" value="{{ $user->id }}" checked="checked">
|
||||||
@else
|
@else
|
||||||
<input type="checkbox" name="ids[]" value="{{ $user->id }}" class="minimal" disabled>
|
<input type="checkbox" name="ids[]" class="cannot_delete" value="{{ $user->id }}" disabled>
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
@ -120,6 +120,13 @@
|
||||||
|
|
||||||
@section('moar_scripts')
|
@section('moar_scripts')
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
|
$("#checkAll").change(function () {
|
||||||
|
$("input:checkbox").prop('checked', $(this).prop("checked"));
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
$(":submit").attr("disabled", "disabled");
|
$(":submit").attr("disabled", "disabled");
|
||||||
$("[name='status_id']").on('select2:select', function (e) {
|
$("[name='status_id']").on('select2:select', function (e) {
|
||||||
if (e.params.data.id != ""){
|
if (e.params.data.id != ""){
|
||||||
|
|
Loading…
Add table
Reference in a new issue