<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => {:class => 'form-horizontal'}) do |f| %> <%= devise_error_messages! %>
<%= f.label :username, :class => 'control-label' %>
<%= f.text_field :username, :autofocus => true %>
<%= f.label :email, :class => 'control-label' %>
<%= f.email_field :email %>
<%= f.label :password, :class => 'control-label' %>
<%= f.password_field :password %>
<%= f.label :password_confirmation, :class => 'control-label' %>
<%= f.password_field :password_confirmation %>
<%= f.submit "Sign up", :class => 'btn btn-primary' %> <%= link_to t('.cancel', :default => t("helpers.links.cancel")), :back, :class => 'btn' %>
<% end %> <%= render "devise/shared/links" %>