Skip to content
Snippets Groups Projects
Commit d7652722 authored by pabois's avatar pabois
Browse files

add cropper to featured images

parent f63bc07d
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