Skip to content

Commit

Permalink
Merge pull request #215 from unboxed/use-govuk-design-for-heads-of-terms
Browse files Browse the repository at this point in the history
Use govuk design on heads of terms
  • Loading branch information
Celia Collins authored Mar 6, 2024
2 parents 4c2cab5 + d02d9cf commit f57d90a
Showing 1 changed file with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
<li>
<h2 class="moj-task-list__section">
<span class="moj-task-list__section-number"><%= count_total_requests(@validation_requests, "heads_of_terms_validation_requests") %></span>Respond to heads of terms
</h2>
<ul class="moj-task-list__items" id="heads_of_terms_validation_requests">
<li class="govuk-!-margin-top-8">
<h3 class="app-task-list__section">
Respond to heads of terms
</h3>
<ul class="app-task-list__items" id="additional-document-validation-requests">
<% @validation_requests["data"]["heads_of_terms_validation_requests"].group_by{ |request| request["owner_id"] }.each do |id, group| %>
<% request = group.sort_by{ |request| request["created_at"] }.last %>
<li class="moj-task-list__item">
<% if request["state"] == "open" %>
<%= link_to request["term"]["title"], edit_heads_of_term_validation_request_path(request["id"], planning_application_id: params["planning_application_id"], change_access_id: params["change_access_id"]), class: "moj-task-list__task-name" %>
<% else %>
<%= link_to request["term"]["title"], heads_of_term_validation_request_path(request["id"], planning_application_id: params["planning_application_id"], change_access_id: params["change_access_id"]), class: "moj-task-list__task-name" %>
<% end %>
<li class="govuk-task-list__item govuk-task-list__item--with-link">
<div class="govuk-task-list__name-and-hint">
<% if request["state"] == "open" %>
<%= link_to request["term"]["title"], edit_heads_of_term_validation_request_path(request["id"], planning_application_id: params["planning_application_id"], change_access_id: params["change_access_id"]), class: "moj-task-list__task-name" %>
<% else %>
<%= link_to request["term"]["title"], heads_of_term_validation_request_path(request["id"], planning_application_id: params["planning_application_id"], change_access_id: params["change_access_id"]), class: "moj-task-list__task-name" %>
<% end %>
</div>

<%= render "validation_requests/change_request_state", change_request: request %>
</li>
Expand Down

0 comments on commit f57d90a

Please sign in to comment.