<tr>
    <td>
        <%=raw attendee.getName() %>
        <% if ( childProfile ) {    %>
            &nbsp;<small>[<%=raw attendee.getChildProfileHtmlTagById( childProfile.id ) %>]</small>
        <% }    %>
        <% if ( attendee.getContractInGroup( a.getTeamId() ) ) { %>
        <br /><small>Vetrag: <%= attendee.getContractInGroup( a.getTeamId() ) %></small>
        <% }    %>
    </td>
    <td class="text-center">
        <% if ( currentStatus == 'accepted' ) { %>
            <%= _lc( 'STATUS_ACCEPTED' ) %>
        <% } else if ( currentStatus == 'declined' ) {  %>
            <%= _lc( 'STATUS_DECLINED' ) %>
        <% } else if ( currentStatus == 'waiting' ) {   %>
            <%= _lc( 'STATUS_WAITING' ) %>
        <% } else { %>
            <%= _lc( 'STATUS_NO_REACTION' ) %>
        <% }    %>
    </td>
    <% if ( false === a.hasStarted() ) {    %>
        <td class="text-center">
            <select class="form-control form-control-sm"
                    a-type="select-attendee-status"
                    data-appointment-id="<%= a.getId() %>"
                    data-profile-id="<%= attendee.getId() %>"
                    data-child-profile-id="<%= childProfile ? childProfile.id : '0' %>"
                    data-orig-status="<%= currentStatus %>">
                <option value="no-change">
                    <%= _lc( 'STATUS_NO_CHANGE' ) %>
                </option>
                <% if ( currentStatus !== 'accepted' ) {    %>
                    <option value="accepted">
                        <%= _lc( 'STATUS_ACCEPTED' ) %>
                    </option>
                <% }    %>
                <% if ( currentStatus !== 'declined' ) {    %>
                    <option value="declined">
                        <%= _lc( 'STATUS_DECLINED' ) %>
                    </option>
                <% }    %>
            </select>
        </td>
    <% } else { %>
        <td class="text-center">
            <div class="custom-control custom-checkbox">
                <input type="checkbox"
                       id="attendee-final-status-<%= attendee.getId() %>"
                       data-type="checkbox-attendee-final-status"
                       data-appointment-id="<%= a.getId() %>"
                       data-profile-id="<%= attendee.getId() %>"
                       data-child-profile-id="<%= childProfile ? childProfile.id : '0' %>"
                       data-orig-status="<%= a.hasProfileIdAttended( attendee.getId() ) ? 'checked' : 'not-checked' %>"
                       class="custom-control-input"
                       <%= a.hasProfileIdAttended( attendee.getId() ) ? 'checked="checked"' : '' %>
                />
                <label class="custom-control-label"
                       for="attendee-final-status-<%= attendee.getId() %>"
                       style="vertical-align: top;"></label>
            </div>
        </td>


    <% }    %>
</tr>