Browse Source

Set no actions row correctly

pull/2098/head
Kat 2 years ago
parent
commit
66c0af1951
  1. 2
      app/views/schemes/_scheme_summary_list_row.html.erb
  2. 2
      app/views/schemes/show.html.erb

2
app/views/schemes/_scheme_summary_list_row.html.erb

@ -1,4 +1,4 @@
<div class="<%= "govuk-summary-list__row #{scheme.confirmed? && !can_change_scheme_answer?(attribute[:name], @scheme) && !attribute[:edit] ? 'govuk-summary-list__row--no-actions' : ''}" %>">
<div class="<%= "govuk-summary-list__row#{can_change_scheme_answer?(attribute[:name], @scheme) && attribute[:edit] ? '' : ' govuk-summary-list__row--no-actions'}" %>">
<dt class="govuk-summary-list__key">
<%= attribute[:name].to_s %>
</dt>

2
app/views/schemes/show.html.erb

@ -31,7 +31,7 @@
<% end %>
</dd>
</div>
<% elsif attr[:id] != "secondary_client_group" || @scheme.has_other_client_group == "Yes" %>
<% elsif attr[:id] != "secondary_client_group" || @scheme.has_other_client_group == "Yes" %>
<%= render partial: "scheme_summary_list_row", locals: { scheme: @scheme, attribute: attr, change_link: change_answer_link(@scheme, attr[:id], current_user) } %>
<% end %>
<% end %>

Loading…
Cancel
Save