Skip to content

Commit

Permalink
Revert image_methods changes / Delete fountain modals
Browse files Browse the repository at this point in the history
  • Loading branch information
JoonasAapro committed Dec 18, 2024
1 parent fc4699b commit f24647d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
4 changes: 1 addition & 3 deletions app/commands/concerns/decidim/ideas/image_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ def build_image
attached_to: @attached_to, # Keep first
title: { I18n.locale.to_s => form_image["title"] },
file: form_image["file"],
weight: 0,
content_type: content_type_for(form_image),
file_size: form_image.bytesize
weight: 0
)
end

Expand Down
24 changes: 0 additions & 24 deletions app/views/decidim/ideas/ideas/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -188,18 +188,6 @@
help_i18n_scope: "decidim.forms.file_help.image",
extension_allowlist: Decidim::OrganizationSettings.for(current_organization).upload_allowed_file_extensions_image %>
</div>

<div class="reveal" id="image-modal" data-reveal>
<div class="reveal__header">
<h3 class="reveal__title"><%= t(".image_legend") %></h3>
<button class="close-button" data-close aria-label="<%= t(".close_modal") %>"
type="button">
<span aria-hidden="true">&times;</span>
</button>
</div>

<div class="row columns reveal__content"></div>
</div>
<% end %>

<% if component_settings.attachments_allowed? %>
Expand All @@ -211,18 +199,6 @@
button_edit_label: t(".edit_attachment"),
help_i18n_scope: "decidim.forms.file_help.file" %>
</div>

<div class="reveal" id="attachment-modal" data-reveal>
<div class="reveal__header">
<h3 class="reveal__title"><%= t(".attachment_legend") %></h3>
<button class="close-button" data-close aria-label="<%= t(".close_modal") %>"
type="button">
<span aria-hidden="true">&times;</span>
</button>
</div>

<div class="row columns reveal__content"></div>
</div>
<% end %>

<%= append_javascript_pack_tag "decidim_ideas_idea_form" %>
Expand Down

0 comments on commit f24647d

Please sign in to comment.