Merge pull request #1810 from CachetHQ/allow-user-level-editing

Edit the user level from edit user page
This commit is contained in:
James Brooks 2016-05-24 14:57:42 +01:00
commit d3454d8126

View File

@ -29,6 +29,15 @@
<input type="password" class="form-control password-strength" name="password" value="" {{ !$current_user->isAdmin ? "disabled": "" }}> <input type="password" class="form-control password-strength" name="password" value="" {{ !$current_user->isAdmin ? "disabled": "" }}>
<div class="strengthify-wrapper"></div> <div class="strengthify-wrapper"></div>
</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> </fieldset>
<div class="form-group"> <div class="form-group">