2011-03-31 00:10:23 +01:00
|
|
|
#block-signup.block
|
|
|
|
%h2= t("devise.registrations.sign_up_header")
|
2011-10-11 21:56:51 +01:00
|
|
|
.content
|
|
|
|
= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :class => "form" }) do |f|
|
|
|
|
- if resource.errors.present?
|
|
|
|
.flash
|
2011-10-13 11:19:42 +01:00
|
|
|
.message.error= resource.errors.full_messages.map { |msg| content_tag(:p, msg) }.join.html_safe
|
2011-03-31 00:10:23 +01:00
|
|
|
|
2011-10-11 21:56:51 +01:00
|
|
|
.group.wat-cf
|
|
|
|
.left
|
2011-10-20 15:05:06 +01:00
|
|
|
= f.label :uname, :class => "label"
|
2011-10-11 21:56:51 +01:00
|
|
|
.right
|
2011-10-20 15:05:06 +01:00
|
|
|
= f.text_field :uname, :class => "text_field"
|
2011-10-11 21:56:51 +01:00
|
|
|
|
|
|
|
.group.wat-cf
|
|
|
|
.left
|
|
|
|
= f.label :email, :class => "label"
|
|
|
|
.right
|
|
|
|
= f.text_field :email, :class => "text_field"
|
|
|
|
|
|
|
|
.group.wat-cf
|
|
|
|
.left
|
|
|
|
= f.label :name, :class => "label"
|
|
|
|
.right
|
|
|
|
= f.text_field :name, :class => "text_field"
|
2011-03-31 00:10:23 +01:00
|
|
|
|
2011-10-11 21:56:51 +01:00
|
|
|
- if resource.authentications.blank?
|
2011-03-31 00:10:23 +01:00
|
|
|
.group.wat-cf
|
|
|
|
.left
|
|
|
|
= f.label :password, :class => "label"
|
|
|
|
.right
|
|
|
|
= f.password_field :password, :class => "text_field"
|
|
|
|
|
|
|
|
.group.wat-cf
|
|
|
|
.left
|
|
|
|
= f.label :password_confirmation, :class => "label"
|
|
|
|
.right
|
|
|
|
= f.password_field :password_confirmation, :class => "text_field"
|
|
|
|
|
2011-10-11 21:56:51 +01:00
|
|
|
.group.navform.wat-cf
|
|
|
|
%button.button{ :type => "submit" }
|
|
|
|
#{image_tag("web-app-theme/icons/tick.png", :alt => t("devise.registrations.sign_up_header"))} #{t("devise.registrations.sign_up_header")}
|
|
|
|
%span.text_button_padding
|
|
|
|
= render :partial => "devise/shared/links"
|