2017-09-26 02:43:01 +00:00
|
|
|
{{-- Pterodactyl - Panel --}}
|
2017-03-10 23:25:12 +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-10 23:25:12 +00:00
|
|
|
@extends('layouts.admin')
|
|
|
|
|
|
|
|
@section('title')
|
2017-08-19 03:19:06 +00:00
|
|
|
Service → {{ $service->name }}
|
2017-03-10 23:25:12 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content-header')
|
|
|
|
<h1>{{ $service->name }}<small>{{ str_limit($service->description, 50) }}</small></h1>
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li><a href="{{ route('admin.index') }}">Admin</a></li>
|
2017-08-19 03:19:06 +00:00
|
|
|
<li><a href="{{ route('admin.services') }}">Service</a></li>
|
2017-03-10 23:25:12 +00:00
|
|
|
<li class="active">{{ $service->name }}</li>
|
|
|
|
</ol>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
2017-03-12 19:59:17 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<div class="nav-tabs-custom nav-tabs-floating">
|
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li class="active"><a href="{{ route('admin.services.view', $service->id) }}">Overview</a></li>
|
|
|
|
<li><a href="{{ route('admin.services.view.functions', $service->id) }}">Functions</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-10 23:25:12 +00:00
|
|
|
<form action="{{ route('admin.services.view', $service->id) }}" method="POST">
|
|
|
|
<div class="row">
|
2017-04-28 14:25:50 +00:00
|
|
|
<div class="col-md-6">
|
2017-03-10 23:25:12 +00:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="control-label">Name</label>
|
|
|
|
<div>
|
|
|
|
<input type="text" name="name" class="form-control" value="{{ $service->name }}" />
|
|
|
|
<p class="text-muted"><small>This should be a descriptive category name that emcompasses all of the options within the service.</small></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="control-label">Description</label>
|
|
|
|
<div>
|
2017-10-03 03:51:13 +00:00
|
|
|
<textarea name="description" class="form-control" rows="7">{{ $service->description }}</textarea>
|
2017-03-10 23:25:12 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-10-03 03:51:13 +00:00
|
|
|
<div class="box-footer">
|
|
|
|
<button id="deleteButton" type="submit" name="_method" value="DELETE" class="btn btn-sm btn-danger muted muted-hover"><i class="fa fa-trash-o"></i></button>
|
|
|
|
</div>
|
2017-03-10 23:25:12 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-04-28 14:25:50 +00:00
|
|
|
<div class="col-md-6">
|
2017-03-10 23:25:12 +00:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-body">
|
|
|
|
<div class="form-group">
|
2017-10-03 03:51:13 +00:00
|
|
|
<label class="control-label">Default Start Command</label>
|
2017-03-10 23:25:12 +00:00
|
|
|
<div>
|
2017-10-03 03:51:13 +00:00
|
|
|
<textarea name="startup" class="form-control" rows="2">{{ $service->startup }}</textarea>
|
|
|
|
<p class="text-muted"><small>The default start command to use when running options under this service. This command can be modified per-option and should include the executable to be called in the container.</small></p>
|
2017-03-10 23:25:12 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2017-10-03 03:51:13 +00:00
|
|
|
<label class="control-label">Author</label>
|
2017-03-10 23:25:12 +00:00
|
|
|
<div>
|
2017-10-03 03:51:13 +00:00
|
|
|
<input type="text" readonly class="form-control" value="{{ $service->author }}" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="control-label">UUID</label>
|
|
|
|
<div>
|
|
|
|
<input type="text" readonly class="form-control" value="{{ $service->uuid }}" />
|
2017-03-10 23:25:12 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
|
|
|
{!! csrf_field() !!}
|
2017-08-12 20:29:01 +00:00
|
|
|
<button type="submit" name="_method" value="PATCH" class="btn btn-primary btn-sm pull-right">Edit Service</button>
|
2017-03-10 23:25:12 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<div class="box box-primary">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">Configured Options</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body table-responsive no-padding">
|
|
|
|
<table class="table table-hover">
|
|
|
|
<tr>
|
2017-10-03 03:51:13 +00:00
|
|
|
<th>Name</th>
|
2017-03-10 23:25:12 +00:00
|
|
|
<th>Description</th>
|
|
|
|
<th>Tag</th>
|
|
|
|
<th class="text-center">Servers</th>
|
|
|
|
</tr>
|
|
|
|
@foreach($service->options as $option)
|
|
|
|
<tr>
|
|
|
|
<td><a href="{{ route('admin.services.option.view', $option->id) }}">{{ $option->name }}</a></td>
|
|
|
|
<td>{!! $option->description !!}</td>
|
|
|
|
<td><code>{{ $option->tag }}</code></td>
|
|
|
|
<td class="text-center">{{ $option->servers->count() }}</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
|
|
|
<a href="{{ route('admin.services.option.new') }}"><button class="btn btn-success btn-sm pull-right">New Service Option</button></a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|
2017-03-12 05:00:06 +00:00
|
|
|
|
|
|
|
@section('footer-scripts')
|
|
|
|
@parent
|
|
|
|
<script>
|
|
|
|
$('#deleteButton').on('mouseenter', function (event) {
|
|
|
|
$(this).find('i').html(' Delete Service');
|
|
|
|
}).on('mouseleave', function (event) {
|
|
|
|
$(this).find('i').html('');
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@endsection
|