<%= f.label :image, t("images.form.admin_title") %>
-
+
<%= link_to_add_association t('images.form.add_new_image'), f, :image,
force_non_association_create: true,
partial: "images/image_fields",
@@ -14,12 +14,12 @@
association_insertion_node: "#nested-image",
association_insertion_method: "append"
} %>
-
+
<%= render_image(f.object.image, :thumb, false) if f.object.image %>
<%= f.fields_for :image do |image_builder| %>
-
+
<%= image_builder.hidden_field :id %>
<%= image_builder.hidden_field :user_id, value: current_user.id %>
@@ -33,7 +33,7 @@