Add type param to support form

This commit is contained in:
Paul Chavard 2018-08-29 13:58:28 +01:00
parent 74ddce8705
commit f5579aa14b
2 changed files with 2 additions and 1 deletions

View file

@ -26,6 +26,7 @@ class SupportController < ApplicationController
def setup_context
@dossier_id = dossier&.id
@type = params[:type]
@tags = params[:tags]
@options = Helpscout::FormAdapter::OPTIONS
end

View file

@ -20,7 +20,7 @@
= label_tag :type do
Votre problème
%span.mandatory *
= select_tag :type, options_for_select(@options)
= select_tag :type, options_for_select(@options, @type)
.contact-champ
= label_tag :dossier_id, 'Numéro du dossier concerné'