{% extends "base.html" %}
{% block title %}Einstellungen - MailsAuswerten{% endblock %}
{% block content %}
<h1>Einstellungen</h1>

<div class="card">
    <form method="post" action="/config">
        <h2 style="margin-bottom: 1rem;">Speicher</h2>
        <div class="form-row">
            <div>
                <label for="attachment_dir">Anhang-Verzeichnis</label>
                <input type="text" id="attachment_dir" name="attachment_dir" value="{{ config.attachment_dir }}">
            </div>
            <div>
                <label for="database_path">Datenbank-Pfad</label>
                <input type="text" id="database_path" name="database_path" value="{{ config.database_path }}">
            </div>
        </div>

        <button type="submit" class="btn btn-success" style="margin-top: 1rem;">Speichern</button>
    </form>
</div>

<div class="card" style="margin-top: 1rem;">
    <p style="color: #888;">IMAP-Konten werden unter <a href="/accounts" class="link">Konten</a> verwaltet.</p>
</div>
{% endblock %}
