2023-06-28 15:33:51 +02:00
|
|
|
<%= render 'notifications_mailer/shared/hello', recipient: @recipient %>
|
|
|
|
|
|
|
|
<p><%= t('.body.reservation_saved_html', RESERVATION: @attached_object.reservable.name) %></p>
|
|
|
|
|
2024-01-02 11:53:16 +01:00
|
|
|
<p><%= t('.body.your_reserved_slots') %></p>
|
2023-06-28 15:33:51 +02:00
|
|
|
<ul>
|
|
|
|
<% @attached_object.slots.each do |slot| %>
|
|
|
|
<% if @attached_object.reservable_type == 'Event' %>
|
|
|
|
<% (slot.start_at.to_date..slot.end_at.to_date).each do |d| %>
|
|
|
|
<li><%= "#{I18n.l d, format: :long} #{I18n.l slot.start_at, format: :hour_minute} - #{I18n.l slot.end_at, format: :hour_minute}" %></li>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<li><%= "#{I18n.l slot.start_at, format: :long} - #{I18n.l slot.end_at, format: :hour_minute}" %></li>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
2024-01-02 11:53:16 +01:00
|
|
|
<p><%= t('.body.reservation_warning', RESERVATION: @attached_object.reservable.name) %></p>
|