Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit baf09ce

Browse files
committed
Possible to edit domain #29
1 parent 89e3e8e commit baf09ce

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

views/Config/Main.ejs

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@
4242
<div class="collapse mt-2 border border-3 border-warning p-3 rounded shadow" id="ADMINCollapse">
4343
<div>
4444
<form action="/config/edit/admin/password" method="POST">
45-
<label for="password">New Admin Password</label>
46-
<input class="form-control mb-2" type="text" name="password" placeholder="Admin Password" required>
45+
46+
<div class="mb-3">
47+
<label for="password">New Admin Password</label>
48+
<input class="form-control mb-2" type="text" name="password" placeholder="Admin Password" required>
49+
</div>
50+
4751
<button type="submit" class="btn btn-danger">Change password</button>
4852
</form>
4953
</div>
@@ -55,7 +59,22 @@
5559
</button>
5660
</div>
5761
<div class="collapse mt-2 border border-3 border-warning p-3 rounded shadow" id="GENERALCollapse">
62+
<div>
63+
<form action="/config/edit/domain" method="POST">
64+
65+
<div class="mb-3">
66+
<label for="password">Domain settings</label>
67+
<input class="form-control mb-2" type="text" name="domain" value="<%= Domain %>" placeholder="example.com" required>
68+
</div>
69+
70+
<div class="mb-3 form-check">
71+
<input type="checkbox" name="ssl" class="form-check-input" <%= configs.ssl ? "checked" : "" %>>
72+
<label class="form-check-label" for="">Secure? (https)</label>
73+
</div>
5874

75+
<button type="submit" class="btn btn-danger">Change Domain Settings</button>
76+
</form>
77+
</div>
5978
</div>
6079
</div>
6180
<div>

0 commit comments

Comments
 (0)