<%=raw app.core.View.getTemplate( 'appointment-detail-nav', { a : a, activeTab : 'attendee' } ) %> <% mStart = a.getMomentStart(); %> <% mEnd = a.getMomentEnd(); %> <% mDeadline = a.getMomentDeadline(); %> <% var prfl; %>
<% if ( a.hasStarted() ) { %> <% var attendeesAttended = a.getAttendeesAttended(); %>
<%= _lc( 'ATTENDED' ) %> (<%= attendeesAttended.length %>)
<% if ( attendeesAttended.length > 0 ) { %> <% for ( var aai = 0; aai < attendeesAttended.length; aai++ ) { %> <% prfl = a.getProfileById( attendeesAttended[ aai ].profile_id ); %> <%=raw app.core.View.getTemplate( 'appointment-detail-attendee-row', { a: a, at :prfl, g : g, childProfile : prfl.getChildProfileById( attendeesAttended[ aai ].profile_child_id ) } ) %> <% } %>
<% } else { %> <%= _lc( 'NONE' ) %> <% } %>
<% } else { %> <% var attendeesAccepted = a.getAttendeesAccepted(); %>
<%= _lc( 'ACCEPTANCE' ) %> (<%= attendeesAccepted.length %>)
<% if ( attendeesAccepted.length > 0 ) { %> <% for ( var aai = 0; aai < attendeesAccepted.length; aai++ ) { %> <% prfl = a.getProfileById( attendeesAccepted[ aai ].profile_id ); %> <%=raw app.core.View.getTemplate( 'appointment-detail-attendee-row', { a: a, at : prfl, g : g, childProfile : prfl.getChildProfileById( attendeesAccepted[ aai ].profile_child_id ) } ) %> <% } %>
<% } else { %> <%= _lc( 'NONE' ) %> <% } %>
<% if ( 0 < a.getMaxAttendees() ) { %> <% var attendeesWaiting = a.getWaitingList(); %>
<%= _lc( 'WAITINGLIST' ) %> (<%= attendeesWaiting.length %>)
<% if ( attendeesWaiting.length > 0 ) { %> <% for ( var awi = 0; awi < attendeesWaiting.length; awi++ ) { %> <% prfl = a.getProfileById( attendeesWaiting[ awi ].profile_id ); %> <%=raw app.core.View.getTemplate( 'appointment-detail-attendee-waiting-row', { a: a, at : prfl, g : g, waitingPos : (awi + 1), childProfile : prfl.getChildProfileById( attendeesWaiting[ awi ].profile_child_id ) } ) %> <% } %>
<% } else { %> <%= _lc( 'NONE' ) %> <% } %>
<% } %>
Absagen (<%= a.getProfileIdsDeclined().length %>)
<% let attendeesDeclined = a.getAttendeesDeclined(); %>
<% if ( attendeesDeclined.length > 0 ) { %> <% for ( var adi = 0; adi < attendeesDeclined.length; adi++ ) { %> <% prfl = a.getProfileById( attendeesDeclined[ adi ].profile_id ); %> <%=raw app.core.View.getTemplate( 'appointment-detail-attendee-row', { a: a, at : prfl, g : g, childProfile : prfl.getChildProfileById( attendeesDeclined[ adi ].profile_child_id ) } ) %> <% } %>
<% } else { %> <%= _lc( 'NONE' ) %> <% } %>
<% } %>