mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 14:42:33 -05:00
add signed option in filename
This commit is contained in:
1 parent
f1cd60dfad
commit
b0aabd9e79
3 files changed
+19
-1
No files matched your search
@@ -123,6 +123,18 @@ module Submitters
|
||||
filename = ReplaceEmailVariables.call(filename_format, submitter:)
|
||||
|
||||
filename = filename.gsub('{document.name}', blob.filename.base)
|
||||
filename = filename.gsub(' - {submission.status}') do
|
||||
if submitter.submission.submitters.all?(&:completed_at?)
|
||||
status =
|
||||
if submitter.submission.template_fields.any? { |f| f['type'] == 'signature' }
|
||||
I18n.t(:signed)
|
||||
else
|
||||
I18n.t(:completed)
|
||||
end
|
||||
|
||||
" - #{status}"
|
||||
end
|
||||
end
|
||||
|
||||
filename = filename.gsub(
|
||||
'{submission.completed_at}',
|
||||
|
||||
Reference in new issue
Block a user