<%=raw app.core.View.getTemplate( 'appointment-detail-nav', { a : a, activeTab : 'details' } ) %> <% var mStart = a.getMomentStart(); %> <% var mEnd = a.getMomentEnd(); %> <% var mDeadline = a.getMomentDeadline(); %> <% var mDeadlineReject = a.getMomentDeadlineReject(); %> <% var currentUser = app.model.SessionUser.getUserProfile(); %> <% var categoryNames = a.getCategoryNames(); %>
<% if ( a.isCancelled() ) { %>
<%= _lc( 'APPOINTMENT_HAS_BEEN_CANCELLED' ) %>
<% } else if ( !a.hasStarted() && a.isDeadlineOver() ) { %>
<%= _lc( 'DEADLINE_IS_OVER' ) %>
<% } else if ( a.isMaxAttendeesExceeded() ) { %> <% var waitingPosition = a.getWaitingPositionForProfileId( app.model.SessionUser.getProfileId() ); %>
<% if ( waitingPosition > 0 ) { %> <%= _lc( 'WAITING_LIST_USER_POSITION', [ waitingPosition ] ) %> <% } else { %> <%= _lc( 'BOOKED_OUT_ONLY_WAITING_LIST_AVAILABLE' ) %> <% } %>
<% } %>
<% if ( categoryNames ) { %> <%= categoryNames %> <% if ( false === a.isVisible() ) { %>   <% } %> <% } else { %> <%= _lc( 'NO_COURSE_CATEGORY' ) %> <% } %>
<%= a.getSubject() %>
<%= _lc( 'TIMES' ) %>
<%= _lc( 'STARTTIME' ) %> <%= mStart.format( 'dd, DD.MMM.YYYY HH:mm [Uhr]' ) %>
<%= _lc( 'ENDTIME' ) %> <%= mEnd.format( 'dd, DD.MMM.YYYY HH:mm [Uhr]' ) %>
<%= _lc( 'DEADLINEREJECTTIME' ) %> <%= mDeadlineReject.format( 'dd, DD.MMM.YYYY HH:mm [Uhr]' ) %>
<%= _lc( 'DEADLINETIME' ) %> <%= mDeadline.format( 'dd, DD.MMM.YYYY HH:mm [Uhr]' ) %>

<%= _lc( 'FEEDBACKS' ) %>
<% if ( 0 < a.getMaxAttendees() ) { %> <% } %> <% if ( 0 < a.getMaxAttendees() ) { %> <% } %>
<%= _lc( 'ACCEPTANCE' ) %> <%= a.getNumAttendeesAccepted() %> <% if ( 0 < a.getMaxAttendees() ) { %> von <%= a.getMaxAttendees() %> <% } %>
<%= _lc( 'WAITINGLIST' ) %> <%= a.getNumAttendeesWaiting() %>
<%= _lc( 'FREE_REMAINING' ) %> <%= a.getMaxAttendees() - a.getNumAttendeesAccepted() %>

<%= _lc( 'LOCATION' ) %>
<%= a.getLocation() ? a.getLocation() : _lc( 'NO_LOCATION_FOUND' ) %> <% if ( a.getLocation() ) { %>
 Google Maps <% } %>

<%= _lc( 'DETAILS' ) %>
<%=raw a.getComment() ? app.util.Helper.nl2br( a.getComment() ) : _lc( 'NO_DESCRIPTION_AVAILABLE' ) %>

Abrechnungsfaktor
<%= ('' + a.getPriceFactor().toFixed(2)).replace( '.', ',' ) %>

<%= _lc( 'PROFILE_FEEDBACK' ) %>