Finish subuser controller
This commit is contained in:
parent
7222754580
commit
dc310ffdea
16 changed files with 524 additions and 161 deletions
|
@ -55,6 +55,7 @@ return [
|
|||
'invalid_archive_exception' => 'The pack archive provided appears to be missing a required archive.tar.gz or import.json file in the base directory.',
|
||||
],
|
||||
'subusers' => [
|
||||
'editing_self' => 'Editing your own subuser account is not permitted.',
|
||||
'user_is_owner' => 'You cannot add the server owner as a subuser for this server.',
|
||||
'subuser_exists' => 'A user with that email address is already assigned as a subuser for this server.',
|
||||
],
|
||||
|
|
|
@ -44,6 +44,8 @@ return [
|
|||
'list' => 'Accounts with Access',
|
||||
'add' => 'Add New Subuser',
|
||||
'update' => 'Update Subuser',
|
||||
'user_assigned' => 'Successfully assigned a new subuser to this server.',
|
||||
'user_updated' => 'Successfully updated permissions.',
|
||||
'edit' => [
|
||||
'header' => 'Edit Subuser',
|
||||
'header_sub' => 'Modify user\'s access to server.',
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
{{--<li>--}}
|
||||
{{--<a href="#" data-action="control-sidebar" data-toggle="tooltip" data-placement="bottom" title="{{ @trans('strings.servers') }}"><i class="fa fa-server"></i></a>--}}
|
||||
{{--</li>--}}
|
||||
@if(Auth::user()->isRootAdmin())
|
||||
@if(Auth::user()->root_admin)
|
||||
<li>
|
||||
<li><a href="{{ route('admin.index') }}" data-toggle="tooltip" data-placement="bottom" title="{{ @trans('strings.admin_cp') }}"><i class="fa fa-gears"></i></a></li>
|
||||
</li>
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
<label class="control-label">@lang('server.users.new.email')</label>
|
||||
<div>
|
||||
{!! csrf_field() !!}
|
||||
<input type="email" class="form-control" name="email" />
|
||||
<input type="email" class="form-control" name="email" value="{{ old('email') }}" />
|
||||
<p class="text-muted small">@lang('server.users.new.email_help')</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -55,6 +55,7 @@
|
|||
<a id="selectAllCheckboxes" class="btn btn-sm btn-default">@lang('strings.select_all')</a>
|
||||
<a id="unselectAllCheckboxes" class="btn btn-sm btn-default">@lang('strings.select_none')</a>
|
||||
</div>
|
||||
{!! method_field('PATCH') !!}
|
||||
<input type="submit" name="submit" value="@lang('server.users.update')" class="pull-right btn btn-sm btn-primary" />
|
||||
</div>
|
||||
@endcan
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue