mirror of
https://github.com/docusealco/docuseal
synced 2026-11-10 07:42:32 -05:00
add archived template and submission pages
This commit is contained in:
1 parent
3faec9d174
commit
7f6c0af0e8
15 files changed
+190
-66
No files matched your search
@@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class TemplatesRestoreController < ApplicationController
|
||||
def create
|
||||
template = current_account.templates.find(params[:template_id])
|
||||
|
||||
template.update!(deleted_at: nil)
|
||||
|
||||
redirect_to template_path(template), notice: 'Template has been unarchived'
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user