2017-03-10 23:25:12 +00:00
|
|
|
@extends('layouts.admin')
|
|
|
|
|
|
|
|
@section('title')
|
2017-10-07 04:57:53 +00:00
|
|
|
Nests
|
2017-03-10 23:25:12 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content-header')
|
2017-10-07 04:57:53 +00:00
|
|
|
<h1>Nests<small>All nests currently available on this system.</small></h1>
|
2017-03-10 23:25:12 +00:00
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li><a href="{{ route('admin.index') }}">Admin</a></li>
|
2017-10-07 04:57:53 +00:00
|
|
|
<li class="active">Nests</li>
|
2017-03-10 23:25:12 +00:00
|
|
|
</ol>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
2017-10-03 03:51:13 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<div class="alert alert-danger">
|
2018-05-13 14:34:09 +00:00
|
|
|
Eggs are a powerful feature of Pterodactyl Panel that allow for extreme flexibility and configuration. Please note that while powerful, modifying an egg wrongly can very easily brick your servers and cause more problems. Please avoid editing our default eggs — those provided by <code>support@pterodactyl.io</code> — unless you are absolutely sure of what you are doing.
|
2017-10-03 03:51:13 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-10 23:25:12 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
2017-10-07 04:57:53 +00:00
|
|
|
<h3 class="box-title">Configured Nests</h3>
|
2017-03-18 20:27:31 +00:00
|
|
|
<div class="box-tools">
|
2017-10-07 04:57:53 +00:00
|
|
|
<a href="#" class="btn btn-sm btn-success" data-toggle="modal" data-target="#importServiceOptionModal" role="button"><i class="fa fa-upload"></i> Import Egg</a>
|
|
|
|
<a href="{{ route('admin.nests.new') }}" class="btn btn-primary btn-sm">Create New</a>
|
2017-03-18 20:27:31 +00:00
|
|
|
</div>
|
2017-03-10 23:25:12 +00:00
|
|
|
</div>
|
|
|
|
<div class="box-body table-responsive no-padding">
|
|
|
|
<table class="table table-hover">
|
|
|
|
<tr>
|
2017-12-31 19:14:30 +00:00
|
|
|
<th>ID</th>
|
2017-03-10 23:25:12 +00:00
|
|
|
<th>Name</th>
|
|
|
|
<th>Description</th>
|
2017-10-07 04:57:53 +00:00
|
|
|
<th class="text-center">Eggs</th>
|
2017-03-10 23:25:12 +00:00
|
|
|
<th class="text-center">Servers</th>
|
|
|
|
</tr>
|
2017-10-07 04:57:53 +00:00
|
|
|
@foreach($nests as $nest)
|
2017-03-10 23:25:12 +00:00
|
|
|
<tr>
|
2017-12-31 19:14:30 +00:00
|
|
|
<td class="middle"><code>{{ $nest->id }}</code></td>
|
2017-10-07 04:57:53 +00:00
|
|
|
<td class="middle"><a href="{{ route('admin.nests.view', $nest->id) }}" data-toggle="tooltip" data-placement="right" title="{{ $nest->author }}">{{ $nest->name }}</a></td>
|
|
|
|
<td class="col-xs-6 middle">{{ $nest->description }}</td>
|
2017-12-31 19:14:30 +00:00
|
|
|
<td class="text-center middle">{{ $nest->eggs_count }}</td>
|
|
|
|
<td class="text-center middle">{{ $nest->servers_count }}</td>
|
2017-03-10 23:25:12 +00:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-10-04 04:31:04 +00:00
|
|
|
<div class="modal fade" tabindex="-1" role="dialog" id="importServiceOptionModal">
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
2017-10-07 04:57:53 +00:00
|
|
|
<h4 class="modal-title">Import an Egg</h4>
|
2017-10-04 04:31:04 +00:00
|
|
|
</div>
|
2017-10-07 04:57:53 +00:00
|
|
|
<form action="{{ route('admin.nests.egg.import') }}" enctype="multipart/form-data" method="POST">
|
2017-10-04 04:31:04 +00:00
|
|
|
<div class="modal-body">
|
|
|
|
<div class="form-group">
|
2017-10-07 04:57:53 +00:00
|
|
|
<label class="control-label" for="pImportFile">Egg File <span class="field-required"></span></label>
|
2017-10-04 04:31:04 +00:00
|
|
|
<div>
|
|
|
|
<input id="pImportFile" type="file" name="import_file" class="form-control" accept="application/json" />
|
2017-10-07 04:57:53 +00:00
|
|
|
<p class="small text-muted">Select the <code>.json</code> file for the new egg that you wish to import.</p>
|
2017-10-04 04:31:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2017-10-09 02:36:22 +00:00
|
|
|
<label class="control-label" for="pImportToNest">Associated Nest <span class="field-required"></span></label>
|
2017-10-04 04:31:04 +00:00
|
|
|
<div>
|
2017-10-09 02:36:22 +00:00
|
|
|
<select id="pImportToNest" name="import_to_nest">
|
2017-10-07 04:57:53 +00:00
|
|
|
@foreach($nests as $nest)
|
|
|
|
<option value="{{ $nest->id }}">{{ $nest->name }} <{{ $nest->author }}></option>
|
2017-10-04 04:31:04 +00:00
|
|
|
@endforeach
|
|
|
|
</select>
|
2017-10-07 04:57:53 +00:00
|
|
|
<p class="small text-muted">Select the nest that this egg will be associated with from the dropdown. If you wish to associate it with a new nest you will need to create that nest before continuing.</p>
|
2017-10-04 04:31:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
{{ csrf_field() }}
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
|
|
<button type="submit" class="btn btn-primary">Import</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('footer-scripts')
|
|
|
|
@parent
|
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
2017-10-09 02:36:22 +00:00
|
|
|
$('#pImportToNest').select2();
|
2017-10-04 04:31:04 +00:00
|
|
|
});
|
|
|
|
</script>
|
2017-03-10 23:25:12 +00:00
|
|
|
@endsection
|