modifiche siderbar e correzioni

This commit is contained in:
2026-05-26 12:28:39 +02:00
parent f088dba4bf
commit 85dd9c2ee6
119 changed files with 14461 additions and 42 deletions
+11
View File
@@ -23,6 +23,17 @@
<label>Descrizione Breve</label>
<input type="text" name="descrizione_evento" class="form-control" value="{{ old('descrizione_evento') }}" placeholder="Breve descrizione">
</div>
<div class="form-group">
<label>Tipo Evento</label>
<select name="tipo_evento" class="form-control">
<option value="">Seleziona tipo...</option>
@foreach($tipologieEventi as $tipo)
<option value="{{ $tipo->nome }}" {{ old('tipo_evento') === $tipo->nome ? 'selected' : '' }}>
{{ $tipo->descrizione ?: $tipo->nome }}
</option>
@endforeach
</select>
</div>
<div class="form-group">
<label>Descrizione Completa</label>
<textarea name="descrizione" class="form-control" rows="3">{{ old('descrizione') }}</textarea>
+13 -1
View File
@@ -22,7 +22,19 @@
</div>
<div class="form-group">
<label>Tipo Evento</label>
<input type="text" name="tipo_evento" class="form-control" value="{{ old('tipo_evento', $evento->tipo_evento) }}" placeholder="es. Catechesi, Liturgia, Animazione">
<select name="tipo_evento" class="form-control">
<option value="">Seleziona tipo...</option>
@foreach($tipologieEventi as $tipo)
<option value="{{ $tipo->nome }}" {{ old('tipo_evento', $evento->tipo_evento) === $tipo->nome ? 'selected' : '' }}>
{{ $tipo->descrizione ?: $tipo->nome }}
</option>
@endforeach
@if($evento->tipo_evento && !\App\Models\TipologiaEvento::where('nome', $evento->tipo_evento)->exists())
<option value="{{ $evento->tipo_evento }}" selected>
{{ $evento->tipo_evento }} (disattivato)
</option>
@endif
</select>
</div>
<div class="form-group">
<label>Descrizione Completa</label>
+26 -2
View File
@@ -98,9 +98,19 @@ $canDeleteEventi = Auth::user()->canDelete('eventi');
@endif
</a>
</th>
<th>
<a href="{{ request()->fullUrlWithQuery(['sort' => 'tipo_evento', 'direction' => request('sort') === 'tipo_evento' && request('direction') === 'asc' ? 'desc' : 'asc']) }}" class="text-dark">
Tipologia
@if(request('sort') === 'tipo_evento')
<i class="fas fa-sort-{{ request('direction') === 'asc' ? 'up' : 'down' }} ml-1"></i>
@else
<i class="fas fa-sort ml-1 text-muted"></i>
@endif
</a>
</th>
<th>
<a href="{{ request()->fullUrlWithQuery(['sort' => 'tipo_recorrenza', 'direction' => request('sort') === 'tipo_recorrenza' && request('direction') === 'asc' ? 'desc' : 'asc']) }}" class="text-dark">
Tipo
Ricorrenza
@if(request('sort') === 'tipo_recorrenza')
<i class="fas fa-sort-{{ request('direction') === 'asc' ? 'up' : 'down' }} ml-1"></i>
@else
@@ -162,6 +172,20 @@ $canDeleteEventi = Auth::user()->canDelete('eventi');
@endif
</td>
<td>{{ Str::limit($evento->descrizione_evento, 50) ?: '-' }}</td>
<td>
@if($evento->tipo_evento)
@php
$tipologiaEvento = \App\Models\TipologiaEvento::where('nome', $evento->tipo_evento)->first();
@endphp
@if($tipologiaEvento)
<span class="badge badge-primary">{{ $tipologiaEvento->descrizione ?: $tipologiaEvento->nome }}</span>
@else
<span class="badge badge-secondary">{{ $evento->tipo_evento }}</span>
@endif
@else
<span class="text-muted">-</span>
@endif
</td>
<td>
@if($evento->tipo_recorrenza && $evento->tipo_recorrenza !== 'singolo')
<span class="badge badge-info">{{ $evento->periodicita_label }}</span>
@@ -211,7 +235,7 @@ $canDeleteEventi = Auth::user()->canDelete('eventi');
</tr>
@empty
<tr>
<td colspan="8" class="text-center text-muted py-4">
<td colspan="9" class="text-center text-muted py-4">
<i class="fas fa-calendar fa-2x mb-2"></i>
<p class="mb-0">Nessun evento trovato</p>
</td>
+16 -1
View File
@@ -43,7 +43,7 @@
<div class="card-body">
<table class="table table-sm table-borderless mb-0">
<tr>
<td style="width: 150px;"><strong>Tipo:</strong></td>
<td style="width: 150px;"><strong>Ricorrenza:</strong></td>
<td>
@if($evento->tipo_recorrenza && $evento->tipo_recorrenza !== 'singolo')
<span class="badge badge-info">{{ $evento->periodicita_label }}</span>
@@ -52,6 +52,21 @@
@endif
</td>
</tr>
@if($evento->tipo_evento)
<tr>
<td><strong>Tipologia:</strong></td>
<td>
@php
$tipologia = \App\Models\TipologiaEvento::where('nome', $evento->tipo_evento)->first();
@endphp
@if($tipologia)
<span class="badge badge-primary">{{ $tipologia->descrizione ?: $tipologia->nome }}</span>
@else
<span class="badge badge-secondary">{{ $evento->tipo_evento }}</span>
@endif
</td>
</tr>
@endif
@if($evento->tipo_recorrenza === 'settimanale')
<tr>
<td><strong>Giorno:</strong></td>