agile-alliance-brazil/event_registrations

View on GitHub
app/views/email_notifications_mailer/registration_pending.html.erb

Summary

Maintainability
Test Coverage
<html>
  <body>
    <%= render 'email_header' %>

    <div style="padding-left: 100px;padding-right: 100px;padding-top: 30px;">
      <%= render 'greetings', event: @event, attendance: @attendance %>

      <p><%= I18n.t('attendances.pending_message_on_value', attendance_value: number_to_currency(@attendance.registration_value), status_name: I18n.t("activerecord.attributes.attendance.enums.status.#{@attendance.status}").downcase) %></p>

      <p><%= I18n.t('attendances.accepted_group.payment_page') %></p>

      <% if @attendance.grouped? && @attendance.pending? %>
        <p><%= I18n.t('attendances.message_on_group', group_name: @attendance.group_name) %></p>
      <% end %>

      <p><%= link_to I18n.t('attendances.registrations_page'), event_attendance_url(@event, @attendance) %></p>
      <br/>
      <p><%= I18n.t('attendances.goodbye.pre_payment') %></p>
      <p><%= I18n.t('attendances.event_team', event_name: @event.name) %></p>
    </div>
  </body>
</html>