Skip to content

Commit

Permalink
AP-5231: Update application list to show new certificate type
Browse files Browse the repository at this point in the history
  • Loading branch information
colinbruce committed Aug 29, 2024
1 parent c2a0fba commit 7ae2016
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,13 @@
end
row.with_cell(html_attributes: { class: "sortable-cell" }, text: application.application_ref)
row.with_cell(html_attributes: { class: "sortable-cell", "data-sort-value": application.used_delegated_functions?.to_s }) do
if application.used_delegated_functions?
if application.special_children_act_proceedings? && application.used_delegated_functions?
concat t(".substantive")
concat tag.span(class: "govuk-body-s govuk-!-display-block") {
t(".backdated_to", date: l(application.used_delegated_functions_on, format: :short_date))
}
elsif application.used_delegated_functions?
concat t(".emergency")

if application.substantive_application_deadline_on? && application.summary_state == :in_progress
concat tag.span(class: "govuk-body-s govuk-!-display-block") {
t(".substantive_due", date: l(application.substantive_application_deadline_on, format: :short_date))
Expand Down
1 change: 1 addition & 0 deletions config/locales/en/providers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,7 @@ en:
emergency: Emergency
substantive: Substantive
substantive_due: "Substantive due: %{date}"
backdated_to: "Backdated to: %{date}"
col_and_ref: and Ref
col_and_state: and Status
delete: Delete
Expand Down

0 comments on commit 7ae2016

Please sign in to comment.