-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP - use normal file field for attachments
- Loading branch information
1 parent
318af39
commit 400aaf7
Showing
1 changed file
with
15 additions
and
15 deletions.
There are no files selected for viewing
30 changes: 15 additions & 15 deletions
30
app/cells/decidim/comments/comment_form/extended_comment_as.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<%= decidim_original_comment_as_for(form) %> | ||
|
||
<% if attachments_allowed? %> | ||
<% if !reply? %> | ||
<%= form.attachment( | ||
:add_documents, | ||
multiple: true, | ||
modal_id: "#{form_id}-documents", | ||
# label: t("decidim.proposals.collaborative_drafts.new.add_file"), | ||
# button_label: t("decidim.proposals.collaborative_drafts.new.add_file"), | ||
# button_edit_label: t("decidim.proposals.collaborative_drafts.new.edit_file"), | ||
button_class: "button button__lg button__transparent-secondary w-full", | ||
# help_text: t("attachment_legend", scope: "decidim.proposals.collaborative_drafts.edit"), | ||
help_i18n_scope: "decidim.forms.file_help.file" | ||
) %> | ||
<% else %> | ||
<%= form.file_field(:add_documents, multiple:true) %> | ||
<% end %> | ||
<%# <% if !reply? %1> %> | ||
<%# <%= form.attachment( %> | ||
<%# :add_documents, %> | ||
<%# multiple: true, %> | ||
<%# modal_id: "#{form_id}-documents", %> | ||
<%# # label: t("decidim.proposals.collaborative_drafts.new.add_file"), %> | ||
<%# # button_label: t("decidim.proposals.collaborative_drafts.new.add_file"), %> | ||
<%# # button_edit_label: t("decidim.proposals.collaborative_drafts.new.edit_file"), %> | ||
<%# button_class: "button button__lg button__transparent-secondary w-full", %> | ||
<%# # help_text: t("attachment_legend", scope: "decidim.proposals.collaborative_drafts.edit"), %> | ||
<%# help_i18n_scope: "decidim.forms.file_help.file" %> | ||
<%# ) %1> %> | ||
<%# <% else %1> %> | ||
<%= form.file_field(:add_documents, multiple:true, direct_upload: true) %> | ||
<%# <% end %1> %> | ||
<% end %> |