Skip to content
Snippets Groups Projects
Unverified Commit 5285616e authored by Pierre-André Boissinot's avatar Pierre-André Boissinot Committed by GitHub
Browse files

Merge pull request #941 from noesya/featured_image_with_cropper

Ajout du cropper pour recadrer les images à la une
parents 4918a087 d7652722
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ class Admin::Research::Journals::VolumesController < Admin::Research::Journals::
params.require(:research_journal_volume)
.permit(
:title, :slug, :number, :keywords, :published, :published_at, :meta_description, :summary, :text,
:featured_image, :featured_image_infos, :featured_image_delete, :featured_image_alt, :featured_image_credit
:featured_image, :featured_image_delete, :featured_image_infos, :featured_image_alt, :featured_image_credit
)
.merge(university_id: current_university.id)
end
......
......@@ -5,7 +5,8 @@
label: false,
hint: '.jpg, .jpeg, .png, .svg',
input_html: { accept: '.jpg,.jpeg,.png,.svg' },
preview: true %>
preview: true,
resize: true %>
<%= f.input :featured_image_alt,
label: t('featured_image.alt.label'),
hint: t('featured_image.alt.hint') %>
......
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