2015-08-08 15:05:30 -04:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="name">Name</label>
|
2016-01-13 17:22:30 -05:00
|
|
|
@include('form.text', ['name' => 'name'])
|
2015-08-08 15:05:30 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="email">Email</label>
|
2016-01-13 17:22:30 -05:00
|
|
|
@include('form.text', ['name' => 'email'])
|
2015-08-08 15:05:30 -04:00
|
|
|
</div>
|
|
|
|
|
2015-09-04 12:16:58 -04:00
|
|
|
@if($currentUser->can('user-update'))
|
2015-08-29 10:03:42 -04:00
|
|
|
<div class="form-group">
|
2015-09-04 12:16:58 -04:00
|
|
|
<label for="role">User Role</label>
|
2015-09-10 14:31:09 -04:00
|
|
|
@include('form.role-select', ['name' => 'role', 'options' => \BookStack\Role::all(), 'displayKey' => 'display_name'])
|
2015-08-29 10:03:42 -04:00
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2015-09-04 12:16:58 -04:00
|
|
|
@if(isset($model))
|
2015-08-29 10:03:42 -04:00
|
|
|
<div class="form-group">
|
2015-09-04 12:16:58 -04:00
|
|
|
<span class="text-muted">
|
|
|
|
Only fill the below if you would like <br>to change your password:
|
|
|
|
</span>
|
2015-08-29 10:03:42 -04:00
|
|
|
</div>
|
2015-08-08 15:05:30 -04:00
|
|
|
@endif
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="password">Password</label>
|
2016-01-13 17:22:30 -05:00
|
|
|
@include('form.password', ['name' => 'password'])
|
2015-08-08 15:05:30 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="password-confirm">Confirm Password</label>
|
2016-01-13 17:22:30 -05:00
|
|
|
@include('form.password', ['name' => 'password-confirm'])
|
2015-08-08 15:05:30 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<a href="/users" class="button muted">Cancel</a>
|
|
|
|
<button class="button pos" type="submit">Save</button>
|
2015-12-09 17:30:55 -05:00
|
|
|
</div>
|
|
|
|
|