-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigurator.php
48 lines (38 loc) · 1.72 KB
/
configurator.php
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
<?php
use Library\Assets;
$assets = new Assets;
$assets->registerHead('style', "configurator.css", array("origin" => "module:basic-mailer", "permanent" => true));
$assets->registerBody('script', "configurator.js", array("origin" => "module:basic-mailer", "permanent" => true, "properties" => "type=\"module\""));
?>
<section id="test-mail">
<h1>
Send a test mail.
</h1>
<p class="notice" :if="notice != ''">
<br> {{ notice }}
</p>
<input type="text" :value="email" placeholder="E-mail address">
<button @click="send()">
Send!
</button>
</section>
<section id="configuration">
<input-toggle &enabled="checked" $id="mailer-enabled" $label="Enable mailer"></input-toggle>
<input-toggle &is_html="checked" $id="is-html" $label="HTML E-mail"></input-toggle>
<input-field &host="value" $placeholder="Hostname"></input-field>
<input-field &port="value" $placeholder="Port" $type="number"></input-field>
<input-select &smtp_secure_options="options" $placeholder="SMTP Encryption" &smtp_secure="selected"></input-select>
<input-field &from="value" $placeholder="From address"></input-field>
<input-field &from_name="value" $placeholder="From name"></input-field>
<input-toggle &smtp_auth="checked" $id="smtp-auth" $label="Authenticate"></input-toggle>
<input-field &username="value" $placeholder="Username" :if="smtp_auth"></input-field>
<input-field &password="value" $placeholder="Password" :if="smtp_auth"></input-field>
<div class="submitter">
<button @click="save()">
Save settings
</button>
<p class="message" :class:show="showMessage">
{{ message }}
</p>
</div>
</section>