51 lines
1.3 KiB
HTML
51 lines
1.3 KiB
HTML
{% if not request.headers.get("Hx-Request") %}
|
|
{% extends "base.html" %}
|
|
{% endif %}
|
|
|
|
{% block breadcrumb %}
|
|
<nav aria-label="breadcrumb" id="nav-breadcrumb" hx-swap-oob="true">
|
|
<ul>
|
|
<li>System</li>
|
|
<li><a href="#" hx-target="#body-main" hx-get="{{ request.path }}">Settings</a></li>
|
|
</ul>
|
|
</nav>
|
|
{% endblock breadcrumb %}
|
|
|
|
{% block body %}
|
|
|
|
<h4>Settings</h4>
|
|
|
|
<div class="grid split-grid">
|
|
<article>
|
|
<hgroup>
|
|
<h6>System settings</h6>
|
|
<p>Settings marked with a "🚫" symbol are read only. All other options will be
|
|
propagated across the cluster.<br>
|
|
Requires all nodes to be online.
|
|
</p>
|
|
</hgroup>
|
|
</article>
|
|
|
|
<article id="system-settings"
|
|
hx-trigger="htmx:afterRequest[event.detail.successful==true] from:#system-settings-form"
|
|
hx-target="this"
|
|
hx-select="#system-settings"
|
|
hx-swap="outerHTML"
|
|
hx-get="/system/settings">
|
|
|
|
<form id="system-settings-form" hx-trigger="submit throttle:200ms" hx-patch="/system/settings">
|
|
{% with
|
|
schema=schemas.system_settings,
|
|
current_data=settings.details,
|
|
root_key="details"
|
|
%}
|
|
{% include "includes/form_builder.html" %}
|
|
{% endwith %}
|
|
<button data-loading-disable type="submit">Update</button>
|
|
</form>
|
|
</article>
|
|
</div>
|
|
|
|
|
|
{% endblock body %}
|