2019-02-03 12:34:15 -05:00
|
|
|
|
|
|
|
@if($authMethod === 'system' && $user->system_name == 'public')
|
2019-04-07 06:34:40 -04:00
|
|
|
<p class="mb-none text-warn">{{ trans('settings.users_system_public') }}</p>
|
2019-02-03 12:34:15 -05:00
|
|
|
@endif
|
|
|
|
|
|
|
|
<div class="pt-m">
|
|
|
|
<label class="setting-list-label">{{ trans('settings.users_details') }}</label>
|
|
|
|
@if($authMethod === 'standard')
|
|
|
|
<p class="small">{{ trans('settings.users_details_desc') }}</p>
|
|
|
|
@endif
|
|
|
|
@if($authMethod === 'ldap' || $authMethod === 'system')
|
|
|
|
<p class="small">{{ trans('settings.users_details_desc_no_email') }}</p>
|
|
|
|
@endif
|
2019-03-30 10:27:00 -04:00
|
|
|
<div class="grid half mt-m gap-xl">
|
2019-02-03 12:34:15 -05:00
|
|
|
<div>
|
|
|
|
<label for="name">{{ trans('auth.name') }}</label>
|
|
|
|
@include('form.text', ['name' => 'name'])
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
@if($authMethod !== 'ldap' || userCan('users-manage'))
|
|
|
|
<label for="email">{{ trans('auth.email') }}</label>
|
|
|
|
@include('form.text', ['name' => 'email'])
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@if($authMethod === 'ldap' && userCan('users-manage'))
|
2019-03-30 10:27:00 -04:00
|
|
|
<div class="grid half gap-xl v-center">
|
2019-02-03 12:34:15 -05:00
|
|
|
<div>
|
|
|
|
<label class="setting-list-label">{{ trans('settings.users_external_auth_id') }}</label>
|
|
|
|
<p class="small">{{ trans('settings.users_external_auth_id_desc') }}</p>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
@include('form.text', ['name' => 'external_auth_id'])
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if(userCan('users-manage'))
|
|
|
|
<div>
|
|
|
|
<label for="role" class="setting-list-label">{{ trans('settings.users_role') }}</label>
|
|
|
|
<p class="small">{{ trans('settings.users_role_desc') }}</p>
|
|
|
|
<div class="mt-m">
|
2019-04-07 07:00:09 -04:00
|
|
|
@include('form.role-checkboxes', ['name' => 'roles', 'roles' => $roles])
|
2019-02-03 12:34:15 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if($authMethod === 'standard')
|
|
|
|
<div>
|
|
|
|
<label class="setting-list-label">{{ trans('settings.users_password') }}</label>
|
|
|
|
<p class="small">{{ trans('settings.users_password_desc') }}</p>
|
|
|
|
@if(isset($model))
|
|
|
|
<p class="small">
|
|
|
|
{{ trans('settings.users_password_warning') }}
|
|
|
|
</p>
|
|
|
|
@endif
|
2019-03-30 10:27:00 -04:00
|
|
|
<div class="grid half mt-m gap-xl">
|
2019-02-03 12:34:15 -05:00
|
|
|
<div>
|
|
|
|
<label for="password">{{ trans('auth.password') }}</label>
|
|
|
|
@include('form.password', ['name' => 'password'])
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label for="password-confirm">{{ trans('auth.password_confirm') }}</label>
|
|
|
|
@include('form.password', ['name' => 'password-confirm'])
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|