v_1.5
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}Settings{% endblock %}
|
||||
{% block content %}
|
||||
<div class="section-head">
|
||||
<div>
|
||||
<span class="section-tag">// console › settings</span>
|
||||
<h1>Global settings</h1>
|
||||
<p class="lead">Default reminder cadence and scheduler controls.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 20px;">
|
||||
<section class="panel">
|
||||
<header class="panel-header"><h3>Default reminder schedule</h3></header>
|
||||
<div class="panel-body">
|
||||
<form method="post" class="form" novalidate>
|
||||
{{ form.csrf_token }}
|
||||
<div>
|
||||
{{ form.default_reminder_days.label }}{{ form.default_reminder_days() }}
|
||||
<div class="help">When creating a new alert, this is the default. Existing alerts are unaffected.</div>
|
||||
{% for err in form.default_reminder_days.errors %}<div class="error">{{ err }}</div>{% endfor %}
|
||||
</div>
|
||||
{{ form.submit(class_="btn btn-primary") }}
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="panel">
|
||||
<header class="panel-header"><h3>Scheduler</h3></header>
|
||||
<div class="panel-body">
|
||||
<p>Reminder dispatch runs every <strong class="mono" style="color: var(--accent);">{{ scheduler_interval }}</strong> minute(s).</p>
|
||||
<p class="muted" style="font-size: .9rem;">Configured via the <code>SCHEDULER_INTERVAL_MINUTES</code> environment variable. Restart the container to change it.</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<p>You can trigger a check immediately to verify reminders dispatch correctly.</p>
|
||||
<form method="post" action="{{ url_for('backoffice.run_check_now') }}" class="inline-form">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
||||
<button class="btn btn-ghost" type="submit">▶ Run reminder check now</button>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<style>@media (max-width: 800px) { div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; } }</style>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user