add archived template and submission pages

This commit is contained in:
Alex Turchyn
2023-09-15 00:42:51 +03:00
parent 3faec9d174
commit 7f6c0af0e8
15 changed files with 190 additions and 66 deletions
+3
View File
@@ -48,7 +48,10 @@ Rails.application.routes.draw do
resources :submissions, only: %i[show destroy]
resources :console_redirect, only: %i[index]
resource :templates_upload, only: %i[create]
resources :templates_archived, only: %i[index], path: 'archived'
resources :templates, only: %i[new create edit show destroy] do
resources :restore, only: %i[create], controller: 'templates_restore'
resource :archived, only: %i[show], controller: 'templates_archived_submissions'
resources :submissions, only: %i[new create]
resources :submissions_export, only: %i[index new]
end