<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:cal="http://typo3.org/ns/Ig/IgReservations/ViewHelpers" xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers" data-namespace-typo3-fluid="true">

<div class="reservations-event-show">
    <header class="csc-header ce-header csc-header-layout2">
        <h2>{event.startDate->f:format.date(format: 'd.m.Y')} - {event.timeslotTitle}</h2>
        <f:if condition="{event.category}">
            <span class="subtitle">{event.category.name}</span>
        </f:if>
    </header>
    <div class="event-information frame-space-before-small">
        Raum: {event.calendar.name}<br />
        Status: {event.status.name}
        <br />
        <f:if condition="{event.numParticipants}">
            <f:translate key="tx_igreservations_domain_model_event.num_participants" />: <b>{event.numParticipants}</b>
            <br />
        </f:if>
        <f:if condition="{showAssignLinks}">
            <f:if condition="{event.status.needsAction}">
                <f:then>
                    <f:link.action action="confirm" controller="Event" pluginName="EventTodo" arguments="{event: event}">Bestätigen</f:link.action><br />
                </f:then>
                <f:else>
                    <f:link.action action="unapprove" controller="Event" arguments="{event: event}">Bestätigung aufheben</f:link.action><br />
                </f:else>
            </f:if>
        </f:if>
        <f:link.email email="{settings.coordinationPersonMail}">
            <f:translate key="events.mail_to_coordination_person" />
        </f:link.email>
    </div>
    <div class="event-data frame-space-before-small">
        <f:for each="{event.reservations}" as="reservation">
            <div class="address-data">
                <h4>
                    <f:translate key="tx_igreservations_domain_model_address" />
                </h4>
                <f:translate key="tx_igreservations_domain_model_address.salutation.{reservation.salutation}" /> {reservation.firstName} {reservation.lastName}<br />
                <f:if condition="{reservation.company}">
                    {reservation.company}<br />
                </f:if>
                {reservation.address}<br />
                {reservation.zip} {reservation.city}<br />
                <f:link.email email="{reservation.email}" /><br />
                <f:if condition="{reservation.phone}">
                    {reservation.phone}
                </f:if>
            </div>
        </f:for>
    </div>
    <f:if condition="{event.notes}">
        <div class="event-notes{f:if(condition: reservation, then: ' frame-space-before-small')}">
            <h4>
                <f:translate key="tx_igreservations_domain_model_event.notes" />
            </h4>
            <p>{event.notes->f:format.nl2br()}</p>
        </div>
    </f:if>
</div>

</html>
