Add remote user to bulk edit

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-03-04 06:47:23 -08:00
parent 0dfc27f56e
commit 9a358087ec
3 changed files with 21 additions and 1 deletions

View file

@ -90,7 +90,9 @@ class BulkUsersController extends Controller
->conditionallyAddItem('department_id') ->conditionallyAddItem('department_id')
->conditionallyAddItem('company_id') ->conditionallyAddItem('company_id')
->conditionallyAddItem('locale') ->conditionallyAddItem('locale')
->conditionallyAddItem('remote')
->conditionallyAddItem('activated'); ->conditionallyAddItem('activated');
// If the manager_id is one of the users being updated, generate a warning. // If the manager_id is one of the users being updated, generate a warning.
if (array_search($request->input('manager_id'), $user_raw_array)) { if (array_search($request->input('manager_id'), $user_raw_array)) {
$manager_conflict = true; $manager_conflict = true;

View file

@ -36,5 +36,6 @@ return [
'checkin_user_properties' => 'Check in all properties associated with these users', 'checkin_user_properties' => 'Check in all properties associated with these users',
'remote_label' => 'This is a remote user', 'remote_label' => 'This is a remote user',
'remote' => 'Remote', 'remote' => 'Remote',
'remote_help' => 'This can be useful if you need to filter by remote users who never or rarely come into your physical locations.' 'remote_help' => 'This can be useful if you need to filter by remote users who never or rarely come into your physical locations.',
'not_remote_label' => 'This is not a remote user',
]; ];

View file

@ -63,6 +63,23 @@
</div> </div>
</div> </div>
<!-- remote -->
<div class="form-group">
<div class="col-sm-3 control-label">
{{ trans('admin/users/general.remote') }}
</div>
<div class="col-sm-9">
<div class="checkbox">
<label for="remote">
{{ Form::radio('remote', '', true, ['aria-label'=>'remote']) }} {{ trans('general.do_not_change') }} <br>
{{ Form::radio('remote', '1', old('remote'), ['aria-label'=>'remote']) }} {{ trans('admin/users/general.remote_label') }}<br>
{{ Form::radio('remote', '0', old('remote'), ['aria-label'=>'remote']) }} {{ trans('admin/users/general.not_remote_label') }}
</label>
</div>
</div>
</div> <!--/form-group-->
<!-- activated --> <!-- activated -->
<div class="form-group"> <div class="form-group">
<div class="col-sm-3 control-label"> <div class="col-sm-3 control-label">