26 lines
1.5 KiB
Plaintext
26 lines
1.5 KiB
Plaintext
<% define_content :link do %>
|
|
<%= HostUrl.protocol %>://<%= HostUrl.context_host(asset.appointment_group.contexts.first) %>/appointment_groups/<%= asset.appointment_group.id %>
|
|
<% end %>
|
|
|
|
<%= t :message, '%{user} canceled his/her reservation for "%{appointment_name}".', :user => data.updating_user.name, :appointment_name => asset.title %>
|
|
|
|
<b><%= before_label :details, "Appointment details" %></b><br>
|
|
<%= before_label :date_and_time, "Date/time" %> <%= datetime_string(asset.start_at, asset.end_at) %><br>
|
|
<% if asset.appointment_group.participant_type == 'Group' -%><br>
|
|
<%= before_label :attendees, "Attendees" %> <%= asset.participants.map(&:name).to_sentence %><br>
|
|
<%= before_label :group, "Group" %> <%= asset.context.name %><br>
|
|
<% else -%>
|
|
<%= before_label :attendee, "Attendee" %> <%= asset.context.name %><br>
|
|
<% end -%>
|
|
<%= before_label :course, "Course" %> <%= asset.appointment_group.participant_type == 'Group' ?
|
|
asset.appointment_group.contexts.first.name :
|
|
asset.appointment_group.contexts_for_user(user).map(&:name).join(", ") %><br>
|
|
<% if asset.appointment_group.available_slots -%>
|
|
<%= before_label :slots_remaining, "Available time slots" %> <%= asset.appointment_group.available_slots %><br>
|
|
<% end -%>
|
|
<br>
|
|
<b><%= before_label :cancel_reason, "Reason for canceling" %></b><br>
|
|
<%= data.cancel_reason || t(:no_reason_given, "none given") %><br>
|
|
<br>
|
|
<a href="<%= content :link %>"><%= t :instructions, "View the appointment" %></a>
|