app/views/katalyst/content/figures/_figure.html+form.erb in katalyst-content-2.1.0 vs app/views/katalyst/content/figures/_figure.html+form.erb in katalyst-content-2.1.1
- old
+ new
@@ -2,9 +2,14 @@
<%= render "hidden_fields", form: %>
<%= render "form_errors", form: %>
<div class="field">
<%= form.label :image %>
+ <% if (image = form.object.image).attached? %>
+ <%= image.filename %>
+ <br>
+ <%= form.hidden_field :image, value: form.object.image.signed_id %>
+ <% end %>
<%= form.file_field :image %>
</div>
<div class="field">
<%= form.label :heading %>