diff --git a/app/components/documents/nested_component.html.erb b/app/components/documents/nested_component.html.erb index ec6a07d65..743cd7be3 100644 --- a/app/components/documents/nested_component.html.erb +++ b/app/components/documents/nested_component.html.erb @@ -1,5 +1,5 @@ -
- <%= f.label :documents, t("documents.form.title") %> +
+ <%= t("documents.form.title") %>

<%= note %>

@@ -21,4 +21,4 @@
"> <%= sanitize(t("documents.max_documents_allowed_reached")) %>
-
+
diff --git a/app/components/images/nested_component.html.erb b/app/components/images/nested_component.html.erb index 316c6474e..0505ea4de 100644 --- a/app/components/images/nested_component.html.erb +++ b/app/components/images/nested_component.html.erb @@ -1,22 +1,24 @@ -<%= f.label image_fields, t("images.form.title") %> -

<%= note %>

+
+ <%= t("images.form.title") %> +

<%= note %>

-
- <%= f.fields_for image_fields do |image_builder| %> - <%= render Images::FieldsComponent.new(image_builder, imageable: imageable) %> - <% end %> -
+
+ <%= f.fields_for image_fields do |image_builder| %> + <%= render Images::FieldsComponent.new(image_builder, imageable: imageable) %> + <% end %> +
-<%= link_to_add_association t("images.form.add_new_image"), f, image_fields, - force_non_association_create: true, - partial: "images/image_fields", - id: "new_image_link", - class: "button upload-image - #{"hide" if image_fields == :image && imageable.image.present?}", - render_options: { - locals: { imageable: imageable } - }, - data: { - association_insertion_node: "#nested-image", - association_insertion_method: "append" - } %> + <%= link_to_add_association t("images.form.add_new_image"), f, image_fields, + force_non_association_create: true, + partial: "images/image_fields", + id: "new_image_link", + class: "button upload-image + #{"hide" if image_fields == :image && imageable.image.present?}", + render_options: { + locals: { imageable: imageable } + }, + data: { + association_insertion_node: "#nested-image", + association_insertion_method: "append" + } %> +