This repository has been archived by the owner on Dec 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nifty_authentication: adding haml support
- Loading branch information
Showing
4 changed files
with
56 additions
and
3 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
16 changes: 16 additions & 0 deletions
16
rails_generators/nifty_authentication/templates/views/haml/login.html.haml
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,16 @@ | ||
- title "Log in" | ||
|
||
%p | ||
Don't have an account? #{link_to "Sign up!", signup_path} | ||
|
||
- form_tag sessions_path do | ||
%p | ||
= label_tag :login, "Username or Email Address" | ||
%br | ||
= text_field_tag :login, params[:login] | ||
%p | ||
= label_tag :password | ||
%br | ||
= password_field_tag :password | ||
%p | ||
= submit_tag "Log in" |
25 changes: 25 additions & 0 deletions
25
rails_generators/nifty_authentication/templates/views/haml/signup.html.haml
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,25 @@ | ||
- title "Sign up" | ||
|
||
%p | ||
Already have an account? #{link_to "Log in", login_path}. | ||
|
||
- form_for @<%= user_singular_name %> do |f| | ||
= f.error_messages | ||
%p | ||
= f.label :username | ||
%br | ||
= f.text_field :username | ||
%p | ||
= f.label :email, "Email Address" | ||
%br | ||
= f.text_field :email | ||
%p | ||
= f.label :password | ||
%br | ||
= f.password_field :email | ||
%p | ||
= f.label :password_confirmation, "Confirm Password" | ||
%br | ||
= f.password_field :password_confirmation | ||
%p | ||
= f.submit "Sign up" |
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