-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15563 from snipe/refined_gates_on_user_bulk
Update for #15534 - Refined gates on user bulk
- Loading branch information
Showing
2 changed files
with
29 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,31 @@ | ||
<div id="userBulkEditToolbar"> | ||
@can('view', \App\Models\User::class) | ||
<div id="userBulkEditToolbar"> | ||
{{ Form::open([ | ||
'method' => 'POST', | ||
'route' => ['users/bulkedit'], | ||
'class' => 'form-inline', | ||
'id' => 'usersBulkForm']) }} | ||
|
||
@if (request('status')!='deleted') | ||
@can('delete', \App\Models\User::class) | ||
<div id="users-toolbar"> | ||
<label for="bulk_actions" class="sr-only">{{ trans('general.bulk_actions') }}</label> | ||
<select name="bulk_actions" class="form-control select2" style="min-width:300px;" aria-label="bulk_actions"> | ||
<option value="edit">{{ trans('general.bulk_edit') }}</option> | ||
<option value="delete">{!! trans('general.bulk_checkin_delete') !!}</option> | ||
<option value="merge">{!! trans('general.merge_users') !!}</option> | ||
<option value="bulkpasswordreset">{{ trans('button.send_password_link') }}</option> | ||
<option value="print">{{ trans('admin/users/general.print_assigned') }}</option> | ||
</select> | ||
<button class="btn btn-primary" id="bulkUserEditButton" disabled>{{ trans('button.go') }}</button> | ||
</div> | ||
@endcan | ||
@endif | ||
{{ Form::close() }} | ||
</div> | ||
@if (request('status')!='deleted') | ||
<div id="users-toolbar"> | ||
<label for="bulk_actions" class="sr-only">{{ trans('general.bulk_actions') }}</label> | ||
<select name="bulk_actions" class="form-control select2" style="min-width:300px;" aria-label="bulk_actions"> | ||
|
||
@can('update', \App\Models\User::class) | ||
<option value="edit">{{ trans('general.bulk_edit') }}</option> | ||
@endcan | ||
|
||
@can('delete', \App\Models\User::class) | ||
<option value="delete">{!! trans('general.bulk_checkin_delete') !!}</option> | ||
<option value="merge">{!! trans('general.merge_users') !!}</option> | ||
@endcan | ||
|
||
<option value="bulkpasswordreset">{{ trans('button.send_password_link') }}</option> | ||
<option value="print">{{ trans('admin/users/general.print_assigned') }}</option> | ||
</select> | ||
<button class="btn btn-primary" id="bulkUserEditButton" disabled>{{ trans('button.go') }}</button> | ||
</div> | ||
@endif | ||
{{ Form::close() }} | ||
</div> | ||
@endcan |