-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixes #68 via user.skip_reconfirmation! Updates registrations_controller and confirmations_controller to match devise API, Adds devise-inivitable to test application; adds sign-up form to test application * Adds instructions for manually running test application * Updates bundle * Adds links to README
- Loading branch information
Showing
20 changed files
with
244 additions
and
43 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
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
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
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
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,50 @@ | ||
%div.authform | ||
%h1 Simple Milia App | ||
.block#block-signup | ||
%h2 New Organizational Sign up | ||
.content | ||
%span.description | ||
%i | ||
If you're a member of an existing group in our system, | ||
click the activate link in the invitation email from your organization's admin. | ||
You should not sign up for a new organizational account. | ||
%br | ||
.flash | ||
- flash.each do |type, message| | ||
%div{ :class => "message #{type}" } | ||
%p= message | ||
- flash.clear # clear contents so we won't see it again | ||
|
||
= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :class => "form" }) do |f| | ||
= devise_error_messages! | ||
.group | ||
= f.label :email, :class => "label" | ||
= f.text_field :email, :class => "text_field" | ||
%span.description Ex. [email protected] | ||
.group | ||
= f.label :password, :class => "label" | ||
= f.password_field :password, :class => "text_field" | ||
%span.description must be at least 8 characters | ||
.group | ||
= f.label :password_confirmation, "Re-enter Password", :class => "label" | ||
= f.password_field :password_confirmation, :class => "text_field" | ||
%span.description to confirm your password | ||
|
||
.group | ||
= fields_for( :tenant ) do |w| | ||
= w.label( :name, 'Organization', :class => "label" ) | ||
= w.text_field( :name, :class => "text_field") | ||
%span.description unique name for your group or organization for the new account | ||
|
||
- if ::Milia.use_coupon | ||
- @coupon ||= {} | ||
.group | ||
= label_tag( 'coupon', 'Coupon code', :class => "label" ) | ||
= text_field_tag( "coupon[coupon]", @coupon['coupon'].to_s, :size => 8, :class => "text_field" ) | ||
%span.description optional promotional code, if any | ||
|
||
.group.navform.wat-cf | ||
%button.button{ :type => "submit" } | ||
Sign up | ||
= render :partial => "devise/shared/links" | ||
|
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,4 @@ | ||
# This file is used by Rack-based servers to start the application. | ||
|
||
require ::File.expand_path('../config/environment', __FILE__) | ||
run Rails.application |
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
Oops, something went wrong.