ssl_monitor/templates/preferences.html
Mateusz Gruszczyński 2a065aba3b commit
2025-03-18 12:53:33 +01:00

25 lines
1.3 KiB
HTML

{% extends "base.html" %}
{% block title %}Preferencje Widoku - SSL Monitor{% endblock %}
{% block content %}
<div class="container mt-4">
<h2>Preferencje Widoku</h2>
<form method="POST" action="{{ url_for('preferences') }}">
<div class="mb-3">
<label for="default_grouping" class="form-label">Domyślne kryterium grupowania:</label>
<select id="default_grouping" name="default_grouping" class="form-select">
<option value="none" {% if prefs.default_grouping == 'none' %}selected{% endif %}>Brak grupowania</option>
<option value="protocol" {% if prefs.default_grouping == 'protocol' %}selected{% endif %}>Grupuj według protokołu</option>
<option value="host" {% if prefs.default_grouping == 'host' %}selected{% endif %}>Grupuj według hosta</option>
<option value="region" {% if prefs.default_grouping == 'region' %}selected{% endif %}>Grupuj według regionu</option>
</select>
</div>
<div class="mb-3">
<label for="filters" class="form-label">Filtry (JSON):</label>
<textarea id="filters" name="filters" class="form-control" rows="3">{{ prefs.filters }}</textarea>
<div class="form-text">Np. {"region": "EU", "certificate_type": "DV"}</div>
</div>
<button type="submit" class="btn btn-primary">Zapisz preferencje</button>
</form>
</div>
{% endblock %}