%= form_remote_tag build_widget_url(:new), :class => "form-signin" do %>
Enter your name
<%= text_field_tag :first_name, nil, :class => "form-control", :placeholder => "First Name", :required => true %>
<%= text_field_tag :last_name, nil, :class => "form-control", :placeholder => "Last Name", :required => true %>
Email
<%= text_field_tag :email, params[:email], :class => "form-control", :placeholder => "Enter a valid email address", :required => true, :type => 'email' %>
Create a user name to log on to the system
<%= text_field_tag :username, params[:username], :class => "form-control", :placeholder => "Enter a username", :required => true %>
Enter a password
<%= password_field_tag :password, nil, :class => "form-control", :placeholder => "", :required => true %>
Password must be between 8 and 20 characters with no spaces
Confirm your password
<%= password_field_tag :password_confirmation, nil, :class => "form-control", :placeholder => "", :required => true %>
<%= submit_tag "Sign up", :disable_with => "Please wait...", :class => "btn btn-primary submit", :style => ''%>
<% end %>