
# Conflicts: # .all-contributorsrc # .nvmrc # README.md # app/Console/Commands/LdapSync.php # app/Http/Controllers/Api/ConsumablesController.php # app/Http/Controllers/Api/ImportController.php # app/Http/Controllers/Assets/AssetsController.php # app/Http/Controllers/Auth/LoginController.php # app/Http/Controllers/CustomFieldsetsController.php # app/Http/Controllers/LicensesController.php # app/Http/Controllers/UsersController.php # app/Importer/import_mappings.md # app/Models/Ldap.php # app/Models/Loggable.php # composer.json # composer.lock # config/version.php # public/css/build/all.css # public/css/dist/all.css # public/css/skins/skin-contrast.css # public/css/skins/skin-contrast.css.map # public/js/build/all.js # public/js/build/vue.js # public/js/build/vue.js.map # public/js/dist/all.js # public/mix-manifest.json # resources/assets/js/components/importer/importer-file.vue # resources/assets/less/overrides.less # resources/macros/macros.php # resources/views/custom_fields/fieldsets/view.blade.php # resources/views/hardware/edit.blade.php # resources/views/hardware/labels.blade.php # resources/views/hardware/view.blade.php # resources/views/layouts/default.blade.php # resources/views/modals/model.blade.php # resources/views/modals/user.blade.php # resources/views/users/index.blade.php # routes/api.php # routes/web/fields.php # tests/unit/UserTest.php
123 lines
5.9 KiB
PHP
123 lines
5.9 KiB
PHP
@extends('layouts/default')
|
|
|
|
{{-- Page title --}}
|
|
@section('title')
|
|
Bulk Edit
|
|
@parent
|
|
@stop
|
|
|
|
|
|
@section('header_right')
|
|
<a href="{{ URL::previous() }}" class="btn btn-sm btn-primary pull-right">
|
|
{{ trans('general.back') }}</a>
|
|
@stop
|
|
|
|
{{-- Page content --}}
|
|
@section('content')
|
|
<div class="row">
|
|
<div class="col-md-8 col-md-offset-2">
|
|
|
|
<p>{{ trans('admin/users/general.bulk_update_help') }}</p>
|
|
|
|
<div class="callout callout-warning">
|
|
<i class="fa fa-warning"></i> {{ trans('admin/users/general.bulk_update_warn', ['user_count' => count($users)]) }}
|
|
</div>
|
|
|
|
<form class="form-horizontal" method="post" action="{{ route('users/bulkeditsave') }}" autocomplete="off" role="form">
|
|
{{ csrf_field() }}
|
|
|
|
<div class="box box-default">
|
|
<div class="box-body">
|
|
|
|
|
|
<!-- Department -->
|
|
@include ('partials.forms.edit.department-select', ['translated_name' => trans('general.department'), 'fieldname' => 'department_id'])
|
|
|
|
|
|
<!-- Location -->
|
|
@include ('partials.forms.edit.location-select', ['translated_name' => trans('general.location'), 'fieldname' => 'location_id'])
|
|
|
|
|
|
<!-- Company -->
|
|
@if (\App\Models\Company::canManageUsersCompanies())
|
|
@include ('partials.forms.edit.company-select', ['translated_name' => trans('general.select_company'), 'fieldname' => 'company_id'])
|
|
@endif
|
|
|
|
<!-- Manager -->
|
|
@include ('partials.forms.edit.user-select', ['translated_name' => trans('admin/users/table.manager'), 'fieldname' => 'manager_id'])
|
|
|
|
<!-- language -->
|
|
<div class="form-group {{ $errors->has('locale') ? 'has-error' : '' }}">
|
|
<label class="col-md-3 control-label" for="locale">{{ trans('general.language') }}</label>
|
|
<div class="col-md-8">
|
|
{!! Form::locales('locale', old('locale', $user->locale), 'select2') !!}
|
|
{!! $errors->first('locale', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
|
</div>
|
|
</div>
|
|
|
|
<!-- City -->
|
|
<div class="form-group{{ $errors->has('city') ? ' has-error' : '' }}">
|
|
<label class="col-md-3 control-label" for="city">{{ trans('general.city') }}</label>
|
|
<div class="col-md-4">
|
|
<input class="form-control" type="text" name="city" id="city" aria-label="city" />
|
|
{!! $errors->first('city', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
|
</div>
|
|
</div>
|
|
|
|
<!-- activated -->
|
|
<div class="form-group">
|
|
<div class="col-sm-3 control-label">
|
|
Activated
|
|
</div>
|
|
<div class="col-sm-9">
|
|
<div class="checkbox">
|
|
<label for="activated">
|
|
{{ Form::radio('activated', '', true, ['aria-label'=>'activated']) }} Do not change activation status <br>
|
|
{{ Form::radio('activated', '1', old('activated'), ['aria-label'=>'activated']) }} User is activated<br>
|
|
{{ Form::radio('activated', '0', old('activated'), ['aria-label'=>'activated']) }} User is de-activated
|
|
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div> <!--/form-group-->
|
|
|
|
|
|
<!-- Groups -->
|
|
<div class="form-group{{ $errors->has('groups') ? ' has-error' : '' }}">
|
|
<label class="col-md-3 control-label" for="groups"> {{ trans('general.groups') }}</label>
|
|
<div class="col-md-6">
|
|
@if ((Config::get('app.lock_passwords') || (!Auth::user()->isSuperUser())))
|
|
|
|
<span class="help-block">Only superadmins may edit group memberships.</p>
|
|
@else
|
|
<div class="controls">
|
|
<select name="groups[]" id="groups[]" multiple="multiple" class="form-control" aria-label="groups">
|
|
<option value="">Remove Group Memberships </option>
|
|
|
|
@foreach ($groups as $id => $group)
|
|
<option value="{{ $id }}">{{ $group }} </option>
|
|
@endforeach
|
|
</select>
|
|
|
|
<span class="help-block">
|
|
{{ trans('admin/users/table.groupnotes') }}
|
|
</span>
|
|
</div> <!--/controls-->
|
|
@endif
|
|
</div> <!--/col-md-5-->
|
|
</div>
|
|
|
|
|
|
@foreach ($users as $user)
|
|
<input type="hidden" name="ids[{{ $user->id }}]" value="{{ $user->id }}">
|
|
@endforeach
|
|
</div> <!--/.box-body-->
|
|
|
|
<div class="box-footer text-right">
|
|
<button type="submit" class="btn btn-success"><i class="fa fa-check icon-white" aria-hidden="true"></i> {{ trans('general.save') }}</button>
|
|
</div>
|
|
</div> <!--/.box.box-default-->
|
|
</form>
|
|
</div> <!--/.col-md-8-->
|
|
</div>
|
|
@stop
|