modifiche siderbar e correzioni
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user