aboutsummaryrefslogtreecommitdiff
path: root/app/views/application/_current_agent_switch.html.erb
blob: f19f26b533b82853acb51ed8428c71738b847555 (plain)
1
2
3
4
<%= form_for current_agent, url: '/my/current_agent', method: :patch do |f| %>
    <%= f.select(:id, options_for_select(current_user.agents.map { |a| [a.name, a.id] }, selected: current_agent.id), title: "Sélectionner l'agent en cours") %>
    <%= f.submit(" » ", title: "Activer cet Agent") %>
<% end %>