Initials
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<%- include('partials/head') %>
|
||||
</head>
|
||||
<body>
|
||||
<%- include('partials/header') %>
|
||||
|
||||
<main class="container container--narrow">
|
||||
<section class="card">
|
||||
<h2 class="card__title">Einstellungen</h2>
|
||||
<p class="card__footnote">
|
||||
Diese Werte bestimmen, wie neue Buchungen berechnet werden. Bereits gespeicherte
|
||||
Buchungen behalten ihren ursprünglich berechneten Saldo.
|
||||
</p>
|
||||
|
||||
<% if (saved) { %>
|
||||
<p class="notice notice--success">Einstellungen wurden gespeichert.</p>
|
||||
<% } %>
|
||||
|
||||
<form action="/settings" method="POST" class="form">
|
||||
<label class="field">
|
||||
<span class="field__label">Soll-Arbeitszeit pro Arbeitstag (Stunden)</span>
|
||||
<input
|
||||
type="number"
|
||||
name="targetHoursPerDay"
|
||||
min="0"
|
||||
max="24"
|
||||
step="0.25"
|
||||
value="<%= settings.targetHoursPerDay %>"
|
||||
required
|
||||
/>
|
||||
</label>
|
||||
|
||||
<fieldset class="field">
|
||||
<legend class="field__label">Arbeitstage</legend>
|
||||
<div class="checkbox-row">
|
||||
<% weekdayNames.forEach((name, index) => { %>
|
||||
<label class="checkbox">
|
||||
<input
|
||||
type="checkbox"
|
||||
name="workDays"
|
||||
value="<%= index %>"
|
||||
<%= settings.workDays.includes(index) ? 'checked' : '' %>
|
||||
/>
|
||||
<span><%= name %></span>
|
||||
</label>
|
||||
<% }) %>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<label class="field">
|
||||
<span class="field__label">Start-Guthaben vor Nutzung dieser App (Stunden)</span>
|
||||
<input
|
||||
type="number"
|
||||
name="startingBalanceHours"
|
||||
step="0.25"
|
||||
value="<%= (settings.startingBalanceMinutes / 60).toFixed(2) %>"
|
||||
/>
|
||||
<span class="field__hint">
|
||||
Positiv für bereits bestehende Überstunden, negativ für ein Minus-Saldo. 0, wenn du
|
||||
ganz neu startest.
|
||||
</span>
|
||||
</label>
|
||||
|
||||
<button type="submit" class="button button--primary button--block">Speichern</button>
|
||||
</form>
|
||||
</section>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user