|
|
@ -23,12 +23,16 @@ |
|
|
|
<%= summary_list.with_row do |row| %> |
|
|
|
<%= summary_list.with_row do |row| %> |
|
|
|
<% row.with_key { attr[:name] } %> |
|
|
|
<% row.with_key { attr[:name] } %> |
|
|
|
<% row.with_value { details_html(attr, @organisation) } %> |
|
|
|
<% row.with_value { details_html(attr, @organisation) } %> |
|
|
|
<% row.with_action( |
|
|
|
<% if attr[:value] %> |
|
|
|
text: organisation_action_text(attr, @organisation), |
|
|
|
<% row.with_action( |
|
|
|
visually_hidden_text: attr[:name].to_s.humanize.downcase, |
|
|
|
text: organisation_action_text(attr, @organisation), |
|
|
|
href: edit_organisation_path(@organisation), |
|
|
|
visually_hidden_text: attr[:name].to_s.humanize.downcase, |
|
|
|
html_attributes: { "data-qa": "change-#{attr[:name].downcase}" }, |
|
|
|
href: edit_organisation_path(@organisation), |
|
|
|
) %> |
|
|
|
html_attributes: { "data-qa": "change-#{attr[:name].downcase}" }, |
|
|
|
|
|
|
|
) %> |
|
|
|
|
|
|
|
<% else %> |
|
|
|
|
|
|
|
<% row.with_action %> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
<% else %> |
|
|
|
<% else %> |
|
|
|
<%= summary_list.with_row do |row| %> |
|
|
|
<%= summary_list.with_row do |row| %> |
|
|
|