misc_pterodactyl-panel/resources/themes/pterodactyl/admin/users/view.blade.php

173 lines
9.4 KiB
PHP
Raw Normal View History

2017-09-26 02:43:01 +00:00
{{-- Pterodactyl - Panel --}}
2017-03-04 00:10:03 +00:00
{{-- Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com> --}}
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-03-04 00:10:03 +00:00
@extends('layouts.admin')
@section('title')
Manager User: {{ $user->username }}
@endsection
@section('content-header')
<h1>{{ $user->name_first }} {{ $user->name_last}}<small>{{ $user->username }}</small></h1>
<ol class="breadcrumb">
<li><a href="{{ route('admin.index') }}">Admin</a></li>
<li><a href="{{ route('admin.users') }}">Users</a></li>
<li class="active">{{ $user->username }}</li>
</ol>
@endsection
@section('content')
<div class="row">
2017-03-04 00:44:52 +00:00
<form action="{{ route('admin.users.view', $user->id) }}" method="post">
<div class="col-md-6">
2017-03-04 00:44:52 +00:00
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Identity</h3>
</div>
2017-03-04 00:10:03 +00:00
<div class="box-body">
<div class="form-group">
<label for="email" class="control-label">Email</label>
<div>
2017-05-01 20:41:39 +00:00
<input readonly type="email" name="email" value="{{ $user->email }}" class="form-control form-autocomplete-stop">
2017-03-04 00:10:03 +00:00
</div>
</div>
<div class="form-group">
<label for="registered" class="control-label">Username</label>
<div>
2017-05-01 20:41:39 +00:00
<input readonly type="text" name="username" value="{{ $user->username }}" class="form-control form-autocomplete-stop">
2017-03-04 00:10:03 +00:00
</div>
</div>
<div class="form-group">
<label for="registered" class="control-label">Client First Name</label>
<div>
2017-05-01 20:41:39 +00:00
<input readonly type="text" name="name_first" value="{{ $user->name_first }}" class="form-control form-autocomplete-stop">
2017-03-04 00:10:03 +00:00
</div>
</div>
<div class="form-group">
<label for="registered" class="control-label">Client Last Name</label>
<div>
2017-05-01 20:41:39 +00:00
<input readonly type="text" name="name_last" value="{{ $user->name_last }}" class="form-control form-autocomplete-stop">
2017-03-04 00:10:03 +00:00
</div>
</div>
2017-12-31 02:25:04 +00:00
<div class="form-group">
2018-05-13 14:34:09 +00:00
<label class="control-label">Default Language</label>
2017-12-31 02:25:04 +00:00
<div>
<select name="language" class="form-control">
@foreach($languages as $key => $value)
<option value="{{ $key }}" @if($user->language === $key) selected @endif>{{ $value }}</option>
@endforeach
</select>
<p class="text-muted"><small>The default language to use when rendering the Panel for this user.</small></p>
</div>
</div>
2017-03-04 00:10:03 +00:00
</div>
<div class="box-footer">
{!! csrf_field() !!}
{!! method_field('PATCH') !!}
2017-03-04 00:44:52 +00:00
<input type="submit" value="Update User" class="btn btn-primary btn-sm">
2017-03-04 00:10:03 +00:00
</div>
</div>
2017-03-04 00:44:52 +00:00
</div>
<div class="col-md-6">
2017-03-04 00:44:52 +00:00
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">Password</h3>
</div>
2017-03-04 00:10:03 +00:00
<div class="box-body">
<div class="alert alert-success" style="display:none;margin-bottom:10px;" id="gen_pass"></div>
<div class="form-group no-margin-bottom">
<label for="password" class="control-label">Password <span class="field-optional"></span></label>
2017-03-04 00:10:03 +00:00
<div>
2017-05-01 20:41:39 +00:00
<input readonly type="password" id="password" name="password" class="form-control form-autocomplete-stop">
<p class="text-muted small">Leave blank to keep this user's password the same. User will not receive any notification if password is changed.</p>
2017-03-04 00:10:03 +00:00
</div>
</div>
</div>
</div>
2017-03-04 00:44:52 +00:00
</div>
<div class="col-md-6">
2017-03-04 00:44:52 +00:00
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">Permissions</h3>
</div>
2017-03-04 00:10:03 +00:00
<div class="box-body">
<div class="form-group">
<label for="root_admin" class="control-label">Administrator</label>
<div>
<select name="root_admin" class="form-control">
2017-09-21 23:05:10 +00:00
<option value="0">@lang('strings.no')</option>
<option value="1" {{ $user->root_admin ? 'selected="selected"' : '' }}>@lang('strings.yes')</option>
2017-03-04 00:10:03 +00:00
</select>
<p class="text-muted"><small>Setting this to 'Yes' gives a user full administrative access.</small></p>
</div>
<div class="checkbox checkbox-primary">
<input type="checkbox" id="pIgnoreConnectionError" value="1" name="ignore_connection_error">
<label for="pIgnoreConnectionError"> Ignore exceptions raised while revoking keys.</label>
<p class="text-muted small">If checked, any errors thrown while revoking keys across nodes will be ignored. You should avoid this checkbox if possible as any non-revoked keys could continue to be active for up to 24 hours after this account is changed. If you are needing to revoke account permissions immediately and are facing node issues, you should check this box and then restart any nodes that failed to be updated to clear out any stored keys.</p>
</div>
2017-03-04 00:10:03 +00:00
</div>
</div>
2017-03-04 00:44:52 +00:00
</div>
2017-03-04 00:10:03 +00:00
</div>
2017-03-04 00:44:52 +00:00
</form>
2017-12-31 02:25:04 +00:00
{{--<div class="col-xs-12">--}}
{{--<div class="box">--}}
{{--<div class="box-header with-border">--}}
{{--<h3 class="box-title">Associated Servers</h3>--}}
{{--</div>--}}
{{--<div class="box-body table-responsive no-padding">--}}
{{--<table class="table table-hover">--}}
{{--<thead>--}}
{{--<tr>--}}
{{--<th style="width:2%;"></th>--}}
{{--<th>Identifier</th>--}}
{{--<th>Server Name</th>--}}
{{--<th>Access</th>--}}
{{--<th>Node</th>--}}
{{--<th style="width:10%;"></th>--}}
{{--</tr>--}}
{{--</thead>--}}
{{--<tbody>--}}
2017-10-07 23:08:19 +00:00
{{--@foreach($user->setAccessLevel('subuser')->access()->get() as $server)--}}
{{--<tr>--}}
{{--<td><a href="{{ route('server.index', $server->uuidShort) }}/"><i class="fa fa-tachometer"></i></a></td>--}}
{{--<td><code>{{ $server->uuidShort }}</code></td>--}}
{{--<td><a href="{{ route('admin.servers.view', $server->id) }}">{{ $server->name }}</a></td>--}}
{{--<td>--}}
{{--@if($server->owner_id === $user->id)--}}
{{--<span class="label bg-purple">Owner</span>--}}
{{--@else--}}
{{--<span class="label bg-blue">Subuser</span>--}}
{{--@endif--}}
{{--</td>--}}
{{--<td><a href="{{ route('admin.nodes.view', $server->node->id) }}">{{ $server->node->name }}</a></td>--}}
{{--<td class="centered">@if($server->suspended === 0)<span class="label muted muted-hover label-success">Active</span>@else<span class="label label-warning">Suspended</span>@endif</td>--}}
{{--</td>--}}
{{--@endforeach--}}
2017-12-31 02:25:04 +00:00
{{--</tbody>--}}
{{--</table>--}}
{{--</div>--}}
{{--</div>--}}
{{--</div>--}}
2017-03-04 00:10:03 +00:00
<div class="col-xs-12">
<div class="box box-danger">
<div class="box-header with-border">
<h3 class="box-title">Delete User</h3>
</div>
<div class="box-body">
2017-03-10 07:29:58 +00:00
<p class="no-margin">There must be no servers associated with this account in order for it to be deleted.</p>
</div>
<div class="box-footer">
<form action="{{ route('admin.users.view', $user->id) }}" method="POST">
2017-03-04 00:10:03 +00:00
{!! csrf_field() !!}
{!! method_field('DELETE') !!}
<input id="delete" type="submit" class="btn btn-sm btn-danger pull-right" {{ $user->servers->count() < 1 ?: 'disabled' }} value="Delete User" />
2017-03-04 00:10:03 +00:00
</form>
</div>
</div>
</div>
</div>
@endsection