Fix invalid HTML in document/image fields labels
These labels weren't associated with any fields, which is invalid HTML. We're using a legend inside a fieldset instead, which is the natural way to group form fields together.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<div class="documents-list">
|
<fieldset class="documents-list">
|
||||||
<%= f.label :documents, t("documents.form.title") %>
|
<legend><%= t("documents.form.title") %></legend>
|
||||||
<p class="help-text"><%= note %></p>
|
<p class="help-text"><%= note %></p>
|
||||||
|
|
||||||
<div id="nested-documents" data-max-documents-allowed="<%= max_documents_allowed %>">
|
<div id="nested-documents" data-max-documents-allowed="<%= max_documents_allowed %>">
|
||||||
@@ -21,4 +21,4 @@
|
|||||||
<div id="max-documents-notice" class="max-documents-notice callout primary text-center <%= "hide" unless max_documents_allowed? %>">
|
<div id="max-documents-notice" class="max-documents-notice callout primary text-center <%= "hide" unless max_documents_allowed? %>">
|
||||||
<%= sanitize(t("documents.max_documents_allowed_reached")) %>
|
<%= sanitize(t("documents.max_documents_allowed_reached")) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</fieldset>
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<%= f.label image_fields, t("images.form.title") %>
|
<fieldset>
|
||||||
|
<legend><%= t("images.form.title") %></legend>
|
||||||
<p class="help-text"><%= note %></p>
|
<p class="help-text"><%= note %></p>
|
||||||
|
|
||||||
<div id="nested-image">
|
<div id="nested-image">
|
||||||
@@ -20,3 +21,4 @@
|
|||||||
association_insertion_node: "#nested-image",
|
association_insertion_node: "#nested-image",
|
||||||
association_insertion_method: "append"
|
association_insertion_method: "append"
|
||||||
} %>
|
} %>
|
||||||
|
</fieldset>
|
||||||
|
|||||||
Reference in New Issue
Block a user