Skip to content

Commit

Permalink
Merge pull request #2024 from betagouv/masque-le-filtre-equipe-si-auc…
Browse files Browse the repository at this point in the history
…une-equipe

masque le filtre équipe si aucune équipe
  • Loading branch information
Yannick François authored and n-b committed Jan 19, 2022
2 parents d0b7561 + 24909c0 commit 6778e8d
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions app/views/admin/creneaux/agent_searches/index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,21 @@
.col-md-4
= date_input(f, :from_date, label = "À partir du", required: true)
.row
.col-md-4
= f.input :team_ids, collection: @teams, label: t(".teams"), label_method: :name, input_html: { \
multiple: true, \
class: "select2-input",\
data: {\
"select-options": {\
ajax: {\
url: search_admin_territory_teams_path(current_organisation.territory),
dataType: "json",
delay: 250\
- if @teams.any?
.col-md-4
= f.input :team_ids, collection: @teams, label: t(".teams"), label_method: :name, input_html: { \
multiple: true, \
class: "select2-input",\
data: {\
"select-options": {\
ajax: {\
url: search_admin_territory_teams_path(current_organisation.territory),
dataType: "json",
delay: 250\
}\
}\
}\
}\
}
}

.col-md-4
= f.input :agent_ids, collection: @agents, label: t(".agents"), label_method: :reverse_full_name, input_html: { \
Expand Down

0 comments on commit 6778e8d

Please sign in to comment.