Initial commit: Diario Conversazioni Olimpic Nastri
- Django 5.2 + PostgreSQL + Gunicorn - Conversazioni, Obiettivi, Documenti PDF, Persone - Commenti e aggiornamenti con modifica/eliminazione - Agenda, ricerca live, giorni rimanenti scadenze - Bootstrap 5 + HTMX + toast notifications - Deploy: Nginx + Gunicorn + SSL
This commit is contained in:
40
templates/diario/ricerca_risultati.html
Normal file
40
templates/diario/ricerca_risultati.html
Normal file
@@ -0,0 +1,40 @@
|
||||
{% if total == 0 and q %}
|
||||
<div class="p-3 text-center text-muted small">Nessun risultato per "{{ q }}"</div>
|
||||
{% endif %}
|
||||
|
||||
{% for persona in risultati.persone %}
|
||||
<a href="{% url 'persona_dettaglio' persona.pk %}" class="result-item">
|
||||
<div class="result-type">Persona</div>
|
||||
<div class="d-flex align-items-center gap-2">
|
||||
<span class="avatar" style="width:20px;height:20px;font-size:.55rem;">{{ persona.username|slice:":2"|upper }}</span>
|
||||
<span class="fw-semibold small">{{ persona.get_full_name|default:persona.username }}</span>
|
||||
</div>
|
||||
</a>
|
||||
{% endfor %}
|
||||
|
||||
{% for conv in risultati.conversazioni|slice:":5" %}
|
||||
<a href="{% url 'conversazione_dettaglio' conv.pk %}" class="result-item">
|
||||
<div class="result-type">Conversazione</div>
|
||||
<span class="small">{{ conv.titolo }}</span>
|
||||
</a>
|
||||
{% endfor %}
|
||||
|
||||
{% for obj in risultati.obiettivi|slice:":5" %}
|
||||
<a href="{% url 'obiettivo_dettaglio' obj.pk %}" class="result-item">
|
||||
<div class="result-type">Obiettivo</div>
|
||||
<span class="small">{{ obj.titolo }}</span>
|
||||
</a>
|
||||
{% endfor %}
|
||||
|
||||
{% for doc in risultati.documenti|slice:":5" %}
|
||||
<a href="{% url 'documento_dettaglio' doc.pk %}" class="result-item">
|
||||
<div class="result-type">Documento</div>
|
||||
<span class="small">{{ doc.titolo }}</span>
|
||||
</a>
|
||||
{% endfor %}
|
||||
|
||||
{% if total > 0 %}
|
||||
<a href="{% url 'ricerca' %}?q={{ q|urlencode }}" class="result-item text-center" style="color:var(--accent);font-weight:600;font-size:.8rem;">
|
||||
Vedi tutti i {{ total }} risultati →
|
||||
</a>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user