2019-02-04 01:34:15 +08:00
|
|
|
|
|
|
|
@if($authMethod === 'system' && $user->system_name == 'public')
|
2019-04-07 18:34:40 +08:00
|
|
|
<p class="mb-none text-warn">{{ trans('settings.users_system_public') }}</p>
|
2019-02-04 01:34:15 +08: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 22:27:00 +08:00
|
|
|
<div class="grid half mt-m gap-xl">
|
2019-02-04 01:34:15 +08: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>
|
2019-08-07 04:29:42 +08:00
|
|
|
@include('form.text', ['name' => 'email', 'disabled' => !userCan('users-manage')])
|
2019-02-04 01:34:15 +08:00
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-10-07 06:05:26 +08:00
|
|
|
@if(in_array($authMethod, ['ldap', 'saml2', 'oidc']) && userCan('users-manage'))
|
2019-03-30 22:27:00 +08:00
|
|
|
<div class="grid half gap-xl v-center">
|
2019-02-04 01:34:15 +08: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 19:00:09 +08:00
|
|
|
@include('form.role-checkboxes', ['name' => 'roles', 'roles' => $roles])
|
2019-02-04 01:34:15 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if($authMethod === 'standard')
|
2022-11-16 00:04:46 +08:00
|
|
|
<div component="new-user-password">
|
2019-02-04 01:34:15 +08:00
|
|
|
<label class="setting-list-label">{{ trans('settings.users_password') }}</label>
|
2019-08-18 20:11:30 +08:00
|
|
|
|
|
|
|
@if(!isset($model))
|
2019-02-04 01:34:15 +08:00
|
|
|
<p class="small">
|
2019-08-18 20:11:30 +08:00
|
|
|
{{ trans('settings.users_send_invite_text') }}
|
2019-02-04 01:34:15 +08:00
|
|
|
</p>
|
2019-08-18 20:11:30 +08:00
|
|
|
|
2021-08-22 20:15:58 +08:00
|
|
|
@include('form.toggle-switch', [
|
2019-08-18 20:11:30 +08:00
|
|
|
'name' => 'send_invite',
|
|
|
|
'value' => old('send_invite', 'true') === 'true',
|
|
|
|
'label' => trans('settings.users_send_invite_option')
|
|
|
|
])
|
2019-02-04 01:34:15 +08:00
|
|
|
@endif
|
2019-08-18 20:11:30 +08:00
|
|
|
|
2022-11-16 00:04:46 +08:00
|
|
|
<div refs="new-user-password@input-container" @if(!isset($model)) style="display: none;" @endif>
|
2023-10-18 00:38:07 +08:00
|
|
|
<p class="small mb-none">{{ trans('settings.users_password_desc') }}</p>
|
2019-08-18 20:11:30 +08:00
|
|
|
@if(isset($model))
|
|
|
|
<p class="small">
|
|
|
|
{{ trans('settings.users_password_warning') }}
|
|
|
|
</p>
|
|
|
|
@endif
|
|
|
|
<div class="grid half mt-m gap-xl">
|
|
|
|
<div>
|
|
|
|
<label for="password">{{ trans('auth.password') }}</label>
|
2021-01-14 04:45:18 +08:00
|
|
|
@include('form.password', ['name' => 'password', 'autocomplete' => 'new-password'])
|
2019-08-18 20:11:30 +08:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label for="password-confirm">{{ trans('auth.password_confirm') }}</label>
|
|
|
|
@include('form.password', ['name' => 'password-confirm'])
|
|
|
|
</div>
|
2019-02-04 01:34:15 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-08-18 20:11:30 +08:00
|
|
|
|
2019-02-04 01:34:15 +08:00
|
|
|
</div>
|
2019-08-07 05:42:46 +08:00
|
|
|
@endif
|