Skip to content

Commit

Permalink
add id for the single row element
Browse files Browse the repository at this point in the history
  • Loading branch information
whomingbird committed Feb 7, 2025
1 parent be77be6 commit 274a6b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/extended_metadata/_single_row.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<div id="<%= prefix-%>-role-<%= index-%>" class="<%= key.singularize %> single-role multi_linked_extended_metdata" data-index="<%= index-%>">
<% attribute.linked_extended_metadata_type.extended_metadata_attributes.each do |attr| %>
<div class="form-group"><label><%= attr.label %></label><%= required_span if attr.required? %>
<div id="<%= "#{attribute.title}_#{index}_#{attr.title}".parameterize %>" class="form-group"><label><%= attr.label %></label><%= required_span if attr.required? %>
<div class="form-group single-attr-row">
<% attr_element_name = "#{element_name}[#{index}][#{attr.title}]" %>
<%= attribute_form_element(attr, value ? value[attr.title] : nil, attr_element_name, element_class) %>
Expand Down

0 comments on commit 274a6b2

Please sign in to comment.