Skip to content
Snippets Groups Projects
Unverified Commit de59a172 authored by Arnaud Levy's avatar Arnaud Levy Committed by GitHub
Browse files

Remove all direct uploads (#2402)

* Remove all direct uploads

* back
parent 74a623be
No related branches found
No related tags found
No related merge requests found
Showing
with 13 additions and 30 deletions
<%= osuny_panel t('featured_image.title') do %>
<%= f.input :featured_image,
as: :single_deletable_file,
direct_upload: true,
label: false,
hint: images_formats_accepted_hint,
input_html: { accept: default_images_formats_accepted },
......
<%= osuny_panel t('shared_image.title') do %>
<%= f.input :shared_image,
as: :single_deletable_file,
direct_upload: true,
label: false,
hint: file_hint(
filesize: number_to_human_size(500.kilobytes),
......
......@@ -19,14 +19,12 @@
as: :single_deletable_file,
hint: images_formats_accepted_hint,
input_html: { accept: default_images_formats_accepted },
preview: 200,
direct_upload: true %>
preview: 200 %>
<%= lf.input :favicon,
as: :single_deletable_file,
hint: images_formats_accepted_hint(formats: '.png'),
input_html: { accept: '.png' },
preview: 100,
direct_upload: true %>
preview: 100 %>
<%= f.input :color, as: :color %>
<%= lf.input :home_sentence, as: :summernote, input_html: { data: { 'summernote-config': 'link' } } %>
<% if can?(:create, Communication::Extranet) %>
......
......@@ -26,7 +26,6 @@
<div class="col-lg-4">
<%= f.input :default_image,
as: :single_deletable_file,
direct_upload: true,
hint: images_formats_accepted_hint,
input_html: { accept: default_images_formats_accepted },
preview: 300 %>
......@@ -37,7 +36,6 @@
<div class="col-lg-4">
<%= f.input :default_shared_image,
as: :single_deletable_file,
direct_upload: true,
hint: images_formats_accepted_hint,
input_html: { accept: default_images_formats_accepted },
preview: 300 %>
......
......@@ -22,8 +22,7 @@
<%= lf.input :logo,
as: :single_deletable_file,
input_html: { accept: default_images_formats_accepted },
preview: 200,
direct_upload: true %>
preview: 200 %>
<% end %>
</div>
<div class="col-xxl-6">
......
......@@ -67,8 +67,7 @@
as: :single_deletable_file,
input_html: { accept: default_images_formats_accepted },
preview: 200,
resize: 1,
direct_upload: true %>
resize: 1 %>
</div>
</div>
......
......@@ -87,14 +87,12 @@
as: :single_deletable_file,
input_html: { accept: default_images_formats_accepted },
preview: 200,
resize: false,
direct_upload: true %>
resize: false %>
<%= lf.input :logo_on_dark_background,
as: :single_deletable_file,
input_html: { accept: default_images_formats_accepted },
preview: 200,
resize: false,
direct_upload: true %>
resize: false %>
<% end %>
<%= render 'admin/application/shared_image/edit', f: lf, about: l10n %>
<%= render 'admin/application/meta_description/form', f: lf, about: l10n %>
......
......@@ -149,8 +149,7 @@
label: false,
input_html: { accept: default_images_formats_accepted },
preview: 200,
resize: 1,
direct_upload: true %>
resize: 1 %>
<%= lf.input :picture_credit,
as: :summernote,
hint: t('featured_image.credit.hint'),
......
......@@ -28,8 +28,7 @@
as: :single_deletable_file,
input_html: { accept: default_images_formats_accepted },
preview: 200,
resize: 1,
direct_upload: true %>
resize: 1 %>
</div>
</div>
<% content_for :action_bar_right do %>
......
......@@ -47,8 +47,7 @@
as: :single_deletable_file,
input_html: { accept: default_images_formats_accepted },
preview: 200,
resize: 1,
direct_upload: true %>
resize: 1 %>
</div>
</div>
<%= f.button :submit, t(".sign_up"), class: 'btn btn-primary' %>
......
......@@ -13,8 +13,7 @@
as: :single_deletable_file,
input_html: { accept: default_images_formats_accepted },
preview: 200,
resize: 1,
direct_upload: true %>
resize: 1 %>
</div>
<div class="col-lg-6">
<%= f.input :email %>
......
......@@ -49,14 +49,12 @@
as: :single_deletable_file,
input_html: { accept: default_images_formats_accepted },
preview: 200,
resize: false,
direct_upload: true %>
resize: false %>
<%= f.input :logo_on_dark_background,
as: :single_deletable_file,
input_html: { accept: default_images_formats_accepted },
preview: 200,
resize: false,
direct_upload: true %>
resize: false %>
<%= submit f %>
</div>
</div>
......
......@@ -27,8 +27,7 @@
<%= f.input :logo,
as: :single_deletable_file,
input_html: { accept: default_images_formats_accepted },
preview: false,
direct_upload: true %>
preview: false %>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment