|
| 1 | +{{-- |
| 2 | + Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com> |
| 3 | +
|
| 4 | + Permission is hereby granted, free of charge, to any person obtaining a copy |
| 5 | + of this software and associated documentation files (the "Software"), to deal |
| 6 | + in the Software without restriction, including without limitation the rights |
| 7 | + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 8 | + copies of the Software, and to permit persons to whom the Software is |
| 9 | + furnished to do so, subject to the following conditions: |
| 10 | +
|
| 11 | + The above copyright notice and this permission notice shall be included in all |
| 12 | + copies or substantial portions of the Software. |
| 13 | +
|
| 14 | + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 15 | + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 16 | + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 17 | + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 18 | + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 19 | + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 20 | + SOFTWARE. |
| 21 | +--}} |
| 22 | +@extends('layouts.master') |
| 23 | + |
| 24 | +@section('title') |
| 25 | + Server Settings |
| 26 | +@endsection |
| 27 | + |
| 28 | +@section('content') |
| 29 | +<div class="col-md-12"> |
| 30 | + <h3 class="nopad">Server Settings</h3><hr /> |
| 31 | + <ul class="nav nav-tabs tabs_with_panel" id="config_tabs"> |
| 32 | + @can('view-sftp', $server)<li class="active"><a href="#tab_sftp" data-toggle="tab">SFTP Settings</a></li>@endcan |
| 33 | + @can('view-startup', $server)<li><a href="#tab_startup" data-toggle="tab">Startup Configuration</a></li>@endcan |
| 34 | + </ul> |
| 35 | + <div class="tab-content"> |
| 36 | + @can('view-sftp', $server) |
| 37 | + <div class="tab-pane active" id="tab_sftp"> |
| 38 | + <div class="panel panel-default"> |
| 39 | + <div class="panel-heading"></div> |
| 40 | + <div class="panel-body"> |
| 41 | + <div class="row"> |
| 42 | + <div class="form-group col-md-6"> |
| 43 | + <label class="control-label">SFTP Connection Address:</label> |
| 44 | + <div> |
| 45 | + <input type="text" readonly="readonly" class="form-control" value="{{ $node->fqdn }}:{{ $node->daemonSFTP }}" /> |
| 46 | + </div> |
| 47 | + </div> |
| 48 | + <div class="form-group col-md-6"> |
| 49 | + <label class="control-label">SFTP Username:</label> |
| 50 | + <div> |
| 51 | + <input type="text" readonly="readonly" class="form-control" value="{{ $server->username }}" /> |
| 52 | + </div> |
| 53 | + </div> |
| 54 | + </div> |
| 55 | + @can('reset-sftp', $server) |
| 56 | + <form action="{{ route('server.settings.sftp', $server->uuidShort) }}" method="POST"> |
| 57 | + <div class="row"> |
| 58 | + <div class="form-group col-md-6"> |
| 59 | + <label class="control-label">New SFTP Password:</label> |
| 60 | + <div> |
| 61 | + <input type="password" name="sftp_pass" class="form-control" /> |
| 62 | + <p class="text-muted"><small>Passwords must meet the following requirements: at least one uppercase character, one lowercase character, one digit, and be at least 8 characters in length. <a href="#" data-action="generate-password">Click here</a> to generate one to use.</small></p> |
| 63 | + </div> |
| 64 | + </div> |
| 65 | + <div class="form-group col-md-6"> |
| 66 | + <label class="control-label"> </label> |
| 67 | + <div> |
| 68 | + {!! csrf_field() !!} |
| 69 | + <input type="submit" class="btn btn-sm btn-primary" value="Update Password" /> |
| 70 | + </div> |
| 71 | + </div> |
| 72 | + </div> |
| 73 | + </form> |
| 74 | + @endcan |
| 75 | + </div> |
| 76 | + </div> |
| 77 | + </div> |
| 78 | + @endcan |
| 79 | + @can('view-startup', $server) |
| 80 | + <div class="tab-pane" id="tab_startup"> |
| 81 | + <div class="panel panel-default"> |
| 82 | + <div class="panel-heading"></div> |
| 83 | + <div class="panel-body"> |
| 84 | + Startup |
| 85 | + </div> |
| 86 | + </div> |
| 87 | + </div> |
| 88 | + @endcan |
| 89 | + </div> |
| 90 | +</div> |
| 91 | +<script> |
| 92 | +$(document).ready(function () { |
| 93 | + $('.server-settings').addClass('active'); |
| 94 | +}); |
| 95 | +</script> |
| 96 | +@endsection |
0 commit comments