Add default dossier_id to contact form on dossier pages

This commit is contained in:
Paul Chavard 2018-08-30 12:10:56 +01:00
parent a943856141
commit 7ac4dc355f
3 changed files with 10 additions and 3 deletions

View file

@ -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,