Skip to content

Commit c5e7f41

Browse files
committed
retheme admin settings view
1 parent 9f54ff2 commit c5e7f41

File tree

1 file changed

+100
-0
lines changed

1 file changed

+100
-0
lines changed
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{{-- Copyright (c) 2015 - 2017 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+
Administration
24+
@endsection
25+
26+
@section('content-header')
27+
<h1>Panel Settings<small>Configure Pterodactyl to your liking.</small></h1>
28+
<ol class="breadcrumb">
29+
<li><a href="{{ route('admin.index') }}">Admin</a></li>
30+
<li class="active">Index</li>
31+
</ol>
32+
@endsection
33+
34+
@section('content')
35+
<div class="row">
36+
<div class="col-xs-12">
37+
<div class="box">
38+
<div class="box-header with-border">
39+
<h3 class="box-title">Panel Settings</h3>
40+
</div>
41+
<form action="{{ route('admin.settings') }}" method="POST">
42+
<div class="box-body">
43+
<div class="row">
44+
<div class="form-group col-md-6">
45+
<label class="control-label">Company Name:</label>
46+
<div>
47+
<input type="text" class="form-control" name="company" value="{{ old('company', Settings::get('company')) }}" />
48+
<p class="text-muted"><small>This is the name that is used throughout the panel and in emails sent to clients.</small></p>
49+
</div>
50+
</div>
51+
<div class="form-group col-md-6">
52+
<label class="control-label">Default Language:</label>
53+
<div>
54+
<select name="default_language" class="form-control">
55+
<option value="de" @if(Settings::get('default_language') === 'de')selected @endif>Deutsch</option>
56+
<option value="en" @if(Settings::get('default_language', 'en') === 'en')selected @endif>English</option>
57+
<option value="es" @if(Settings::get('default_language') === 'es')selected @endif>Espa&ntilde;ol</option>
58+
<option value="fr" @if(Settings::get('default_language') === 'fr')selected @endif>Fran&ccedil;ais</option>
59+
<option value="it" @if(Settings::get('default_language') === 'it')selected @endif>Italiano</option>
60+
<option value="pl" @if(Settings::get('default_language') === 'pl')selected @endif>Polski</option>
61+
<option value="pt" @if(Settings::get('default_language') === 'pt')selected @endif>Portugu&ecirc;s</option>
62+
<option value="ru" @if(Settings::get('default_language') === 'ru')selected @endif>&#1088;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081;</option>
63+
<option value="se" @if(Settings::get('default_language') === 'se')selected @endif>Svenska</option>
64+
<option value="zh" @if(Settings::get('default_language') === 'zh')selected @endif>&#20013;&#22269;&#30340;的</option>
65+
</select>
66+
<p class="text-muted"><small>This is the default language that all clients will use unless they manually change it.</small></p>
67+
</div>
68+
</div>
69+
</div>
70+
<div class="row">
71+
<div class="col-md-12">
72+
<div class="alert alert-info">In order to modify your SMTP settings for sending mail you will need to edit the <code>.env</code> file in this project's root folder.</div>
73+
</div>
74+
</div>
75+
<div class="row">
76+
<div class="form-group col-md-6">
77+
<label class="control-label">Send Emails From:</label>
78+
<div>
79+
<input type="text" class="form-control" name="email_from" value="{{ old('email_from', Settings::get('email_from', env('MAIL_FROM', 'you@example.com'))) }}" />
80+
<p class="text-muted"><small>The email address that panel emails will be sent from. Note that some SMTP services require this to match for a given API key.</small></p>
81+
</div>
82+
</div>
83+
<div class="form-group col-md-6">
84+
<label class="control-label">Email Sender Name:</label>
85+
<div>
86+
<input type="text" class="form-control" name="email_sender_name" value="{{ old('email_sender_name', Settings::get('email_sender_name', env('MAIL_FROM_NAME', 'Pterodactyl Panel'))) }}" />
87+
<p class="text-muted"><small>The name that emails will appear to come from.</small></p>
88+
</div>
89+
</div>
90+
</div>
91+
</div>
92+
<div class="box-footer">
93+
{!! csrf_field() !!}
94+
<input type="submit" class="btn btn-sm btn-primary" value="Modify Settings">
95+
</div>
96+
</form>
97+
</div>
98+
</div>
99+
</div>
100+
@endsection

0 commit comments

Comments
 (0)