[24098] Fix translation of type attribute label

Uses `label_tag` instead of label that tries to do some magic regarding
the second argument.
pull/4954/head
Oliver Günther 8 years ago
parent f734086de5
commit 694f8024d4
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 8
      app/views/types/_form.html.erb

@ -84,10 +84,10 @@ See doc/COPYRIGHT.rdoc for more details.
<% attr = attributes[name] %>
<tr>
<td>
<%= label "type_attribute_visibility_#{name}",
translated_attribute_name(name, attr),
value: "type_attribute_visibility[#{name}]",
class: 'form--label' %>
<%= label_tag "type_attribute_visibility_#{name}",
translated_attribute_name(name, attr),
value: "type_attribute_visibility[#{name}]",
class: 'form--label' %>
</td>
<td>
<input name="<%= "type[attribute_visibility][#{name}]" %>" type="hidden" value="hidden" />

Loading…
Cancel
Save