Add default dossier_id to contact form on dossier pages
This commit is contained in:
parent
a943856141
commit
7ac4dc355f
3 changed files with 10 additions and 3 deletions
|
@ -56,7 +56,11 @@ module ApplicationHelper
|
|||
|
||||
def contact_link(title, options = {})
|
||||
if Flipflop.support_form?
|
||||
params = { tags: options[:tags], type: options[:type] }.compact
|
||||
params = {
|
||||
tags: options[:tags],
|
||||
type: options[:type],
|
||||
dossier_id: options[:dossier_id]
|
||||
}.compact
|
||||
link_to title, contact_url(params), options
|
||||
else
|
||||
mail_to CONTACT_EMAIL, title,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue