Skip to content

Commit

Permalink
Ne pas proposer le service "Secrétariat" dans le formulaire de motif (#…
Browse files Browse the repository at this point in the history
…4207)

Un motif n'est jamais lié à ce service, cf. `Motif#not_associated_with_secretariat`
  • Loading branch information
francois-ferrandis committed Mar 27, 2024
1 parent ac76cfb commit ad5c893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/admin/motifs/_form.html.slim
Expand Up @@ -7,7 +7,7 @@
h5.card-title Configuration générale
.form-row
.col-md-6
= f.association :service, collection: current_territory.services, input_html: { \
= f.association :service, collection: current_territory.services.reject(&:secretariat?), input_html: { \
class: "select2-input", \
data: { \
placeholder: "Sélectionnez un service", \
Expand Down

0 comments on commit ad5c893

Please sign in to comment.