<h2>Custom User key</h2>

<p id="invalid-key-warning" style="display:none;">&nbsp;</p>

<%= semantic_form_for @cinstance, :url => provider_admin_application_key_path(@cinstance, @cinstance.user_key), remote: true do |form| %>
  <%= form.inputs do %>
    <%= form.input :user_key, :label => 'Custom User Key', :input_html => {:size => 100, :value => ''} %>
  <% end %>

  <div class='button-bar'>
    <%= form.buttons do %>
      <%= link_to 'Cancel', "#", :class => 'fancybox-close less-important-button' %>
    <% end %>
    <%= form.buttons do %>
      <%= form.commit_button 'Set Custom Key' %>
    <% end %>
  </div>
<% end %>
