.container - if resource.errors.any? .alert.alert-warning.fade.in{:role => "alert"} %button.close{"data-dismiss" => "alert", :type => "button"} %span{"aria-hidden" => "true"} × %span.sr-only Close %strong= pluralize(resource.errors.count, "Error") %ul - resource.errors.each do |attr,msg| %li = attr.to_s.humanize = msg.to_s.humanize = simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { role: 'form', class: "form-signin well" }) do |f| %h3.form-signin-heading.text-center Sign up %hr = f.input :name, input_html: {autofocus:"", placeholder: "Name", required: "", type: "name", class: 'form-control' } = f.input :email, input_html: { placeholder: "Email address", required: "", type: "email", class: 'form-control' } %div - if @validatable ( = @minimum_password_length characters minimum) %br = f.input :password, input_html: { :autocomplete => "off", placeholder: "Password", required: "", type: "password", class: 'form-control' } = f.input :password_confirmation, input_html: { :autocomplete => "off", placeholder: "Password confirmation", required: "", type: "password", class: 'form-control' } %hr = f.submit "Sign up", class: "btn btn-lg btn-primary btn-block" = render "admintgs/shared/links" %hr