Begin updating UI
This commit is contained in:
parent
493c5888a3
commit
ae671e6b19
22 changed files with 182 additions and 102 deletions
|
@ -18,6 +18,13 @@
|
|||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="alert alert-danger">
|
||||
Services are a powerful feature of Pterodactyl Panel that allow for extreme flexibility and configuration. Please note that while powerful, modifing a service wrongly can very easily brick your servers and cause more problems. Please avoid editing our default services — those provided by <code>support@pterodactyl.io</code> — unless you are absolutely sure of what you are doing.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box">
|
||||
|
@ -38,7 +45,7 @@
|
|||
</tr>
|
||||
@foreach($services as $service)
|
||||
<tr>
|
||||
<td class="middle"><a href="{{ route('admin.services.view', $service->id) }}">{{ $service->name }}</a></td>
|
||||
<td class="middle"><a href="{{ route('admin.services.view', $service->id) }}" data-toggle="tooltip" data-placement="right" title="{{ $service->author }}">{{ $service->name }}</a></td>
|
||||
<td class="col-xs-6 middle">{{ $service->description }}</td>
|
||||
<td class="text-center middle"><code>{{ $service->options_count }}</code></td>
|
||||
<td class="text-center middle"><code>{{ $service->packs_count }}</code></td>
|
||||
|
|
|
@ -46,13 +46,6 @@
|
|||
<div class="col-md-6">
|
||||
<div class="box">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label class="control-label">Folder Name</label>
|
||||
<div>
|
||||
<input type="text" name="folder" class="form-control" value="{{ old('folder') }}" />
|
||||
<p class="text-muted"><small>Service are downloaded by the daemon and stored in a folder using this name. The storage location is <code>/srv/daemon/services/{NAME}</code> by default.</small></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">Default Start Command</label>
|
||||
<div>
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
<label for="pServiceId" class="form-label">Associated Service</label>
|
||||
<select name="service_id" id="pServiceId">
|
||||
@foreach($services as $service)
|
||||
<option value="{{ $service->id }}" {{ old('service_id') != $service->id ?: 'selected' }}>{{ $service->name }}</option>
|
||||
<option value="{{ $service->id }}" {{ old('service_id') != $service->id ?: 'selected' }}>{{ $service->name }} <{{ $service->author }}></option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
@ -51,16 +51,19 @@
|
|||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label for="pTag" class="form-label">Option Tag</label>
|
||||
<input type="text" id="pTag" name="tag" value="{{ old('tag') }}" class="form-control" />
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">{{ config('pterodactyl.service.author') }}:</span>
|
||||
<input type="text" id="pTag" name="tag" value="{{ old('tag') }}" class="form-control" />
|
||||
</div>
|
||||
<p class="text-muted small">This should be a unique identifer for this service option that is not used for any other service options. Must be alpha-numeric and no more than 60 characters in length.</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="pDockerImage" class="form-label">Docker Image</label>
|
||||
<label for="pDockerImage" class="control-label">Docker Image <span class="field-optional"></span></label>
|
||||
<input type="text" id="pDockerImage" name="docker_image" value="{{ old('docker_image') }}" placeholder="quay.io/pterodactyl/service" class="form-control" />
|
||||
<p class="text-muted small">The default docker image that should be used for new servers under this service option. This can be left blank to use the parent service's defined image, and can also be changed per-server.</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="pStartup" class="form-label">Startup Command</label>
|
||||
<label for="pStartup" class="control-label">Startup Command <span class="field-optional"></span></label>
|
||||
<textarea id="pStartup" name="startup" class="form-control" rows="4">{{ old('startup') }}</textarea>
|
||||
<p class="text-muted small">The default statup command that should be used for new servers under this service option. This can be left blank to use the parent service's startup, and can also be changed per-server.</p>
|
||||
</div>
|
||||
|
@ -136,7 +139,7 @@
|
|||
data: $.map(_.get(Pterodactyl.services, $(this).val() + '.options', []), function (item) {
|
||||
return {
|
||||
id: item.id,
|
||||
text: item.name,
|
||||
text: item.name + ' <' + item.tag + '>',
|
||||
};
|
||||
}),
|
||||
});
|
||||
|
|
|
@ -59,17 +59,16 @@
|
|||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label for="pTag" class="form-label">Option Tag</label>
|
||||
<input type="text" id="pTag" name="tag" value="{{ $option->tag }}" class="form-control" />
|
||||
<p class="text-muted small">This should be a unique identifer for this service option that is not used for any other service options.</p>
|
||||
<label class="form-label">Option Tag</label>
|
||||
<input type="text" disabled value="{{ $option->tag }}" class="form-control" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="pDockerImage" class="form-label">Docker Image</label>
|
||||
<label for="pDockerImage" class="control-label">Docker Image <span class="field-optional"></label>
|
||||
<input type="text" id="pDockerImage" name="docker_image" value="{{ $option->docker_image }}" class="form-control" />
|
||||
<p class="text-muted small">The default docker image that should be used for new servers under this service option. This can be left blank to use the parent service's defined image, and can also be changed per-server.</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="pStartup" class="form-label">Startup Command</label>
|
||||
<label for="pStartup" class="control-label">Startup Command <span class="field-optional"></label>
|
||||
<textarea id="pStartup" name="startup" class="form-control" rows="4" placeholder="{{ $option->service->startup }}">{{ $option->startup }}</textarea>
|
||||
<p class="text-muted small">The default statup command that should be used for new servers under this service option. This can be left blank to use the parent service's startup, and can also be changed per-server.</p>
|
||||
</div>
|
||||
|
@ -97,7 +96,7 @@
|
|||
<select name="config_from" id="pConfigFrom" class="form-control">
|
||||
<option value="0">None</option>
|
||||
@foreach($option->service->options as $o)
|
||||
<option value="{{ $o->id }}" {{ ($option->config_from !== $o->id) ?: 'selected' }}>{{ $o->name }}</option>
|
||||
<option value="{{ $o->id }}" {{ ($option->config_from !== $o->id) ?: 'selected' }}>{{ $o->name }} <{{ $option->tag }}></option>
|
||||
@endforeach
|
||||
</select>
|
||||
<p class="text-muted small">If you would like to default to settings from another option select the option from the menu above.</p>
|
||||
|
|
|
@ -44,22 +44,18 @@
|
|||
<div class="form-group">
|
||||
<label class="control-label">Description</label>
|
||||
<div>
|
||||
<textarea name="description" class="form-control" rows="6">{{ $service->description }}</textarea>
|
||||
<textarea name="description" class="form-control" rows="7">{{ $service->description }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="box">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label class="control-label">Folder Name</label>
|
||||
<div>
|
||||
<input type="text" name="folder" class="form-control" value="{{ $service->folder }}" />
|
||||
<p class="text-muted"><small>Service are downloaded by the daemon and stored in a folder using this name. The storage location is <code>/srv/daemon/services/{NAME}</code> by default.</small></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">Default Start Command</label>
|
||||
<div>
|
||||
|
@ -67,10 +63,21 @@
|
|||
<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>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">Author</label>
|
||||
<div>
|
||||
<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 }}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! csrf_field() !!}
|
||||
<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>
|
||||
<button type="submit" name="_method" value="PATCH" class="btn btn-primary btn-sm pull-right">Edit Service</button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -86,7 +93,7 @@
|
|||
<div class="box-body table-responsive no-padding">
|
||||
<table class="table table-hover">
|
||||
<tr>
|
||||
<th class="col-sm-4 col-md-3">Name</th>
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
<th>Tag</th>
|
||||
<th class="text-center">Servers</th>
|
||||
|
|
|
@ -197,6 +197,12 @@
|
|||
});
|
||||
</script>
|
||||
@endif
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
</script>
|
||||
@show
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue