Skip to content

Commit

Permalink
Update application form status page for review
Browse files Browse the repository at this point in the history
This updates the status page shown for application forms to handle when
the application has been moved to the review stage.
  • Loading branch information
thomasleese committed Oct 6, 2023
1 parent d7332bb commit 99912d3
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<% content_for :page_title, "Application" %>
<% content_for :back_link_url, assessor_interface_application_form_path(@view_object.application_form) %>

<% if @view_object.application_form.waiting_on? %>
<% if @view_object.assessment.review? %>
<%= govuk_panel(title_text: "Application sent for review") %>
<% elsif @view_object.application_form.waiting_on? %>
<%= govuk_panel(title_text: "Reference requests sent successfully") %>
<% else %>
<%= govuk_panel(title_text: "QTS application #{@view_object.application_form.reference} has been #{@view_object.status.downcase}") %>
Expand All @@ -11,7 +13,9 @@
<p class="govuk-body">The status of this application has been changed to ’<%= @view_object.status %>‘.</p>
<% end %>

<% if @view_object.application_form.declined? %>
<% if @view_object.assessment.review? %>
<p class="govuk-body">An assessor will now review the application and make a decision on awarding or declining QTS.</p>
<% elsif @view_object.application_form.declined? %>
<p class="govuk-body">The application will be deleted after 90 days unless the applicant chooses to appeal.</p>
<% elsif @view_object.application_form.awarded_pending_checks? %>
<p class="govuk-body">This status will appear while the award is reconciled with the information in the Database of Qualified Teachers (DQT).</p>
Expand Down

0 comments on commit 99912d3

Please sign in to comment.