1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/app/views/notifications_mailer/notify_admin_training_auto_cancelled.html.erb
Sylvain 23ba44bc57 (bug) auto cancel trainings
- Wrong trainings sessions was cancelled (in the past instead of in the futur)
- Notifications about auto refunds was incorrect
2023-02-15 10:30:01 +01:00

14 lines
478 B
Plaintext

<%= render 'notifications_mailer/shared/hello', recipient: @recipient %>
<p>
<%= t('.body.cancelled_training', {
TRAINING: @attached_object.trainings.first.name,
DATE: I18n.l(@attached_object.start_at.to_date),
START: I18n.l(@attached_object.start_at, format: :hour_minute),
END: I18n.l(@attached_object.end_at, format: :hour_minute)
}) %>
</p>
<p>
<%= @notification.get_meta_data(:auto_refund) ? t('.body.auto_refund') : t('.body.manual_refund') %>
</p>