Repair the admin side add user functionality.

This commit is contained in:
Emmet Young 2017-01-23 13:24:14 +11:00
parent 921c7b1725
commit 9c87e03c0c
2 changed files with 11 additions and 0 deletions

View file

@ -122,6 +122,7 @@ class UserController extends Controller
'name_first', 'name_first',
'name_last', 'name_last',
'username', 'username',
'root_admin',
])); ]));
Alert::success('Account has been successfully created.')->flash(); Alert::success('Account has been successfully created.')->flash();

View file

@ -61,6 +61,16 @@
<input type="text" autocomplete="off" name="name_last" value="{{ old('name_last') }}" class="form-control" /> <input type="text" autocomplete="off" name="name_last" value="{{ old('name_last') }}" class="form-control" />
</div> </div>
</div> </div>
<div class="form-group col-md-12">
<label for="root_admin" class="control-label">{{ trans('strings.root_administrator') }}</label>
<div>
<select name="root_admin" class="form-control">
<option value="0">{{ trans('strings.no') }}</option>
<option value="1">{{ trans('strings.yes') }}</option>
</select>
<p class="text-muted"><small>Setting this to 'Yes' gives a user full administrative access.</small></p>
</div>
</div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">