diff --git a/app/models/communication/website/page/accessibility.rb b/app/models/communication/website/page/accessibility.rb index d88be5e4003cbf1badef05c564053f3e0c597655..d9217a714fe93cb9e0162eed78cb4790b0116f89 100644 --- a/app/models/communication/website/page/accessibility.rb +++ b/app/models/communication/website/page/accessibility.rb @@ -121,11 +121,4 @@ class Communication::Website::Page::Accessibility < Communication::Website::Page }) end - def generate_heading(title) - headings.create(university: university, title: title) - end - - def generate_block(heading, kind, data) - blocks.create(university: university, heading: heading, template_kind: kind, data: data.to_json) - end end diff --git a/app/models/communication/website/page/with_type.rb b/app/models/communication/website/page/with_type.rb index 9be49421097baed6b5c38826ed99c04d3a5346ad..c60722771519df44324689112b0b490e2e23d521 100644 --- a/app/models/communication/website/page/with_type.rb +++ b/app/models/communication/website/page/with_type.rb @@ -103,4 +103,12 @@ module Communication::Website::Page::WithType self.published = published_by_default? end + def generate_heading(title) + headings.create(university: university, title: title) + end + + def generate_block(heading, kind, data) + blocks.create(university: university, heading: heading, template_kind: kind, data: data.to_json) + end + end diff --git a/app/views/admin/communication/websites/pages/show/special_pages/_accessibility.html.erb b/app/views/admin/communication/websites/pages/show/special_pages/_accessibility.html.erb index 5bb3140f3ffd1407ba1913db1e9ee1209f2b7981..98a4b1ed4ed640e85d68e378dfe1c163c8f07192 100644 --- a/app/views/admin/communication/websites/pages/show/special_pages/_accessibility.html.erb +++ b/app/views/admin/communication/websites/pages/show/special_pages/_accessibility.html.erb @@ -3,4 +3,5 @@ generate_admin_communication_website_page_path(about), method: :post, class: button_classes %> + <p class="mt-1">Ce modèle est conforme au droit français</p> <% end %> \ No newline at end of file