File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
app/Http/Controllers/Admin
resources/views/admin/users Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ public function postNew(Request $request)
122122 'name_first ' ,
123123 'name_last ' ,
124124 'username ' ,
125+ 'root_admin ' ,
125126 ]));
126127 Alert::success ('Account has been successfully created. ' )->flash ();
127128
Original file line number Diff line number Diff line change 6161 <input type =" text" autocomplete =" off" name =" name_last" value =" {{ old (' name_last' ) } }" class =" form-control" />
6262 </div >
6363 </div >
64+ <div class =" form-group col-md-12" >
65+ <label for =" root_admin" class =" control-label" >{{ trans (' strings.root_administrator' ) } } </label >
66+ <div >
67+ <select name =" root_admin" class =" form-control" >
68+ <option value =" 0" >{{ trans (' strings.no' ) } } </option >
69+ <option value =" 1" >{{ trans (' strings.yes' ) } } </option >
70+ </select >
71+ <p class =" text-muted" ><small >Setting this to 'Yes' gives a user full administrative access.</small ></p >
72+ </div >
73+ </div >
6474 </div >
6575 <div class =" row" >
6676 <div class =" col-md-12" >
You can’t perform that action at this time.
0 commit comments