diff --git a/app/controllers/admin/research/journals/volumes_controller.rb b/app/controllers/admin/research/journals/volumes_controller.rb index 654fabf5e3b604648c3b381c4657adffcb2b9b49..7a8d0ce2e10c87ff64b5ebb96e736239c1941445 100644 --- a/app/controllers/admin/research/journals/volumes_controller.rb +++ b/app/controllers/admin/research/journals/volumes_controller.rb @@ -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 diff --git a/app/views/admin/application/featured_image/_edit.html.erb b/app/views/admin/application/featured_image/_edit.html.erb index d06e8ba72065e3fcdcdf4116c398d63daf58f695..1556607a8fb993739690c336d49c009cbabc2af2 100644 --- a/app/views/admin/application/featured_image/_edit.html.erb +++ b/app/views/admin/application/featured_image/_edit.html.erb @@ -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') %>