|
@@ -7,17 +7,16 @@
|
|
|
<title>DweebUI - Settings</title>
|
|
|
<!-- CSS files -->
|
|
|
<link href="/css/tabler.min.css" rel="stylesheet"/>
|
|
|
- <link href="/css/demo.min.css" rel="stylesheet"/>
|
|
|
<script src="/js/htmx.min.js"></script>
|
|
|
<style>
|
|
|
@import url('/fonts/inter.css');
|
|
|
:root {
|
|
|
- --tblr-font-sans-serif: 'Inter Var', -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif;
|
|
|
+ --tblr-font-sans-serif: 'Inter Var', -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif;
|
|
|
}
|
|
|
body {
|
|
|
- font-feature-settings: "cv03", "cv04", "cv11";
|
|
|
+ font-feature-settings: "cv03", "cv04", "cv11";
|
|
|
}
|
|
|
- </style>
|
|
|
+ </style>
|
|
|
</head>
|
|
|
<body >
|
|
|
<div class="page">
|
|
@@ -45,7 +44,7 @@
|
|
|
<div class="col d-flex flex-column">
|
|
|
|
|
|
<div class="card-body">
|
|
|
- <h2 class="mb-2">Settings</h2>
|
|
|
+ <h2 class="">Settings</h2>
|
|
|
<p class="text-muted mb-4">Configure server below</p>
|
|
|
|
|
|
<div class="row align-items-center">
|
|
@@ -59,39 +58,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
- <h3 class="card-title mt-4">Container Links</h3>
|
|
|
+ <h3 class="card-title mt-6">Container Links</h3>
|
|
|
<p class="card-subtitle"> Set the default behaviour for container links. </p>
|
|
|
- <div>
|
|
|
- <label class="form-check form-switch form-switch-lg">
|
|
|
- <input class="form-check-input" type="checkbox">
|
|
|
- <span class="form-check-label form-check-label-on">
|
|
|
- Host IP
|
|
|
- </span>
|
|
|
- <span class="form-check-label form-check-label-off">
|
|
|
- Localhost
|
|
|
- </span>
|
|
|
- </label>
|
|
|
- </div>
|
|
|
-
|
|
|
- <h3 class="mt-4">User Registration</h3>
|
|
|
- <label class="text-muted">Allow other users to register.</label>
|
|
|
- <div class="row align-items-center">
|
|
|
- <div class="col-auto">
|
|
|
- <label class="form-check form-switch form-switch-lg mt-2">
|
|
|
- <input class="form-check-input" type="checkbox" id="registration" value="something" name="registration" hx-trigger="mousedown" hx-post="/settings/registration" hx-swap="none">
|
|
|
- <span class="form-check-label form-check-label-on text-success">
|
|
|
- Enabled
|
|
|
+ <form id="container-links">
|
|
|
+ <div>
|
|
|
+ <label class="form-check form-switch form-switch-lg">
|
|
|
+ <input class="form-check-input" type="checkbox" id="submit" name="links" hx-trigger="click" hx-post="/settings/links" hx-swap="none">
|
|
|
+ <span class="form-check-label form-check-label-on">
|
|
|
+ Host IP
|
|
|
</span>
|
|
|
- <span class="form-check-label form-check-label-off text-danger">
|
|
|
- Disabled
|
|
|
+ <span class="form-check-label form-check-label-off">
|
|
|
+ Localhost
|
|
|
</span>
|
|
|
</label>
|
|
|
</div>
|
|
|
- <div class="col-6">
|
|
|
- <input type="text" class="form-control" placeholder="Registration Secret">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ </form>
|
|
|
+
|
|
|
|
|
|
+ <h3 class="mt-6">User Registration</h3>
|
|
|
+ <label class="text-muted mb-2">Allow other users to register.</label>
|
|
|
+ <form id="registration">
|
|
|
+ <div class="row align-items-center">
|
|
|
+ <div class="col-auto">
|
|
|
+ <label class="form-check form-switch form-switch-lg">
|
|
|
+ <input class="form-check-input" type="checkbox" id="submit" name="registration" hx-trigger="click" hx-post="/settings/registration" hx-swap="none" RegistrationEnabled>
|
|
|
+ <span class="form-check-label form-check-label-on text-success">
|
|
|
+ Enabled
|
|
|
+ </span>
|
|
|
+ <span class="form-check-label form-check-label-off text-danger">
|
|
|
+ Disabled
|
|
|
+ </span>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ <div class="col-6">
|
|
|
+ <input type="text" class="form-control" name="secret" placeholder="Registration Secret">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
|
|
|
</div>
|
|
|
|