add link to export

This commit is contained in:
Pete Matsyburka committed 2024-11-14 20:04:51 +02:00
1 parent 21bf5ed9f7
commit a7affb1a49
1 file changed
+8
+8
View File
@@ -110,6 +110,10 @@ module Submissions
{
name: column_name(I18n.t('completed_at'), submitter_name, submitters_count),
value: submitter.completed_at.to_s
},
{
name: column_name(I18n.t('link'), submitter_name, submitters_count),
value: submitter.completed_at? ? nil : r.submit_form_url(slug: submitter.slug, **Docuseal.default_url_options)
}
].reject { |e| e[:value].blank? }
end
@@ -150,5 +154,9 @@ module Submissions
{ name: template_field_name, uuid: template_field['uuid'], value: }
end
end
def r
Rails.application.routes.url_helpers
end
end
end