-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c49c76e
commit ed473e0
Showing
9 changed files
with
474 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,45 @@ | ||
= javascript_include_tag "validation" | ||
= javascript_tag "Diaspora.Page = 'InvitationsEdit';" | ||
|
||
:javascript | ||
$(function() { | ||
$("#user_username").focus(); | ||
}); | ||
|
||
.span-7.append-1.prepend-3 | ||
%br | ||
%br | ||
%br | ||
%br | ||
%h2 | ||
= t('.your_account_awaits') | ||
%h1 | ||
= t('users.getting_started.welcome') | ||
%h3.accept_invitation_text | ||
= t('.accept_your_invitation') | ||
- flash.each do |name, msg| | ||
%p{:class => "login_#{name}"}= msg | ||
|
||
= image_tag 'diaspora_collage.png', :style => "margin-left:-50px;" | ||
|
||
.span-10 | ||
%br | ||
%br | ||
%br | ||
%br | ||
= form_for(resource, :as => resource_name, :url => invitation_path(resource_name), :html => {:method => :put, :class => 'accept_invitation_form'}) do |f| | ||
%p | ||
= f.label :username , t('username') | ||
= f.text_field :username, :title => t('registrations.new.enter_username') | ||
%p | ||
= f.label :email , t('email') | ||
= f.email_field :email, :title => t('registrations.new.enter_email') | ||
%p | ||
= f.label :password , t('password') | ||
= f.password_field :password, :title => t('registrations.new.enter_password') | ||
%p | ||
= f.label :password_confirmation , t('password_confirmation') | ||
= f.password_field :password_confirmation, :title => t('registrations.new.enter_password_again') | ||
= f.hidden_field :invitation_token | ||
= form_for(resource, :as => resource_name, :url => invitation_path(resource_name), :html => {:method => :put, :class => 'accept_invitation_form'}, :validate => true) do |f| | ||
%fieldset | ||
.clearfix | ||
%b | ||
= t('username') | ||
= f.text_field :username, :title => t('registrations.new.enter_username') | ||
.clearfix | ||
%b | ||
= t('email') | ||
= f.email_field :email, :title => t('registrations.new.enter_email') | ||
.clearfix | ||
%b | ||
= t('password') | ||
= f.password_field :password, :title => t('registrations.new.enter_password') | ||
.clearfix | ||
%b | ||
= t('password_confirmation') | ||
= f.password_field :password_confirmation, :title => t('registrations.new.enter_password_again') | ||
= f.hidden_field :invitation_token | ||
|
||
.submit_field | ||
= f.submit t('registrations.new.create_my_account') | ||
.submit_field | ||
= f.submit t('registrations.new.create_my_account'), :class => 'in_aspects' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# ClientSideValidations Initializer | ||
|
||
#require 'client_side_validations/simple_form' if defined?(::SimpleForm) | ||
#require 'client_side_validations/formtastic' if defined?(::Formtastic) | ||
|
||
# Uncomment the following block if you want each input field to have the validation messages attached. | ||
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance| | ||
unless html_tag =~ /^<label/ | ||
%{<div class="field_with_errors">#{html_tag}<label for="#{instance.send(:tag_id)}" class="message">#{instance.error_message.first}</label></div>}.html_safe | ||
else | ||
%{<div class="field_with_errors">#{html_tag}</div>}.html_safe | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.