|
|
@@ -65,9 +65,8 @@
|
65
|
65
|
<div class="can-control-other-agents">
|
66
|
66
|
<div class="form-group">
|
67
|
67
|
<%= f.label :control_targets %>
|
68
|
|
- <% eventControlTargets = current_user.agents.select(&:can_be_scheduled?) %>
|
69
|
68
|
<%= f.select(:control_target_ids,
|
70
|
|
- options_for_select(eventControlTargets.map {|s| [s.name, s.id] },
|
|
69
|
+ options_for_select(current_user.agents.map {|s| [s.name, s.id] },
|
71
|
70
|
@agent.control_target_ids),
|
72
|
71
|
{}, { multiple: true, size: 5, class: 'select2 form-control' }) %>
|
73
|
72
|
</div>
|