diff --git a/app/views/admin/poll/polls/_form.html.erb b/app/views/admin/poll/polls/_form.html.erb index c0439af7b..e802d1217 100644 --- a/app/views/admin/poll/polls/_form.html.erb +++ b/app/views/admin/poll/polls/_form.html.erb @@ -32,7 +32,9 @@
- <%= render 'images/admin_image', imageable: @poll, f: f %> +
+ <%= render 'images/admin_image', imageable: @poll, f: f %> +
diff --git a/app/views/images/_admin_image.html.erb b/app/views/images/_admin_image.html.erb index 12874137f..d466f1cac 100644 --- a/app/views/images/_admin_image.html.erb +++ b/app/views/images/_admin_image.html.erb @@ -1,7 +1,7 @@ -
+
<%= 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 @@
- + <% end %>