Skip to content

Commit

Permalink
refactor all instances of declined_reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
syed87 committed Feb 12, 2024
1 parent e13ea92 commit 91c1177
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 5 additions & 2 deletions app/components/timeline_entry/component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,11 @@

<ul class="govuk-list govuk-list--bullet">
<% reasons.each do |reason| %>
<li><%= simple_format reason %></li>
<% end %>
<li><%= simple_format reason[:name] %></li>
<% if reason[:assessor_note].present? %>
<li><%= simple_format reason[:assessor_note] %></li>
<% end %>
<% end %>
</ul>
<% end %>

Expand Down
6 changes: 5 additions & 1 deletion app/views/teacher_mailer/application_declined.text.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ Thank you for applying for QTS in England. Unfortunately, your application has b

<% end %>
<% reasons.each do |reason| %>
<%= reason %>
<%= reason[:name] %>

<% if reason[:assessor_note].present? %>
<%= reason[:assessor_note] %>

<% end %>
<% end %>
<% end %>
<% unless @view_object.declined_cannot_reapply? || @view_object.from_ineligible_country? %>
Expand Down

0 comments on commit 91c1177

Please sign in to comment.