<%= _lc( 'APPOINTMENT_EDIT_ATTENDEE' ) %>

<% var aa = a.getAttendeesAccepted(), prfl; %> <% for ( var aai = 0; aai < aa.length; aai++ ) { %> <% prfl = a.getProfileById( aa[ aai ].profile_id ); %> <%=raw app.core.View.getTemplate( 'appointment-edit-attendee-row', { attendee : prfl, a: a, currentStatus : 'accepted', childProfile : prfl.getChildProfileById( aa[ aai ].profile_child_id ) } ) %> <% } %> <% var aw = a.getAttendeesWaiting(); %> <% for ( var awi = 0; awi < aw.length; awi++ ) { %> <% prfl = a.getProfileById( aw[ awi ].profile_id ); %> <%=raw app.core.View.getTemplate( 'appointment-edit-attendee-row', { attendee : prfl, a: a, currentStatus : 'waiting', childProfile : prfl.getChildProfileById( aw[ awi ].profile_child_id ) } ) %> <% } %> <% var ad = a.getAttendeesDeclined(); %> <% for ( var adi = 0; adi < ad.length; adi++ ) { %> <% prfl = a.getProfileById( ad[ adi ].profile_id ); %> <%=raw app.core.View.getTemplate( 'appointment-edit-attendee-row', { attendee : prfl, a: a, currentStatus : 'declined', childProfile : prfl.getChildProfileById( ad[ adi ].profile_child_id ) } ) %> <% } %> <% for ( var ndmi = 0; ndmi < notDecided.length; ndmi++ ) { %> <%=raw app.core.View.getTemplate( 'appointment-edit-attendee-row', { attendee : notDecided[ ndmi ].profile, a: a, currentStatus : 'no-reaction', childProfile : notDecided[ ndmi ].child } ) %> <% } %>
<%= _lc( 'NAME' ) %> <%= _lc( 'CURRENT_STATUS' ) %> <%= a.hasStarted() ? _lc( 'HAS_ATTENDED' ) : _lc( 'CHANGE_TO' ) %>