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-16 01:28:54 +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-16 01:28:54 +00:00
|
|
|
@extends('layouts.master')
|
|
|
|
|
|
|
|
@section('title')
|
2017-01-18 00:30:27 +00:00
|
|
|
@lang('server.config.sftp.header')
|
2017-01-16 01:28:54 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content-header')
|
2017-01-18 00:30:27 +00:00
|
|
|
<h1>@lang('server.config.sftp.header')<small>@lang('server.config.sftp.header_sub')</small></h1>
|
2017-01-16 01:28:54 +00:00
|
|
|
<ol class="breadcrumb">
|
2017-01-18 00:30:27 +00:00
|
|
|
<li><a href="{{ route('index') }}">@lang('strings.home')</a></li>
|
2017-01-16 01:28:54 +00:00
|
|
|
<li><a href="{{ route('server.index', $server->uuidShort) }}">{{ $server->name }}</a></li>
|
2017-01-18 00:30:27 +00:00
|
|
|
<li>@lang('navigation.server.configuration')</li>
|
|
|
|
<li class="active">@lang('navigation.server.sftp_settings')</li>
|
2017-01-16 01:28:54 +00:00
|
|
|
</ol>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
2017-01-18 00:30:27 +00:00
|
|
|
<h3 class="box-title">@lang('server.config.sftp.change_pass')</h3>
|
2017-01-16 01:28:54 +00:00
|
|
|
</div>
|
|
|
|
@can('reset-sftp', $server)
|
|
|
|
<form action="{{ route('server.settings.sftp', $server->uuidShort) }}" method="post">
|
|
|
|
<div class="box-body">
|
|
|
|
<div class="form-group">
|
2017-01-18 01:01:26 +00:00
|
|
|
<label for="sftp_pass" class="control-label">@lang('base.account.new_password')</label>
|
2017-01-16 01:28:54 +00:00
|
|
|
<div>
|
|
|
|
<input type="password" class="form-control" name="sftp_pass" />
|
2017-01-18 01:01:26 +00:00
|
|
|
<p class="text-muted"><small>@lang('auth.password_requirements')</small></p>
|
2017-01-16 01:28:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
|
|
|
{!! csrf_field() !!}
|
2017-01-18 01:01:26 +00:00
|
|
|
<input type="submit" class="btn btn-primary btn-sm" value="@lang('base.account.update_pass')" />
|
2017-01-16 01:28:54 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
@else
|
|
|
|
<div class="box-body">
|
|
|
|
<div class="callout callout-warning callout-nomargin">
|
2017-01-18 00:30:27 +00:00
|
|
|
<p>@lang('auth.not_authorized')</p>
|
2017-01-16 01:28:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endcan
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
2017-01-18 00:30:27 +00:00
|
|
|
<h3 class="box-title">@lang('server.config.sftp.details')</h3>
|
2017-01-16 01:28:54 +00:00
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
2017-03-31 20:42:12 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="control-label">@lang('server.config.sftp.conn_addr')</label>
|
|
|
|
<div>
|
|
|
|
<input type="text" class="form-control" readonly value="sftp://{{ $node->fqdn }}:{{ $node->daemonSFTP }}" />
|
2017-01-16 01:28:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2017-01-18 00:30:27 +00:00
|
|
|
<label for="password" class="control-label">@lang('strings.username')</label>
|
2017-01-16 01:28:54 +00:00
|
|
|
<div>
|
|
|
|
<input type="text" class="form-control" readonly value="{{ $server->username }}" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@can('view-sftp-password', $server)
|
|
|
|
<div class="form-group">
|
2017-01-18 01:01:26 +00:00
|
|
|
<label for="password" class="control-label">@lang('base.account.current_password')</label>
|
2017-01-16 01:28:54 +00:00
|
|
|
<div>
|
|
|
|
<input type="text" class="form-control" readonly @if(! is_null($server->sftp_password))value="{{ Crypt::decrypt($server->sftp_password) }}"@endif />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endcan
|
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
2017-01-18 00:30:27 +00:00
|
|
|
<p class="small text-muted">@lang('server.config.sftp.warning')</p>
|
2017-01-16 01:28:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('footer-scripts')
|
|
|
|
@parent
|
|
|
|
{!! Theme::js('js/frontend/server.socket.js') !!}
|
|
|
|
@endsection
|