BookStack/resources/views/users/forms/standard.blade.php

34 lines
996 B
PHP
Raw Normal View History

2015-08-09 03:05:30 +08:00
<div class="form-group">
2016-12-04 22:08:04 +08:00
<label for="name">{{ trans('auth.name') }}</label>
@include('form.text', ['name' => 'name'])
2015-08-09 03:05:30 +08:00
</div>
<div class="form-group">
2016-12-04 22:08:04 +08:00
<label for="email">{{ trans('auth.email') }}</label>
@include('form.text', ['name' => 'email'])
2015-08-09 03:05:30 +08:00
</div>
@if(userCan('users-manage'))
2015-08-29 22:03:42 +08:00
<div class="form-group">
2016-12-04 22:08:04 +08:00
<label for="role">{{ trans('settings.users_role') }}</label>
@include('form/role-checkboxes', ['name' => 'roles', 'roles' => $roles])
2015-08-29 22:03:42 +08:00
</div>
@endif
2015-09-05 00:16:58 +08:00
@if(isset($model))
2015-08-29 22:03:42 +08:00
<div class="form-group">
2015-09-05 00:16:58 +08:00
<span class="text-muted">
2016-12-04 22:08:04 +08:00
{{ trans('settings.users_password_warning') }}
2015-09-05 00:16:58 +08:00
</span>
2015-08-29 22:03:42 +08:00
</div>
2015-08-09 03:05:30 +08:00
@endif
<div class="form-group">
2016-12-04 22:08:04 +08:00
<label for="password">{{ trans('auth.password') }}</label>
@include('form.password', ['name' => 'password'])
2015-08-09 03:05:30 +08:00
</div>
<div class="form-group">
2016-12-04 22:08:04 +08:00
<label for="password-confirm">{{ trans('auth.password_confirm') }}</label>
@include('form.password', ['name' => 'password-confirm'])
</div>