Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SocFoot committed Jan 4, 2024
1 parent e01f848 commit 8e90969
Showing 1 changed file with 28 additions and 19 deletions.
47 changes: 28 additions & 19 deletions app/views/claims/pages/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,43 +5,52 @@
<div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-l"><%= t("organisation_details") %></h1>
<%= govuk_summary_list do |summary_list|
summary_list.with_row do |row|
row.with_key(text: t("organisation_name"))
row.with_value(text: @user&.schools&.first&.gias_school&.name)
end; summary_list.with_row do |row|
row.with_key(text: t("uk_provider_reference_number"))
row.with_value(text: @user&.schools&.first&.gias_school&.ukprn)
end; summary_list.with_row do |row|
row.with_key(text: t("unique_reference_number"))
row.with_value(text: @user&.schools&.first&.gias_school&.urn)
end; end %>
summary_list.with_row do |row|
row.with_key(text: t("organisation_name"))
row.with_value(text: @user&.schools&.first&.gias_school&.name)
end
summary_list.with_row do |row|
row.with_key(text: t("uk_provider_reference_number"))
row.with_value(text: @user&.schools&.first&.gias_school&.ukprn)
end
summary_list.with_row do |row|
row.with_key(text: t("unique_reference_number"))
row.with_value(text: @user&.schools&.first&.gias_school&.urn)
end
end %>

<h2 class="govuk-heading-m govuk-!-margin-top-9">Contact details</h2>
<%= govuk_summary_list do |summary_list|
summary_list.with_row do |row|
row.with_key(text: t("email_address"))
row.with_value do %>
<a href="[email protected]"><%= @user.email %></a>
<% end;row.with_action(text: t('change'), visually_hidden_text: t("email_address"), href: '/contact-details')
end;summary_list.with_row do |row|
row.with_key(text: 'Telephone number')
row.with_value(text: @user&.schools&.first&.gias_school.telephone)
row.with_action(text: t('change'), visually_hidden_text: t("email_address"), href: '/contact-details')
end;summary_list.with_row do |row|
<% end %>
<% row.with_action(text: t('change'), visually_hidden_text: t("email_address"), href: '/contact-details')
end %>
<% summary_list.with_row do |row|
row.with_key(text: "Telephone number")
row.with_value(text: @user&.schools&.first&.gias_school&.telephone)
row.with_action(text: t("change"), visually_hidden_text: t("email_address"), href: "/contact-details")
end %>
<% summary_list.with_row do |row|
row.with_key(text: 'Website')
row.with_value do %>
<a href="<%= @user&.schools&.first&.gias_school&.website %>"><%= @user&.schools&.first&.gias_school&.website %></a>
<% end;row.with_action(text: t('change'), visually_hidden_text: t('email_address'), href: '/contact-details')
end;summary_list.with_row do |row|
end %>
<% summary_list.with_row do |row|
row.with_key(text: t('address'))
row.with_value do %>
<p class="govuk-body">
<%= @user&.schools&.first&.gias_school&.address1 %><br>
<%= @user&.schools&.first&.gias_school&.address2 %><br>
<%= @user&.schools&.first&.gias_school&.address3 %><br>
</p>
<% end;row.with_action(text: t('change'), visually_hidden_text: t('email_address'), href: '/contact-details')
end;end %>
<% end %>
<% row.with_action(text: t('change'), visually_hidden_text: t('email_address'), href: '/contact-details')
end %>
<% end %>
</div>
</div>
<% end %>

0 comments on commit 8e90969

Please sign in to comment.