%= form_for @device, html: { class: 'form-horizontal' } do |f| %>
<%= link_to edit_device_path(@device, driver_change: true), class: 'btn btn-danger btn-sm pull-right' do %> <%= t('.change_driver') %> <% end %> <%= @device.driver.class::NAME %>
<% else %> <%= f.select :driver_class, options_for_drivers, { include_blank: true }, class: 'form-control' %> <% if @device.driver.present? %> Driver change will destroy current driver configuration! <% end %> <% end %>