|
|
|
<% content_for :title, "Your organisation (Details)" %>
|
|
|
|
|
|
|
|
<% content_for :tab_title do %>
|
|
|
|
<%= "Details" %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="govuk-grid-row">
|
|
|
|
<div class="govuk-grid-column-two-thirds-from-desktop">
|
|
|
|
<%= govuk_summary_list do |summary_list| %>
|
|
|
|
<% @organisation.display_attributes.each do |attr| %>
|
|
|
|
|
|
|
|
<% if current_user.data_coordinator? && attr[:editable] %>
|
|
|
|
<%= summary_list.row do |row| %>
|
|
|
|
<% row.key { attr[:name].to_s.humanize } %>
|
|
|
|
<% row.value { simple_format(attr[:value].to_s, {}, wrapper_tag: "div") } %>
|
|
|
|
<% row.action(
|
|
|
|
visually_hidden_text: "name",
|
|
|
|
href: edit_organisation_path,
|
|
|
|
html_attributes: { "data-qa": "change-#{attr[:name]}" },
|
|
|
|
) %>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<%= summary_list.row do |row| %>
|
|
|
|
<% row.key { attr[:name].to_s.humanize } %>
|
|
|
|
<% row.value { simple_format(attr[:value].to_s, {}, wrapper_tag: "div") } %>
|
|
|
|
<% row.action %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="govuk-grid-column-one-third-from-desktop">
|
|
|
|
<%= render partial: "layouts/collection_resources" %>
|
|
|
|
</div>
|
|
|
|
</div>
|