link to submission preview page in completed emails

This commit is contained in:
Pete Matsyburka
2023-11-20 00:52:05 +02:00
parent d130835902
commit 66d1ae2f64
12 changed files with 114 additions and 34 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ class AccountConfig < ApplicationRecord
'body' => "Hi there,\n\n" \
"Please check the copy of your \"{{template.name}}\" submission in the email attachments.\n" \
"Alternatively, you can download your copy using:\n\n" \
"{{documents.links}}\n\n" \
"{{documents.link}}\n\n" \
"Thanks,\n" \
'{{account.name}}'
}
+4
View File
@@ -6,6 +6,7 @@
#
# id :bigint not null, primary key
# deleted_at :datetime
# slug :string not null
# source :text not null
# submitters_order :string not null
# template_fields :text
@@ -19,6 +20,7 @@
# Indexes
#
# index_submissions_on_created_by_user_id (created_by_user_id)
# index_submissions_on_slug (slug) UNIQUE
# index_submissions_on_template_id (template_id)
#
# Foreign Keys
@@ -41,6 +43,8 @@ class Submission < ApplicationRecord
attribute :source, :string, default: 'link'
attribute :submitters_order, :string, default: 'random'
attribute :slug, :string, default: -> { SecureRandom.base58(14) }
has_one_attached :audit_trail
has_many :template_schema_documents,