diff options
author | hellekin <hellekin@cepheide.org> | 2020-11-12 01:10:28 +0100 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2020-11-12 01:10:28 +0100 |
commit | 8d9387cf64929b6467b6ba52f22ca0aa5ed35782 (patch) | |
tree | 37533e75476680ebad4cd1d47e3e578b879726ba /app/views/application/_current_agent_switch.html.erb | |
parent | b6aeac4d9274f17e748efb3715aa08f4b7c361f2 (diff) | |
parent | 757decefafb5d82557a8b7fa9691f94f19c3207e (diff) | |
download | incommon-map-8d9387cf64929b6467b6ba52f22ca0aa5ed35782.tar.gz |
Merged master
Diffstat (limited to 'app/views/application/_current_agent_switch.html.erb')
-rw-r--r-- | app/views/application/_current_agent_switch.html.erb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/application/_current_agent_switch.html.erb b/app/views/application/_current_agent_switch.html.erb new file mode 100644 index 0000000..f19f26b --- /dev/null +++ b/app/views/application/_current_agent_switch.html.erb @@ -0,0 +1,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 %> |