zmiany w ux
This commit is contained in:
@@ -381,4 +381,10 @@ select.form-select:focus {
|
|||||||
grid-row: 3 / 4;
|
grid-row: 3 / 4;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.hr-bw {
|
||||||
|
border: 0;
|
||||||
|
border-top: 1px dashed rgba(255, 255, 255, 0.2);
|
||||||
|
margin: 10px 0;
|
||||||
}
|
}
|
@@ -34,13 +34,13 @@ zbiórki{% endif %}{% endblock %}
|
|||||||
<div class="d-flex align-items-start justify-content-between gap-2 mb-2">
|
<div class="d-flex align-items-start justify-content-between gap-2 mb-2">
|
||||||
<h5 class="card-title mb-0">{{ z.nazwa }}</h5>
|
<h5 class="card-title mb-0">{{ z.nazwa }}</h5>
|
||||||
|
|
||||||
{# Spójny badge zrealizowania: w zakładce „Zrealizowane” lub gdy >=100% #}
|
|
||||||
{% if is_completed_view or progress_clamped >= 100 %}
|
{% if is_completed_view or progress_clamped >= 100 %}
|
||||||
<span class="badge rounded-pill" style="background: var(--accent); color:#111;">Zrealizowana</span>
|
<span class="badge rounded-pill" style="background: var(--accent); color:#111;">Zrealizowana</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
<hr class="hr-bw">
|
||||||
|
|
||||||
<div class="mb-2 d-flex flex-wrap gap-2">
|
<div class="mb-2 d-flex flex-wrap gap-2 justify-content-center">
|
||||||
{% if not z.ukryj_kwote %}
|
{% if not z.ukryj_kwote %}
|
||||||
{% if z.cel > 0 %}
|
{% if z.cel > 0 %}
|
||||||
<span class="badge bg-dark border" style="border-color: var(--border);">
|
<span class="badge bg-dark border" style="border-color: var(--border);">
|
||||||
@@ -76,9 +76,9 @@ zbiórki{% endif %}{% endblock %}
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if not z.ukryj_kwote %}
|
{% if not z.ukryj_kwote %}
|
||||||
<small class="text-muted">{{ progress_clamped|round(1) }}%</small>
|
<small class="text-muted d-block text-center">{{ progress_clamped|round(1) }}%</small>
|
||||||
{% else %}
|
{% else %}
|
||||||
<small class="text-muted">Postęp ukryty</small>
|
<small class="text-muted d-block text-center">Postęp ukryty</small>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@@ -33,6 +33,7 @@
|
|||||||
<div class="card shadow-sm mb-4">
|
<div class="card shadow-sm mb-4">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h5 class="mb-2">Opis</h5>
|
<h5 class="mb-2">Opis</h5>
|
||||||
|
<hr class="hr-bw">
|
||||||
<div class="mb-0">
|
<div class="mb-0">
|
||||||
{{ zbiorka.opis | markdown }}
|
{{ zbiorka.opis | markdown }}
|
||||||
</div>
|
</div>
|
||||||
@@ -48,7 +49,7 @@
|
|||||||
<div class="card shadow-sm mb-4">
|
<div class="card shadow-sm mb-4">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h5 class="mb-2">Lista zakupów</h5>
|
<h5 class="mb-2">Lista zakupów</h5>
|
||||||
|
<hr class="hr-bw">
|
||||||
{% set posortowane = items|sort(attribute='kupione') %}
|
{% set posortowane = items|sort(attribute='kupione') %}
|
||||||
<ul class="list-group list-group-flush">
|
<ul class="list-group list-group-flush">
|
||||||
{% for it in posortowane %}
|
{% for it in posortowane %}
|
||||||
@@ -100,6 +101,7 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="d-flex flex-wrap align-items-center justify-content-between gap-2 mb-2">
|
<div class="d-flex flex-wrap align-items-center justify-content-between gap-2 mb-2">
|
||||||
<h5 class="mb-0">Postęp</h5>
|
<h5 class="mb-0">Postęp</h5>
|
||||||
|
|
||||||
<div class="d-flex flex-wrap align-items-center gap-2">
|
<div class="d-flex flex-wrap align-items-center gap-2">
|
||||||
{% if has_cel and not zbiorka.ukryj_kwote %}
|
{% if has_cel and not zbiorka.ukryj_kwote %}
|
||||||
<span class="badge bg-dark border" style="border-color: var(--border);">
|
<span class="badge bg-dark border" style="border-color: var(--border);">
|
||||||
@@ -116,7 +118,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<hr class="hr-bw">
|
||||||
<!-- Pasek: Finanse (zawsze) -->
|
<!-- Pasek: Finanse (zawsze) -->
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<small class="text-muted">Finanse</small>
|
<small class="text-muted">Finanse</small>
|
||||||
@@ -254,7 +256,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!-- Aktywność -->
|
<!-- Aktywność -->
|
||||||
<div class="card shadow-sm mt-4">
|
<div class="card shadow-sm mt-4">
|
||||||
<div class="card-header bg-transparent d-flex align-items-center justify-content-between">
|
<div class="card-header bg-transparent d-flex align-items-center justify-content-between">
|
||||||
|
Reference in New Issue
Block a user