forked from ryanb/nifty-generators
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding edit profile page to nifty:authentication - closes ryanb#54
- Loading branch information
Showing
14 changed files
with
176 additions
and
50 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
20 changes: 20 additions & 0 deletions
20
lib/generators/nifty/authentication/templates/views/erb/_form.html.erb
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,20 @@ | ||
<%%= form_for @<%= user_singular_name %> do |f| %> | ||
<%%= f.error_messages %> | ||
<p> | ||
<%%= f.label :username %><br /> | ||
<%%= f.text_field :username %> | ||
</p> | ||
<p> | ||
<%%= f.label :email, "Email Address" %><br /> | ||
<%%= f.text_field :email %> | ||
</p> | ||
<p> | ||
<%%= f.label :password %><br /> | ||
<%%= f.password_field :password %> | ||
</p> | ||
<p> | ||
<%%= f.label :password_confirmation, "Confirm Password" %><br /> | ||
<%%= f.password_field :password_confirmation %> | ||
</p> | ||
<p><%%= f.submit (@<%= user_singular_name %>.new_record? ? "Sign up" : "Update") %></p> | ||
<%% end %> |
3 changes: 3 additions & 0 deletions
3
lib/generators/nifty/authentication/templates/views/erb/edit.html.erb
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,3 @@ | ||
<%% title "Update Profile" %> | ||
|
||
<%%= render 'form' %> |
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
20 changes: 20 additions & 0 deletions
20
lib/generators/nifty/authentication/templates/views/haml/_form.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,20 @@ | ||
- 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 :password | ||
%p | ||
= f.label :password_confirmation, "Confirm Password" | ||
%br | ||
= f.password_field :password_confirmation | ||
%p | ||
= f.submit (@<%= user_singular_name %>.new_record? ? "Sign up" : "Update") |
3 changes: 3 additions & 0 deletions
3
lib/generators/nifty/authentication/templates/views/haml/edit.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,3 @@ | ||
- title "Sign up" | ||
|
||
= render 'form' |
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