CronEdit...geht weiter..1

This commit is contained in:
hubobel 2026-06-25 17:36:28 +02:00
parent 39556f7613
commit f2ba00f34f
2 changed files with 116 additions and 49 deletions

View file

@ -461,3 +461,24 @@ text-decoration: underline;
padding-top: 15px;
border-top: 1px solid #ddd;
}
.weekday-selector {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 10px;
}
.weekday-selector label {
font-weight: normal;
display: flex;
align-items: center;
gap: 4px;
}

View file

@ -90,10 +90,74 @@
Kontostand aktualisieren
</h2>
<form
action="/run/balance"
method="post">
<p>
balance.py ausführen
</p>
<h3>Automatische Ausführung</h3>
<hr>
<h3>
Automatische Ausführung
</h3>
<div class="weekday-selector">
<label>
<input
type="checkbox"
{% if 1 in schedules.balance.days %}checked{% endif %}>
Mo
</label>
<label>
<input
type="checkbox"
{% if 2 in schedules.balance.days %}checked{% endif %}>
Di
</label>
<label>
<input
type="checkbox"
{% if 3 in schedules.balance.days %}checked{% endif %}>
Mi
</label>
<label>
<input
type="checkbox"
{% if 4 in schedules.balance.days %}checked{% endif %}>
Do
</label>
<label>
<input
type="checkbox"
{% if 5 in schedules.balance.days %}checked{% endif %}>
Fr
</label>
<label>
<input
type="checkbox"
{% if 6 in schedules.balance.days %}checked{% endif %}>
Sa
</label>
<label>
<input
type="checkbox"
{% if 0 in schedules.balance.days %}checked{% endif %}>
So
</label>
</div>
<br>
<label>
Minute:
@ -103,8 +167,7 @@
type="number"
min="0"
max="59"
name="balance_minute"
value="7">
value="{{ schedules.balance.minute }}">
<br><br>
@ -116,36 +179,19 @@
type="number"
min="1"
max="24"
name="balance_interval"
value="4">
value="{{ schedules.balance.interval }}">
Stunden
<br><br>
<label>
Tage:
</label>
<br>
<input type="checkbox" checked> Mo
<input type="checkbox" checked> Di
<input type="checkbox" checked> Mi
<input type="checkbox" checked> Do
<input type="checkbox" checked> Fr
<input type="checkbox" checked> Sa
<input type="checkbox"> So
<small>
Aktuell:
{{ schedules.balance.cron }}
</small>
<br><br>
<button type="submit">
Speichern
</button>
<form
action="/run/balance"
method="post">
<button type="submit">
Starten
</button>