|
| 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.admin') |
| 21 | + |
| 22 | +@section('title') |
| 23 | + New Service Option for {{ $service->name }} |
| 24 | +@endsection |
| 25 | + |
| 26 | +@section('content') |
| 27 | +<div class="col-md-12"> |
| 28 | + <ul class="breadcrumb"> |
| 29 | + <li><a href="/admin">Admin Control</a></li> |
| 30 | + <li><a href="/admin/services">Services</a></li> |
| 31 | + <li><a href="{{ route('admin.services.service', $service->id) }}">{{ $service->name }}</a></li> |
| 32 | + <li class="active">New Service Option</li> |
| 33 | + </ul> |
| 34 | + <h3>Service Option Settings</h3><hr /> |
| 35 | + <form action="{{ route('admin.services.option.new', $service->id) }}" method="POST"> |
| 36 | + <div class="row"> |
| 37 | + <div class="col-md-6 form-group"> |
| 38 | + <label class="control-label">Name:</label> |
| 39 | + <div> |
| 40 | + <input type="text" name="name" value="{{ old('name') }}" class="form-control" /> |
| 41 | + </div> |
| 42 | + </div> |
| 43 | + <div class="col-md-6 form-group"> |
| 44 | + <label class="control-label">Description:</label> |
| 45 | + <div> |
| 46 | + <textarea name="description" class="form-control" rows="3">{{ old('description') }}</textarea> |
| 47 | + </div> |
| 48 | + </div> |
| 49 | + </div> |
| 50 | + <div class="row"> |
| 51 | + <div class="col-md-3 form-group"> |
| 52 | + <label class="control-label">Tag:</label> |
| 53 | + <div> |
| 54 | + <input type="text" name="tag" value="{{ old('tag') }}" class="form-control" /> |
| 55 | + </div> |
| 56 | + </div> |
| 57 | + <div class="col-md-3 form-group"> |
| 58 | + <label class="control-label">Executable:</label> |
| 59 | + <div> |
| 60 | + <input type="text" name="executable" value="{{ old('executable') }}" class="form-control" /> |
| 61 | + <p class="text-muted"><small>Leave blank to use parent executable.</small></p> |
| 62 | + </div> |
| 63 | + </div> |
| 64 | + <div class="col-md-6 form-group"> |
| 65 | + <label class="control-label">Docker Image:</label> |
| 66 | + <div> |
| 67 | + <input type="text" name="docker_image" value="{{ old('docker_image') }}" class="form-control" /> |
| 68 | + </div> |
| 69 | + </div> |
| 70 | + </div> |
| 71 | + <div class="row"> |
| 72 | + <div class="col-md-12 form-group"> |
| 73 | + <label class="control-label">Default Startup Command:</label> |
| 74 | + <div> |
| 75 | + <input type="text" name="startup" value="{{ old('startup') }}" class="form-control" /> |
| 76 | + <p class="text-muted"><small>To use the default startup of the parent service simply leave this field blank.</small></p> |
| 77 | + </div> |
| 78 | + </div> |
| 79 | + </div> |
| 80 | + <div class="well well-sm"> |
| 81 | + <div class="row"> |
| 82 | + <div class="col-md-12"> |
| 83 | + {!! csrf_field() !!} |
| 84 | + <input type="submit" class="btn btn-sm btn-primary" value="Create Service Option" /> |
| 85 | + </div> |
| 86 | + </div> |
| 87 | + </div> |
| 88 | + </form> |
| 89 | +</div> |
| 90 | +<script> |
| 91 | +$(document).ready(function () { |
| 92 | + $('#sidebar_links').find("a[href='/admin/services']").addClass('active'); |
| 93 | + $('#env_var').on('keyup', function () { |
| 94 | + $(this).parent().find('code').html('{{' + escape($(this).val()) + '}}'); |
| 95 | + }); |
| 96 | +}); |
| 97 | +</script> |
| 98 | +@endsection |
0 commit comments