Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #49 from Metatavu/bugfix-adding-image
Browse files Browse the repository at this point in the history
Fixing image upload
  • Loading branch information
Eskilmar committed Feb 2, 2021
2 parents 7decec9 + bb8071b commit c0bbcbe
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Expand Up @@ -62,9 +62,6 @@
<fieldset>
<legend><%= t("attachment_legend", scope: "decidim.proposals.proposals.edit") %></legend>
<%= form.fields_for :attachment, @form.attachment do |nested_form| %>
<div class="field">
<%= nested_form.text_field :title %>
</div>

<div class="field">
<%= nested_form.upload :file, optional: false %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/decidim/proposals/proposals/complete.html.erb
Expand Up @@ -7,7 +7,7 @@

<div class="card">
<div class="card__content">
<%= decidim_form_for(@form, url: update_draft_proposal_path(@proposal), method: :patch) do |form| %>
<%= decidim_form_for(@form) do |form| %>
<%= render partial: "edit_form_fields", locals: { form: form } %>

<div class="actions">
Expand Down
2 changes: 1 addition & 1 deletion app/views/decidim/proposals/proposals/edit_draft.html.erb
Expand Up @@ -7,7 +7,7 @@

<div class="card">
<div class="card__content">
<%= decidim_form_for(@form, url: update_draft_proposal_path(@proposal), method: :patch) do |form| %>
<%= decidim_form_for(@form) do |form| %>
<%= render partial: "edit_form_fields", locals: { form: form } %>

<div class="row column flex-center">
Expand Down

0 comments on commit c0bbcbe

Please sign in to comment.