mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 13:38:20 +01:00
Merge pull request #1810 from CachetHQ/allow-user-level-editing
Edit the user level from edit user page
This commit is contained in:
commit
d3454d8126
@ -29,6 +29,15 @@
|
||||
<input type="password" class="form-control password-strength" name="password" value="" {{ !$current_user->isAdmin ? "disabled": "" }}>
|
||||
<div class="strengthify-wrapper"></div>
|
||||
</div>
|
||||
@if($current_user->isAdmin)
|
||||
<div class="form-group">
|
||||
<label>{{ trans('forms.user.user_level') }}</label>
|
||||
<select name="level" class="form-control">
|
||||
<option value="2" {{ $user->level === 2 ? "selected" : null }}>{{ trans('forms.user.levels.user') }}</option>
|
||||
<option value="1" {{ $user->level === 1 ? "selected" : null }}>{{ trans('forms.user.levels.admin') }}</option>
|
||||
</select>
|
||||
</div>
|
||||
@endif
|
||||
</fieldset>
|
||||
|
||||
<div class="form-group">
|
||||
|
Loading…
x
Reference in New Issue
Block a user