Browse Source

Organisations - remove action link

CLDC-3740-Replace-you-didnt-answer-with-link
Manny Dinssa 1 week ago
parent
commit
9f422fb53a
  1. 16
      app/views/organisations/show.html.erb

16
app/views/organisations/show.html.erb

@ -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| %>

Loading…
Cancel
Save