<% if(borders) {%> <% for(var index=0; index < borders + 1;
index++){ %>
<% }; %> <% }; %> <% _.each(by_hour, function(event){ %>
<%= event.customer %>
<%= event.from_label %> <%= event.from %>
<%= event.to_label %> <%= event.to %>
<%= event.calendar_day %> <% if(event.main) { %>
-
<%= cal.locale.total_amount %>
<%= event.is_pro_version ? event.amount
: '- -' %>
-
<%= cal.locale.discount %>
<%= event.is_pro_version ?
event.discount : '- -' %>
-
<%= cal.locale.deposit %>
<%= event.is_pro_version ?
event.deposit : '- -' %>
-
<%= cal.locale.due %>
<%= event.is_pro_version ? event.due :
'- -' %>
<% if(!event.is_pro_version) {%>
unlock this feature for
79 € / year
<% }; %>
<% }; %>
<% }); %>
<% _.each(headers, function(att, pos){ %>
<% if(att) { %>
<% _.each(att.unavailable_times, function(time, index){ %>
<% }); %>
<% } %>
<% }); %>
<% _.each(headers, function(att, pos){ %>
<% if(att) { %>
<% for(i = 0; i < lines; i++){ %>
<%= cal.locale.click_row_block %>
<% }; %>
<% } %>
<% }); %>
<% for(i = 0; i < lines; i++){ %>
<%= cal._time(i) %>
<%= cal.locale.click_row_block %>
<% }; %>