Simplify rendering document/image fields

We were adding <div> tags with the `images` or `documents` HTML class
prettly much every time we rendered a NestedComponent. We're now
including the HTML class inside the component, as we usually do.

We're also rendering the nested components directly, since it's been a
while since the partials were changed to simply render the components.
This commit is contained in:
Javi Martín
2023-10-12 21:21:42 +02:00
parent 00f063b291
commit 1e1d7996bb
16 changed files with 27 additions and 44 deletions

View File

@@ -1,4 +1,4 @@
<fieldset class="documents-list">
<fieldset class="documents-list documents">
<legend><%= t("documents.form.title") %></legend>
<p class="help-text"><%= note %></p>