Add type param to support form
This commit is contained in:
parent
74ddce8705
commit
f5579aa14b
2 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@ class SupportController < ApplicationController
|
||||||
|
|
||||||
def setup_context
|
def setup_context
|
||||||
@dossier_id = dossier&.id
|
@dossier_id = dossier&.id
|
||||||
|
@type = params[:type]
|
||||||
@tags = params[:tags]
|
@tags = params[:tags]
|
||||||
@options = Helpscout::FormAdapter::OPTIONS
|
@options = Helpscout::FormAdapter::OPTIONS
|
||||||
end
|
end
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
= label_tag :type do
|
= label_tag :type do
|
||||||
Votre problème
|
Votre problème
|
||||||
%span.mandatory *
|
%span.mandatory *
|
||||||
= select_tag :type, options_for_select(@options)
|
= select_tag :type, options_for_select(@options, @type)
|
||||||
|
|
||||||
.contact-champ
|
.contact-champ
|
||||||
= label_tag :dossier_id, 'Numéro du dossier concerné'
|
= label_tag :dossier_id, 'Numéro du dossier concerné'
|
||||||
|
|
Loading…
Add table
Reference in a new issue