% if @agent.try(:oauthable?) %>
<%= 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' %>
<% end %>