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

wip

parent 9bfe18dd
No related branches found
No related tags found
No related merge requests found
......@@ -58,8 +58,8 @@ class Admin::Communication::Websites::PagesController < Admin::Communication::We
redirect_back(fallback_location: [:admin, @object])
end
def generate
@page.generate
def generate_from_template
@page.generate_from_template
redirect_back(fallback_location: [:admin, @page])
end
......
......@@ -52,7 +52,7 @@ class Communication::Website::Page::Accessibility < Communication::Website::Page
false
end
def generate
def generate_from_template
generate_declaration
generate_results
generate_conformity
......
......@@ -85,6 +85,9 @@ module Communication::Website::Page::WithType
nil
end
def generate_from_template
end
protected
def default_parent
......
......@@ -25,7 +25,7 @@ namespace :communication do
post :duplicate
post :connect
post :disconnect
post :generate
post 'generate-from-template' => 'websites/pages#generate_from_template', as: :generate
end
end
resources :categories, controller: 'websites/categories', path: '/:lang/categories' do
......
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