Browse Source

Organisations - remove action link

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

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

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

Loading…
Cancel
Save