<% @type = 'error' if @error_message %>

<% if @error_message %> <%= @error_message.html_safe %> <%elsif @type == 'agree' %> <%=t('application_form.send_email_to_next_stage_reviewer')%> <% elsif @type == 'disagree' %> <%=t('application_form.email_add_file_success')%> <% elsif @type == 'finish' %> <%=t('application_form.email_edit_file_success')%> <% end %>