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

<cal:calendar.hasPermission calendar="{calendar}" permission="team">
<div class="ig-reservations-legend frame-space-before-small">
    <h3><f:translate key="calendar.legend" /></h3>
    <f:spaceless>
        <div class="ig-reservations-legend-status event-status-normal ig-inline ig-margin-right-k frame-space-after-extra-small">
            <f:translate key="calendar.legend.free" />
        </div>
        <f:for each="{statusses}" as="status">
            <div class="ig-reservations-legend-status event-status-{status.color} ig-inline ig-margin-right-k frame-space-after-extra-small">
                {status.name}
            </div>
	    <f:if condition="{status.needsMember}">
            <div class="ig-reservations-legend-status event-status-{status.color} event-my ig-inline ig-margin-right-k frame-space-after-extra-small">
                {status.name} (<f:translate key="calendar.legend.me" />)
            </div>
	    </f:if>
        </f:for>
    </f:spaceless>
</div>
</cal:calendar.hasPermission>

</html>
