drobne poprawki

This commit is contained in:
Mateusz Gruszczyński
2025-08-02 18:57:29 +02:00
parent 9142dc1413
commit 1cd4f62004
3 changed files with 34 additions and 115 deletions

View File

@@ -1,7 +1,10 @@
{% extends 'base.html' %}
{% block content %}
<h2>Edytuj listę: <strong>{{ list.title }}</strong></h2>
<div class="d-flex justify-content-between align-items-center flex-wrap mb-4">
<h2>Edytuj listę: <strong>{{ list.title }}</strong></h2>
<a href="{{ url_for('main_page') }}" class="btn btn-outline-secondary">← Powrót</a>
</div>
<div class="card bg-dark text-white mb-5">
<div class="card-body">
@@ -42,7 +45,10 @@
<div class="col-md-6">
<label class="form-label">Aktualna data utworzenia:</label>
<p class="form-control-plaintext text-white">
{{ list.created_at.strftime('%Y-%m-%d') }}
<span class="badge bg-success rounded-pill text-dark ms-1">
{{ list.created_at.strftime('%Y-%m-%d') }}
</span>
</p>
</div>
<div class="col-md-6">

View File

@@ -18,8 +18,8 @@
</span>
{% endfor %}
{% else %}
<a href="{{ url_for('edit_my_list', list_id=list.id) }}" class="ms-2 text-light small fw-light"
style="opacity: 0.9;">
<a href="{{ url_for('edit_my_list', list_id=list.id, next=url_for('view_list', list_id=list.id)) }}"
class="ms-2 text-light small fw-light" style="opacity: 0.9;">
Dodaj kategorię
</a>
{% endif %}