Skip to content
Snippets Groups Projects
Commit 6a36cdc4 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

refactor

parent f1fd310b
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_hints
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_hints,
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_hints
%>
<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_hints,
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