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
|
||||
@dossier_id = dossier&.id
|
||||
@type = params[:type]
|
||||
@tags = params[:tags]
|
||||
@options = Helpscout::FormAdapter::OPTIONS
|
||||
end
|
||||
|
|
|
@ -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é'
|
||||
|
|
Loading…
Add table
Reference in a new issue