zmiany w ux

This commit is contained in:
Mateusz Gruszczyński
2025-07-05 00:28:47 +02:00
parent 07f7e84a85
commit 9741642b83

View File

@ -8,18 +8,18 @@
</div>
<form method="post">
<div class="mb-3">
<div class="mb-4">
<label for="title" class="form-label">Ustaw tytuł</label>
<input type="text" class="form-control" id="title" name="title" value="{{ list.title }}" required>
</div>
<div class="mb-3">
<div class="mb-4">
<label for="amount" class="form-label">Ustaw kwotę wydatku (PLN)</label>
<input type="number" step="0.01" min="0" class="form-control" id="amount" name="amount" value="{{ '%.2f'|format(total_expense) }}">
<small class="form-text text-muted">Jeśli nie chcesz zmieniać kwoty, zostaw to pole bez zmian.</small>
</div>
<div class="mb-3">
<div class="mb-4">
<label for="owner_id" class="form-label">Zmień właściciela</label>
<select class="form-select" id="owner_id" name="owner_id">
{% for user in users %}
@ -30,16 +30,17 @@
</select>
</div>
<div class="form-check form-switch mb-3">
<div class="form-check form-switch mb-4">
<input class="form-check-input" type="checkbox" id="archived" name="archived" {% if list.is_archived %}checked{% endif %}>
<label class="form-check-label" for="archived">
Lista archiwalna
</label>
</div>
<button type="submit" class="btn btn-success">💾 Zapisz</button>
<a href="{{ url_for('admin_panel') }}" class="btn btn-secondary">Anuluj</a>
<div class="mb-2">
<button type="submit" class="btn btn-success me-2">💾 Zapisz</button>
<a href="{{ url_for('admin_panel') }}" class="btn btn-secondary">Anuluj</a>
</div>
</form>
{% endblock %}