|
@@ -1,6 +1,6 @@
|
|
<% if @agent.try(:oauthable?) %>
|
|
<% if @agent.try(:oauthable?) %>
|
|
<div class="form-group type-select">
|
|
<div class="form-group type-select">
|
|
<%= label_tag :service %>
|
|
<%= label_tag :service %>
|
|
- <%= select_tag 'agent[service_id]', options_for_select(@agent.valid_services(current_user).collect { |s| ["(#{s.provider}) #{s.name}", s.id]}, @agent.service_id), class: 'form-control' %>
|
|
|
|
|
|
+ <%= select_tag 'agent[service_id]', options_for_select(@agent.valid_services_for(current_user).collect { |s| ["(#{s.provider}) #{s.name}", s.id]}, @agent.service_id), class: 'form-control' %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|