diff --git a/app/models/education/diploma.rb b/app/models/education/diploma.rb index 6054c9cc3388ecd7b3acde073354303eae672039..417d3d03becb2399c4029a65c7964e33f397e152 100644 --- a/app/models/education/diploma.rb +++ b/app/models/education/diploma.rb @@ -39,7 +39,7 @@ class Education::Diploma < ApplicationRecord fourth_year: 400, master: 500, doctor: 800 - } + }, prefix: :level has_many :programs, dependent: :nullify diff --git a/app/views/admin/education/diplomas/static.html.erb b/app/views/admin/education/diplomas/static.html.erb index a2e12a17f1153fb7c80e78dbdc3f94c47f2e359b..504e0df3c48daa82627bdd6038a2838811a852ba 100644 --- a/app/views/admin/education/diplomas/static.html.erb +++ b/app/views/admin/education/diplomas/static.html.erb @@ -25,8 +25,10 @@ programs: short_name: >- <%= prepare_text_for_static @l10n.short_name %> <%= render 'admin/application/summary/static', about: @l10n %> +<% unless diploma.level_not_applicable? %> level: >- <%= diploma.level_i18n %> +<% end %> ects: <%= diploma.ects %> certification: <%= diploma.certification %> duration: >-