Browse Source

Fix erb lint regressions

pull/469/head^2
baarkerlounger 3 years ago
parent
commit
fa5dd55c65
  1. 2
      app/views/users/edit.html.erb
  2. 2
      app/views/users/new.html.erb

2
app/views/users/edit.html.erb

@ -25,7 +25,7 @@
spellcheck: "false" %>
<% if current_user.data_coordinator? || current_user.support? %>
<%= roles = current_user.assignable_roles.map { |key, _| OpenStruct.new(id: key, name: key.to_s.humanize) } %>
<% roles = current_user.assignable_roles.map { |key, _| OpenStruct.new(id: key, name: key.to_s.humanize) } %>
<%= f.govuk_collection_radio_buttons :role,
roles,

2
app/views/users/new.html.erb

@ -25,7 +25,7 @@
spellcheck: "false",
value: @resource.email %>
<%= roles = current_user.assignable_roles.map { |key, _| OpenStruct.new(id: key, name: key.to_s.humanize) } %>
<% roles = current_user.assignable_roles.map { |key, _| OpenStruct.new(id: key, name: key.to_s.humanize) } %>
<%= f.govuk_collection_radio_buttons :role,
roles,

Loading…
Cancel
Save