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-18 00:30:27 +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-18 00:30:27 +00:00
|
|
|
@extends('layouts.master')
|
|
|
|
|
|
|
|
@section('title')
|
|
|
|
@lang('server.config.startup.header')
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content-header')
|
|
|
|
<h1>@lang('server.config.startup.header')<small>@lang('server.config.startup.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>@lang('navigation.server.configuration')</li>
|
|
|
|
<li class="active">@lang('navigation.server.startup_parameters')</li>
|
|
|
|
</ol>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="row">
|
2017-03-05 04:45:22 +00:00
|
|
|
<form action="{{ route('server.settings.startup', $server->uuidShort) }}" method="POST">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">@lang('server.config.startup.command')</h3>
|
2017-01-18 00:30:27 +00:00
|
|
|
</div>
|
2017-03-05 04:45:22 +00:00
|
|
|
<div class="box-body">
|
2017-03-12 23:34:06 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<input type="text" class="form-control" readonly value="{{ $processedStartup }}" />
|
2017-01-18 00:30:27 +00:00
|
|
|
</div>
|
2017-03-05 04:45:22 +00:00
|
|
|
</div>
|
|
|
|
@can('edit-startup', $server)
|
2017-01-18 00:30:27 +00:00
|
|
|
<div class="box-footer">
|
|
|
|
{!! csrf_field() !!}
|
2017-03-05 04:45:22 +00:00
|
|
|
<input type="submit" class="btn btn-primary btn-sm pull-right" value="@lang('server.config.startup.update')" />
|
2017-01-18 00:30:27 +00:00
|
|
|
</div>
|
2017-03-05 04:45:22 +00:00
|
|
|
@endcan
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@can('edit-startup', $server)
|
2017-03-12 23:34:06 +00:00
|
|
|
@foreach($variables as $v)
|
2017-03-05 04:45:22 +00:00
|
|
|
<div class="col-xs-12 col-md-4 col-sm-6">
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
2017-06-19 02:38:00 +00:00
|
|
|
<h3 class="box-title">{{ $v->name }}</h3>
|
2017-03-05 04:45:22 +00:00
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
2017-03-12 23:34:06 +00:00
|
|
|
<input
|
2017-06-19 02:38:00 +00:00
|
|
|
@if($v->user_editable)
|
|
|
|
name="env_{{ $v->id }}"
|
2017-03-05 04:45:22 +00:00
|
|
|
@else
|
|
|
|
readonly
|
|
|
|
@endif
|
2017-06-19 02:38:00 +00:00
|
|
|
class="form-control" type="text" value="{{ old('env_' . $v->id, $v->server_set_value) }}" />
|
|
|
|
<p class="small text-muted">{{ $v->description }}</p>
|
2017-03-05 04:45:22 +00:00
|
|
|
<p class="no-margin">
|
2017-06-19 02:38:00 +00:00
|
|
|
@if($v->required && $v->user_editable )
|
2017-03-05 04:45:22 +00:00
|
|
|
<span class="label label-danger">@lang('strings.required')</span>
|
2017-06-19 02:38:00 +00:00
|
|
|
@elseif(! $v->required && $v->user_editable)
|
2017-03-05 04:45:22 +00:00
|
|
|
<span class="label label-default">@lang('strings.optional')</span>
|
|
|
|
@endif
|
2017-06-19 02:38:00 +00:00
|
|
|
@if(! $v->user_editable)
|
2017-03-05 04:45:22 +00:00
|
|
|
<span class="label label-warning">@lang('strings.read_only')</span>
|
|
|
|
@endif
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
2017-06-19 02:38:00 +00:00
|
|
|
<p class="no-margin text-muted small"><strong>@lang('server.config.startup.startup_var'):</strong> <code>{{ $v->env_variable }}</code></p>
|
|
|
|
<p class="no-margin text-muted small"><strong>@lang('server.config.startup.startup_regex'):</strong> <code>{{ $v->rules }}</code></p>
|
2017-03-05 04:45:22 +00:00
|
|
|
</div>
|
2017-01-18 00:30:27 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-05 04:45:22 +00:00
|
|
|
@endforeach
|
|
|
|
@endcan
|
|
|
|
</form>
|
2017-01-18 00:30:27 +00:00
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('footer-scripts')
|
|
|
|
@parent
|
|
|
|
{!! Theme::js('js/frontend/server.socket.js') !!}
|
|
|
|
@endsection
|