Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppression de tous les envois par direct upload #2402

Merged
merged 2 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<%= 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 },
Expand Down
1 change: 0 additions & 1 deletion app/views/admin/application/shared_image/_edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<%= 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),
Expand Down
6 changes: 2 additions & 4 deletions app/views/admin/communication/extranets/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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) %>
Expand Down
2 changes: 0 additions & 2 deletions app/views/admin/communication/websites/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
Expand All @@ -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 %>
Expand Down
3 changes: 1 addition & 2 deletions app/views/admin/education/schools/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
3 changes: 1 addition & 2 deletions app/views/admin/profile/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
6 changes: 2 additions & 4 deletions app/views/admin/university/organizations/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
Expand Down
3 changes: 1 addition & 2 deletions app/views/admin/university/people/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
3 changes: 1 addition & 2 deletions app/views/admin/users/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
Expand Down
3 changes: 1 addition & 2 deletions app/views/devise/registrations/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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' %>
Expand Down
3 changes: 1 addition & 2 deletions app/views/extranet/account/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
Expand Down
6 changes: 2 additions & 4 deletions app/views/extranet/organizations/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 1 addition & 2 deletions app/views/server/universities/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
Loading