diff --git a/app/helpers/admin/citations_helper.rb b/app/helpers/admin/citations_helper.rb index 316d65b9f5..a383aa7d67 100644 --- a/app/helpers/admin/citations_helper.rb +++ b/app/helpers/admin/citations_helper.rb @@ -2,6 +2,7 @@ module Admin::CitationsHelper ICONS = { journalism: '🗞️', + campaigning: '📣', academic: '🎓', other: '🌐' }.with_indifferent_access.freeze diff --git a/app/models/citation.rb b/app/models/citation.rb index a9aa4e359b..460eb357ef 100644 --- a/app/models/citation.rb +++ b/app/models/citation.rb @@ -29,7 +29,7 @@ class Citation < ApplicationRecord message: _('Source URL is too long') }, format: { with: /\Ahttps?:\/\/.*\z/, message: _('Please enter a Source URL') } - validates :type, inclusion: { in: %w(journalism academic other), + validates :type, inclusion: { in: %w(journalism academic campaigning other), message: _('Please select a type') } scope :newest, ->(limit = 1) do diff --git a/app/views/citations/new.html.erb b/app/views/citations/new.html.erb index de87a069df..bc8d604b28 100644 --- a/app/views/citations/new.html.erb +++ b/app/views/citations/new.html.erb @@ -28,6 +28,11 @@ <%= _('Journalism') %> + +