2015-08-09 03:05:30 +08:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="name">Name</label>
|
2016-01-14 06:22:30 +08:00
|
|
|
@include('form.text', ['name' => 'name'])
|
2015-08-09 03:05:30 +08:00
|
|
|
</div>
|
|
|
|
|
2016-01-14 06:22:30 +08:00
|
|
|
@if($currentUser->can('user-update'))
|
2015-08-09 03:05:30 +08:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="email">Email</label>
|
2016-01-14 06:22:30 +08:00
|
|
|
@include('form.text', ['name' => 'email'])
|
2015-08-09 03:05:30 +08:00
|
|
|
</div>
|
2016-01-14 06:22:30 +08:00
|
|
|
@endif
|
2015-08-09 03:05:30 +08:00
|
|
|
|
2015-09-05 00:16:58 +08:00
|
|
|
@if($currentUser->can('user-update'))
|
2015-08-29 22:03:42 +08:00
|
|
|
<div class="form-group">
|
2015-09-05 00:16:58 +08:00
|
|
|
<label for="role">User Role</label>
|
2015-09-11 02:31:09 +08:00
|
|
|
@include('form.role-select', ['name' => 'role', 'options' => \BookStack\Role::all(), 'displayKey' => 'display_name'])
|
2015-08-29 22:03:42 +08:00
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2016-01-14 06:22:30 +08:00
|
|
|
@if($currentUser->can('user-update'))
|
2015-08-29 22:03:42 +08:00
|
|
|
<div class="form-group">
|
2016-01-14 06:22:30 +08:00
|
|
|
<label for="external_auth_id">External Authentication ID</label>
|
|
|
|
@include('form.text', ['name' => 'external_auth_id'])
|
2015-08-29 22:03:42 +08:00
|
|
|
</div>
|
2015-08-09 03:05:30 +08:00
|
|
|
@endif
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<a href="/users" class="button muted">Cancel</a>
|
|
|
|
<button class="button pos" type="submit">Save</button>
|
2016-01-14 06:22:30 +08:00
|
|
|
</div>
|