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

Filter #382

parent 3d02aed6
No related branches found
No related tags found
No related merge requests found
module Filters
class Admin::Education::Programs < Filters::Base
def initialize(user)
super
add_search
end
end
end
......@@ -3,7 +3,14 @@ module Filters
def initialize(user)
super
add_search
add :for_program, user.university.education_programs, I18n.t('filters.attributes.element', element: I18n.t('activerecord.models.education/program.one').downcase), false, true
add :for_program,
user.university.education_programs,
I18n.t(
'filters.attributes.element',
element: I18n.t('activerecord.models.education/program.one').downcase
),
false,
true
end
end
end
......@@ -3,7 +3,14 @@ module Filters
def initialize(user)
super
add_search
add :for_program, user.university.education_programs, I18n.t('filters.attributes.element', element: I18n.t('activerecord.models.education/program.one').downcase), false, true
add :for_program,
user.university.education_programs,
I18n.t(
'filters.attributes.element',
element: I18n.t('activerecord.models.education/program.one').downcase
),
false,
true
end
end
end
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