<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Default" />

<f:section name="content">
    <div class="ig-reservations-user-management">
        <div class="ig-reservations-new-user frame-space-after-small">
            <f:link.action class="link-button" action="new"><core:icon identifier="actions-add" size="small" alternativeMarkupIdentifier="inline" />&nbsp;Neuer Berater erstellen</f:link.action>
        </div>
        <table class="ce-table ce-table-striped">
            <tr>
                <th>Name</th>
                <th>Benutzername</th>
                <th></th>
            </tr>
            <f:for each="{users}" as="user">
                <tr>
                    <td>{user.firstName} {user.lastName}</td>
                    <td>{user.username}</td>
                    <th>
                        <f:link.action class="link-button" action="edit" arguments="{feUser: user}"><core:icon identifier="actions-open" size="small" alternativeMarkupIdentifier="inline" />&nbsp;Bearbeiten</f:link.action>
                        <f:link.action
                            class="calendar-confirm link-button"
                            action="delete"
                            arguments="{feUser: user}"
                            data="{confirm-title: 'Eintrag wirklich löschen?',  confirm-content: '{reservation.event.calendar.name}: {reservation.event.startEndDateTime}'}">
                            <core:icon identifier="actions-delete" size="small" alternativeMarkupIdentifier="inline" />&nbsp;Löschen
                        </f:link.action>
                    </th>
                </tr>
            </f:for>
        </table>
    </div>
</f:section>

</html>
