|
| 1 | +{{-- Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com> --}} |
| 2 | + |
| 3 | +{{-- Permission is hereby granted, free of charge, to any person obtaining a copy --}} |
| 4 | +{{-- of this software and associated documentation files (the "Software"), to deal --}} |
| 5 | +{{-- in the Software without restriction, including without limitation the rights --}} |
| 6 | +{{-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell --}} |
| 7 | +{{-- copies of the Software, and to permit persons to whom the Software is --}} |
| 8 | +{{-- furnished to do so, subject to the following conditions: --}} |
| 9 | + |
| 10 | +{{-- The above copyright notice and this permission notice shall be included in all --}} |
| 11 | +{{-- copies or substantial portions of the Software. --}} |
| 12 | + |
| 13 | +{{-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR --}} |
| 14 | +{{-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, --}} |
| 15 | +{{-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE --}} |
| 16 | +{{-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER --}} |
| 17 | +{{-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, --}} |
| 18 | +{{-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE --}} |
| 19 | +{{-- SOFTWARE. --}} |
| 20 | +@extends('layouts.master') |
| 21 | + |
| 22 | +@section('title') |
| 23 | + @lang('server.config.startup.header') |
| 24 | +@endsection |
| 25 | + |
| 26 | +@section('content-header') |
| 27 | + <h1>@lang('server.config.startup.header')<small>@lang('server.config.startup.header_sub')</small></h1> |
| 28 | + <ol class="breadcrumb"> |
| 29 | + <li><a href="{{ route('index') }}">@lang('strings.home')</a></li> |
| 30 | + <li><a href="{{ route('server.index', $server->uuidShort) }}">{{ $server->name }}</a></li> |
| 31 | + <li>@lang('navigation.server.configuration')</li> |
| 32 | + <li class="active">@lang('navigation.server.startup_parameters')</li> |
| 33 | + </ol> |
| 34 | +@endsection |
| 35 | + |
| 36 | +@section('content') |
| 37 | +<div class="row"> |
| 38 | + <div class="col-md-6"> |
| 39 | + <div class="box"> |
| 40 | + <div class="box-header with-border"> |
| 41 | + <h3 class="box-title">@lang('server.config.startup.command')</h3> |
| 42 | + </div> |
| 43 | + <div class="box-body"> |
| 44 | + <div class="input-group"> |
| 45 | + <span class="input-group-addon">{{ $service->executable }}</span> |
| 46 | + <input type="text" class="form-control" readonly="readonly" value="{{ $processedStartup }}" /> |
| 47 | + </div> |
| 48 | + </div> |
| 49 | + </div> |
| 50 | + </div> |
| 51 | + <div class="col-md-6"> |
| 52 | + <div class="box"> |
| 53 | + <div class="box-header with-border"> |
| 54 | + <h3 class="box-title">@lang('server.config.startup.edit_params')</h3> |
| 55 | + </div> |
| 56 | + @can('edit-startup', $server) |
| 57 | + <form action="{{ route('server.settings.startup', $server->uuidShort) }}" method="POST"> |
| 58 | + <div class="box-body"> |
| 59 | + @foreach($variables as $item) |
| 60 | + <div class="form-group"> |
| 61 | + <label class="control-label"> |
| 62 | + @if($item->required === 1)<span class="label label-danger">@lang('strings.required')</span> @endif |
| 63 | + {{ $item->name }} |
| 64 | + </label> |
| 65 | + <div> |
| 66 | + <input type="text" |
| 67 | + @if($item->user_editable === 1) |
| 68 | + name="{{ $item->env_variable }}" |
| 69 | + @else |
| 70 | + readonly="readonly" |
| 71 | + @endif |
| 72 | + class="form-control" value="{{ old($item->env_variable, $item->a_serverValue) }}" data-action="matchRegex" data-regex="{{ $item->regex }}" /> |
| 73 | + </div> |
| 74 | + <p class="text-muted"><small>{!! $item->description !!}</small></p> |
| 75 | + </div> |
| 76 | + @endforeach |
| 77 | + </div> |
| 78 | + <div class="box-footer"> |
| 79 | + {!! csrf_field() !!} |
| 80 | + <input type="submit" class="btn btn-primary btn-sm" value="@lang('server.config.startup.update')" /> |
| 81 | + </div> |
| 82 | + </form> |
| 83 | + @else |
| 84 | + <div class="box-body"> |
| 85 | + <div class="callout callout-warning callout-nomargin"> |
| 86 | + <p>@lang('auth.not_authorized')</p> |
| 87 | + </div> |
| 88 | + </div> |
| 89 | + @endcan |
| 90 | + </div> |
| 91 | + </div> |
| 92 | +</div> |
| 93 | +@endsection |
| 94 | + |
| 95 | +@section('footer-scripts') |
| 96 | + @parent |
| 97 | + {!! Theme::js('js/frontend/server.socket.js') !!} |
| 98 | +@endsection |
0 commit comments