Skip to content

Commit

Permalink
Update design of decision page
Browse files Browse the repository at this point in the history
This is to match the design in the prototype.
  • Loading branch information
thomasleese committed Jan 24, 2024
1 parent 4223844 commit beacdf4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions app/views/assessor_interface/assessments/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<% legend = if @assessment.verify?
<% title = if @assessment.verify?
t(".legend.verify")
elsif @assessment.review?
t(".legend.review")
else
t(".legend.other")
end %>

<% hint = if @assessment.can_verify?
<% description = if @assessment.can_verify?
t(".hint.can_verify")
elsif @assessment.can_review?
t(".hint.can_review")
Expand All @@ -16,17 +16,19 @@
t(".hint.cant_award")
end %>

<% content_for :page_title, title_with_error_prefix(legend, error: @form.errors.any?) %>
<% content_for :page_title, title_with_error_prefix(title, error: @form.errors.any?) %>
<% content_for :back_link_url, assessor_interface_application_form_path(@application_form) %>

<%= form_with model: @form, url: [:assessor_interface, @application_form, @assessment], method: :put do |f| %>
<%= f.govuk_error_summary %>

<h1 class="govuk-heading-xl"><%= title %></h1>
<p class="govuk-body"><%= description %></p>

<%= f.govuk_collection_radio_buttons :recommendation,
@assessment.available_recommendations,
:itself,
legend: { size: "xl", tag: "h1", text: legend },
hint: { text: hint } %>
legend: { text: "You can:", size: "s" } %>

<%= f.govuk_submit do %>
<%= govuk_link_to "Cancel", [:assessor_interface, @application_form] %>
Expand Down

0 comments on commit beacdf4

Please sign in to comment.