mirror of
https://github.com/docusealco/docuseal
synced 2026-11-09 07:42:32 -05:00
add subfolders
This commit is contained in:
1 parent
69d63ecffe
commit
ec944a2283
35 files changed
+431
-109
No files matched your search
@@ -6,7 +6,9 @@ class TemplatesFoldersController < ApplicationController
|
||||
def edit; end
|
||||
|
||||
def update
|
||||
@template.folder = TemplateFolders.find_or_create_by_name(current_user, params[:name])
|
||||
name = [params[:parent_name], params[:name]].compact_blank.join(' / ')
|
||||
|
||||
@template.folder = TemplateFolders.find_or_create_by_name(current_user, name)
|
||||
|
||||
if @template.save
|
||||
redirect_back(fallback_location: template_path(@template), notice: I18n.t('document_template_has_been_moved'))
|
||||
|
||||
Reference in new issue
Block a user