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