2017-09-26 02:43:01 +00:00
|
|
|
{{-- Pterodactyl - Panel --}}
|
2017-01-24 22:57:08 +00:00
|
|
|
{{-- Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com> --}}
|
2017-01-21 05:04:09 +00:00
|
|
|
|
2017-09-26 02:43:01 +00:00
|
|
|
{{-- This software is licensed under the terms of the MIT license. --}}
|
|
|
|
{{-- https://opensource.org/licenses/MIT --}}
|
2017-01-21 05:04:09 +00:00
|
|
|
@extends('layouts.master')
|
|
|
|
|
|
|
|
@section('title')
|
|
|
|
@lang('server.users.new.header')
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content-header')
|
|
|
|
<h1>@lang('server.users.edit.header')<small>@lang('server.users.edit.header_sub')</small></h1>
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li><a href="{{ route('index') }}">@lang('strings.home')</a></li>
|
|
|
|
<li><a href="{{ route('server.index', $server->uuidShort) }}">{{ $server->name }}</a></li>
|
|
|
|
<li><a href="{{ route('server.subusers', $server->uuidShort) }}">@lang('navigation.server.subusers')</a></li>
|
|
|
|
<li class="active">@lang('server.users.update')</li>
|
|
|
|
</ol>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
@can('edit-subuser', $server)
|
2017-10-28 02:42:53 +00:00
|
|
|
<form action="{{ route('server.subusers.view', [ 'uuid' => $server->uuidShort, 'subuser' => $subuser->hashid ]) }}" method="POST">
|
2017-01-21 05:04:09 +00:00
|
|
|
@endcan
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="box box-primary">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="control-label">@lang('server.users.new.email')</label>
|
|
|
|
<div>
|
|
|
|
{!! csrf_field() !!}
|
2017-02-10 00:38:54 +00:00
|
|
|
<input type="email" class="form-control" disabled value="{{ $subuser->user->email }}" />
|
2017-01-21 05:04:09 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@can('edit-subuser', $server)
|
|
|
|
<div class="box-body">
|
|
|
|
<div class="btn-group pull-left">
|
|
|
|
<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>
|
2017-09-04 23:12:13 +00:00
|
|
|
{!! method_field('PATCH') !!}
|
2017-01-21 05:04:09 +00:00
|
|
|
<input type="submit" name="submit" value="@lang('server.users.update')" class="pull-right btn btn-sm btn-primary" />
|
|
|
|
</div>
|
|
|
|
@endcan
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
2017-03-30 19:30:59 +00:00
|
|
|
@foreach($permlist as $block => $perms)
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">@lang('server.users.new.' . $block . '_header')</h3>
|
2017-01-21 05:04:09 +00:00
|
|
|
</div>
|
2017-03-30 19:30:59 +00:00
|
|
|
<div class="box-body">
|
|
|
|
@foreach($perms as $permission => $daemon)
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="checkbox checkbox-primary no-margin-bottom">
|
2017-04-18 01:44:58 +00:00
|
|
|
<input id="{{ $permission }}" name="permissions[]" type="checkbox" @if(isset($permissions[$permission]))checked="checked"@endif @cannot('edit-subuser', $server)disabled="disabled"@endcannot value="{{ $permission }}"/>
|
2017-03-30 19:30:59 +00:00
|
|
|
<label for="{{ $permission }}" class="strong">
|
|
|
|
@lang('server.users.new.' . str_replace('-', '_', $permission) . '.title')
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<p class="text-muted small">@lang('server.users.new.' . str_replace('-', '_', $permission) . '.description')</p>
|
|
|
|
</div>
|
|
|
|
@endforeach
|
2017-01-21 05:04:09 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-30 19:30:59 +00:00
|
|
|
@if ($loop->iteration % 2 === 0)
|
|
|
|
<div class="clearfix visible-lg-block visible-md-block visible-sm-block"></div>
|
|
|
|
@endif
|
|
|
|
@endforeach
|
2017-01-21 05:04:09 +00:00
|
|
|
</div>
|
|
|
|
@can('edit-subuser', $server)
|
|
|
|
</form>
|
|
|
|
@endcan
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('footer-scripts')
|
|
|
|
@parent
|
2017-01-21 18:49:14 +00:00
|
|
|
{!! Theme::js('js/frontend/server.socket.js') !!}
|
2017-01-21 05:04:09 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function () {
|
|
|
|
$('#selectAllCheckboxes').on('click', function () {
|
|
|
|
$('input[type=checkbox]').prop('checked', true);
|
|
|
|
});
|
|
|
|
$('#unselectAllCheckboxes').on('click', function () {
|
|
|
|
$('input[type=checkbox]').prop('checked', false);
|
|
|
|
});
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
@endsection
|