templates/public/events/event_public_info.html.twig line 1
{% extends '/public/public_base.html.twig' %}{% block body %}{% include 'public/events/_header.html.twig' %}{% include 'public/_flash.html.twig' %}<article class="node node-detail node-listing-single" style="padding-bottom: 40px;">{# ================= CABECERA ================= #}<div class="listing-top"><div class="container listing-top-content"><div class="row row-margin-sexpe"><div class="col-12"><a href="{{ path('public_events') }}" class="button-sexpe">← Volver al catálogo</a></div></div><div class="row"><div class="col-12"><div class="listing-image">{% if event.image %}<div class="contenedor-img-cabecera"style="background-image:url('{{ asset('images/' ~ event.image) }}')"></div>{% else %}<div class="contenedor-img-cabecera"style="background-image:url('/build/images/sexpe/default-course.jpg')"></div>{% endif %}{% set today = "now"|date("Y-m-d") %}{% set ini = event.inscripcionesInicio ? event.inscripcionesInicio|date("Y-m-d") : null %}{% set fin = event.inscripcionesFin ? event.inscripcionesFin|date("Y-m-d") : null %}{% if ini and fin %}<div class="listing-status">{% if today >= ini and today <= fin %}<span class="status-dot open"></span><span class="status-text">Inscripciones abiertas</span>{% elseif today < ini %}<span class="status-dot soon"></span><span class="status-text">Próximamente</span>{% else %}<span class="status-dot closed"></span><span class="status-text">Inscripciones cerradas</span>{% endif %}</div>{% endif %}<h1 class="post-title">{{ event.Name }}</h1>{# <div class="listing-categories">{{ event.extCode }}</div> #}{% if event.modality is not empty %}<div class="listing-modalidad"><span>{{ event.modality.label }}</span></div>{% endif %}</div></div></div></div>{# ================= NAV STICKY ================= #}<div class="listing-nav sticky-listing-nav"><div class="listing-nav-inner"><div class="container"><ul><li><a href="#objetivos">Objetivos</a></li><li><a href="#indice">Índice</a></li>{% if event.Prerequisites %}<li><a href="#requisitos">Requisitos</a></li>{% endif %}<li><a href="#horario">Fechas y horario</a></li></ul></div></div></div></div>{# ================= CONTENIDO ================= #}<div class="container"><div class="row">{# ===== COLUMNA PRINCIPAL ===== #}<div class="col-xl-8 col-lg-8 col-md-12"><div class="listing-content-main">{% if event.objetives %}<div class="listing-info-block course-specs" id="objetivos"><div class="title"><i class="las la-bullseye"></i><span>Objetivos</span></div><div class="block-content">{{ event.objetives|raw }}</div></div>{% endif %}{% if event.contents %}<div class="listing-info-block course-specs" id="indice"><div class="title"><i class="las la-list-ol"></i><span>Índice</span></div><div class="block-content">{{ event.contents|raw }}</div></div>{% endif %}{% if event.Prerequisites %}<div class="listing-info-block course-specs" id="requisitos"><div class="title"><i class="las la-user-check"></i><span>Requisitos</span></div><div class="block-content">{{ event.Prerequisites|raw }}</div></div>{% endif %}<div class="listing-info-block course-specs" id="horario"><div class="title"><i class=""></i><span>Fechas y horario</span></div><div class="block-content"><ul><li>Inicio: {{ event.startDate|date('d/m/Y') }}</li><li>Fin: {{ event.endDate|date('d/m/Y') }}</li><li>{{ event.DateAndTime }}</li></ul></div></div>{% if event.TechnicalRequirements %}<div class="listing-info-block course-specs"><div class="title"><i class="las la-laptop"></i><span>Requisitos técnicos</span></div><div class="block-content">{{ event.TechnicalRequirements|raw }}</div></div>{% endif %}</div></div>{# ===== BARRA LATERAL ===== #}<div class="col-xl-4 col-lg-4 col-md-12"><div class="listing-content-main">{% if event.inscripcionesInicio and event.inscripcionesFin %}<div class="listing-info-block course-specs"><div class="title"><i class="las la-tags"></i><span>Periodo de inscripción</span></div><div class="block-content">Del {{ event.inscripcionesInicio|date('d/m/Y') ~ ' al ' ~ event.inscripcionesFin|date('d/m/Y')}}</div></div></div>{% endif %}<div class="listing-info-block course-specs"><div class="title"><i class="las la-tags"></i><span>Características del curso</span></div><div class="block-content"><div class="row">{% include 'public/events/_spec.html.twig' with {icon: 'la-calendar-day',label: 'Fecha inicio',value: event.startDate|date('d/m/Y')} %}{% include 'public/events/_spec.html.twig' with {icon: 'la-calendar-day',label: 'Fecha fin',value: event.endDate|date('d/m/Y')} %}{% include 'public/events/_spec.html.twig' with {icon: 'la-clock',label: 'Duración',value: event.Hours ~ ' h'} %}{% include 'public/events/_spec.html.twig' with {icon: 'la-users',label: 'Plazas',value: event.Participants} %}{% include 'public/events/_spec.html.twig' with {icon: 'la-tag',label: 'Código',value: event.extCode} %}</div></div></div>{% if event.areaTematica|length %}<div class="listing-info-block course-specs"><div class="title"><i class="las la-shapes"></i><span>Área Temática</span></div><div class="block-content">{% for area in event.areaTematica %}{{ area.label }}<br>{% endfor %}</div></div>{% endif %}<div class="listing-info-block course-specs"><div class="title"><i class="las la-map-marker"></i><span>Ubicación</span></div><div class="block-content">{{ event.Location }}</div></div>{% if event.TargetGroups %}<div class="listing-info-block course-specs"><div class="title"><i class="las la-user-check"></i><span>Destinatarios</span></div><div class="block-content">{{ event.TargetGroups }}</div></div>{% endif %}<div style="display: flex; flex-direction: column; gap: 12px; margin-top: 12px;">{% if hasRequest %}<button class="btn btn-secondary w-100" style="padding: 12px 16px; font-weight: 600;" disabled>SOLICITUD REALIZADA</button>{% elseif ini and today < ini %}<button class="btn btn-secondary w-100" style="padding: 12px 16px; font-weight: 600;" disabled>INSCRIPCIONES PRÓXIMAMENTE</button>{% elseif fin and today > fin %}<button class="btn btn-secondary w-100" style="padding: 12px 16px; font-weight: 600;" disabled>INSCRIPCIONES CERRADAS</button>{% elseif is_granted('ROLE_ALUMNO') and ini and fin and today >= ini and today <= fin %}<a href="{{ path('event_inscribe', {id: event.id}) }}" class="btn btn-success w-100" style="padding: 12px 16px; font-weight: 600;">SOLICITAR</a>{% else %}<a href="{{ path('app_login') }}" class="btn btn-success w-100" style="padding: 12px 16px; font-weight: 600;">SOLICITAR</a>{% endif %}<a href="{{ path('event_public_pdf', {id: event.id}) }}"class="btn btn-secondary w-100" style="padding: 12px 16px; font-weight: 600;">Descargar ficha en PDF</a></div></div></div></div></div></article>{% include 'public/events/_footer.html.twig' %}{% endblock %}