<%= form_tag update_plugin_configuration_path, :class => 'form-horizontal' do %>
<%= label_tag :account_id, 'Account ID', :class => 'col-sm-2 control-label', :data => {:toggle=>"popover", :trigger=> "hover", :content=> "Your AvaTax account number"} %>
<%= text_field_tag :account_id, @configuration[:account_id], :class => 'form-control', :required => true %>
<%= label_tag :license_key, 'License key', :class => 'col-sm-2 control-label', :data => {:toggle=>"popover", :trigger=> "hover", :content=> "Your AvaTax license key"} %>
<%= text_field_tag :license_key, @configuration[:license_key], :class => 'form-control', :required => true %>
<%= label_tag :company_code, 'Company code', :class => 'col-sm-2 control-label', :data => {:toggle=>"popover", :trigger=> "hover", :content=> "Your company code"} %>
<%= text_field_tag :company_code, @configuration[:company_code], :class => 'form-control', :required => true %>
<%= label_tag :commit_documents, 'Commit documents', :class => 'control-label' do %> <%= check_box_tag :commit_documents, '1', @configuration[:commit_documents] %>Commit documents? <% end %>
<%= submit_tag 'Save', :class => 'btn btn-default' %>
<% end %> <%= javascript_tag do %> $(function () { $('[data-toggle="popover"]').popover() }) <% end %>