forked from hestiacp/hestiacp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit_whitelabel.php
More file actions
153 lines (150 loc) · 4.83 KB
/
edit_whitelabel.php
File metadata and controls
153 lines (150 loc) · 4.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!-- Begin toolbar -->
<div class="toolbar">
<div class="toolbar-inner">
<div class="toolbar-buttons">
<a href="/edit/server/" class="button button-secondary" id="btn-back">
<i class="fas fa-arrow-left icon-blue"></i><?= _("Back") ?>
</a>
</div>
<div class="toolbar-buttons">
<button type="submit" class="button" form="main-form">
<i class="fas fa-floppy-disk icon-purple"></i><?= _("Save") ?>
</button>
</div>
</div>
</div>
<!-- End toolbar -->
<!-- Begin form -->
<div class="container">
<form
x-data="{
hide_docs: '<?= $v_hide_docs ?? "no" ?>',
}"
id="main-form"
name="v_configure_server"
method="post"
>
<input type="hidden" name="token" value="<?= $_SESSION["token"] ?>">
<input type="hidden" name="save" value="save">
<div class="form-container">
<h1 class="u-mb20">
<?= _("White Label Options") ?>
</h1>
<?php show_alert_message($_SESSION); ?>
<!-- Basic options section -->
<details class="box-collapse u-mb10">
<summary class="box-collapse-header">
<i class="fas fa-gear u-mr15"></i>
<?= _("General") ?>
</summary>
<div class="box-collapse-content">
<div class="u-mb10">
<label for="v_app_name" class="form-label">
<?= _("Application Name") ?>
</label>
<input
type="text"
class="form-control"
name="v_app_name"
id="v_app_name"
value="<?= htmlentities(trim($v_app_name, "'")) ?>"
>
</div>
<div class="u-mb10">
<label for="v_title" class="form-label">
<?= _("Title") ?><span class="optional">(<?= _("Supported variables") ?>: {{appname}}, {{hostname}}, {{ip}} and {{page}} )</span>
</label>
<input
type="text"
class="form-control"
name="v_title"
id="v_title"
value="<?= htmlentities(trim($v_title, "'")) ?>"
>
</div>
<div class="u-mb10">
<label for="v_from_name" class="form-label">
<?= _("Sender Name") ?><span class="optional">(<?= _("Default") ?>: <?= htmlentities(trim($v_app_name, "'")) ?>)</span>
</label>
<input
type="text"
class="form-control"
name="v_from_name"
id="v_from_name"
value="<?= htmlentities(trim($v_from_name, "'")) ?>"
>
</div>
<div class="u-mb10">
<label for="v_from_email" class="form-label">
<?= _("Sender Email Address") ?><span class="optional">(<?= _("Default") ?>: <?= sprintf("noreply@%s", htmlentities(trim(get_hostname(), "'"))) ?>)</span>
</label>
<input
type="email"
class="form-control"
name="v_from_email"
id="v_from_email"
value="<?= htmlentities(trim($v_from_email, "'")) ?>"
>
</div>
<div class="u-mb10">
<label for="v_subject_email" class="form-label">
<?= _("Email Subject") ?><span class="optional">(<?= _("Supported variables") ?>: {{appname}}, {{hostname}}, {{subject}} )</span>
</label>
<input
type="text"
class="form-control"
name="v_subject_email"
id="v_subject_email"
value="<?= htmlentities(trim($v_subject_email, "'")) ?>"
>
</div>
<div class="u-mb10">
<label for="v_hide_docs" class="form-label">
<?= _("Hide link to Documentation") ?>
</label>
<select x-model="hide_docs" class="form-select" name="v_hide_docs" id="v_hide_docs">
<option value="yes"><?= _("Yes") ?></option>
<option value="no"><?= _("No") ?></option>
</select>
</div>
</div>
</details>
<!-- Custom Logo options section -->
<details class="box-collapse u-mb10">
<summary class="box-collapse-header">
<i class="fas fa-gear u-mr15"></i>
<?= _("Custom Logo") ?>
</summary>
<div class="box-collapse-content">
<div class="u-mb10">
<label for="v_custom_logo" class="form-label">
<?= _("Custom Logo") ?>
</label>
</div>
<div class="u-mb10">
<p class="u-mb10"><?= sprintf(_("Upload the files to %s"), "/usr/local/hestia/web/images/custom/") ?></p>
<ul>
<li><code>logo.svg</code> <small>(100px x 120px)</small></li>
<li><code>logo.png</code> <small>(100px x 120px)</small></li>
<li><code>logo-header.svg</code> <small>(54px x 29px)</small></li>
<li><code>favicon.png</code> <small>(64px x 64px)</small></li>
<li><code>favicon.ico</code> <small>(16px x 16px)</small></li>
</ul>
</div>
<div class="u-mb10">
<input type="checkbox" id="v_update_logo" name="v_update_logo" value="yes">
<label for="v_update_logo" class="form-label">
<?= _("Update logo") ?>
</label>
</div>
<div class="u-mb10">
<input type="checkbox" id="v_reset_logo" name="v_reset_logo" value="yes">
<label for="v_reset_logo" class="form-label">
<?= _("Reset Logo") ?>
</label>
</div>
</details>
</div>
</form>
</div>
<!-- End form -->