This repository has been archived by the owner on Jan 19, 2019. It is now read-only.
forked from Team254/cheesy-parts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Team254#9 from morops/user_prefs
Added user prefrences
- Loading branch information
Showing
4 changed files
with
44 additions
and
31 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 was deleted.
Oops, something went wrong.
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,29 @@ | ||
<%= erb :header %> | ||
|
||
<div class="container"> | ||
<h2>Edit Prefrences</h2> | ||
<form action="" method="POST"> | ||
<label>E-mail</label> | ||
<input type="text" name="email" value="<%= @user.email %>"/> | ||
<label>First Name</label> | ||
<input type="text" name="first_name" value="<%= @user.first_name %>"/> | ||
<label>Last Name</label> | ||
<input type="text" name="last_name" value="<%= @user.last_name %>"/> | ||
<label>Change Password</label> | ||
<input type="password" name="password" /> | ||
<label>Verify Password</label> | ||
<input type="password" name="password2" /> | ||
<label>Theme</label> | ||
<select name="theme"> | ||
<% User::THEMES.each_pair do |key, value| %> | ||
<option value=<%= key %><% if @user.theme == key %> selected<% end %>><%= value %></option> | ||
<% end %> | ||
</select> | ||
<label> | ||
<input type="submit" class="btn btn-primary btn-medium" value="Save" | ||
onclick="return verifyPasswordMatch(this.parentElement.parentElement);" /> | ||
</label> | ||
</form> | ||
</div> | ||
|
||
<%= erb :footer %> |