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

Merge pull request #1318 from noesya/refactor-format-hints

Petite amélioration des indications de formats d'images
parents f1fd310b 6b235562
No related branches found
No related tags found
No related merge requests found
......@@ -65,4 +65,8 @@ module ApplicationHelper
Rails.application.config.default_images_formats.join(', ')
end
def default_images_formats_accepted_hint
t('default_images_hint', formats: default_images_formats_accepted)
end
end
......@@ -3,7 +3,7 @@
as: :single_deletable_file,
direct_upload: true,
label: false,
hint: t('default_images_hint', formats: default_images_formats_accepted),
hint: default_images_formats_accepted_hint,
input_html: { accept: default_images_formats_accepted },
preview: true,
resize: true %>
......
<%
label = t('admin.communication.blocks.components.image.input.label')
remove = t('admin.communication.blocks.components.image.input.remove')
hint = t('default_images_hint', formats: default_images_formats_accepted)
hint = default_images_formats_accepted_hint
%>
<div class="mb-3">
<div v-if="!<%= model %>.<%= property %>.id">
......
......@@ -15,7 +15,7 @@
<%= osuny_panel t('look_feel') do %>
<%= f.input :logo,
as: :single_deletable_file,
hint: t('default_images_hint', formats: default_images_formats_accepted),
hint: default_images_formats_accepted_hint,
input_html: { accept: default_images_formats_accepted },
preview: 200,
direct_upload: true %>
......
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