-
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.
Change name and email works. Does not allow changing password if old …
…password is incorrect
- Loading branch information
1 parent
145e898
commit 1f3fc57
Showing
3 changed files
with
136 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 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,85 @@ | ||
<div class="modal fade" id="namemodal" tabindex="-1" role="dialog" aria-hidden="true"> | ||
<div class="modal-dialog" role="document"> | ||
<div class="modal-content"> | ||
|
||
<div class="modal-header"> | ||
<h5 class="modal-title">Change Name</h5> | ||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<form class="form-inline" action="/changename" method="post"> | ||
<div class="modal-body"> | ||
<div class="form-group"> | ||
<label for="firstname">New First Name:</label> | ||
<input type="text" class="form-control" id="firstname" name="firstname" required> | ||
</div> | ||
<div class="form-group"> | ||
<label for="lastname">New Last Name:</label> | ||
<input type="text" class="form-control" id="lastname" name="lastname" required> | ||
</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> | ||
<button type="submit" class="btn btn-primary">Save changes</button> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="modal fade" id="pwmodal" tabindex="-1" role="dialog" aria-hidden="true"> | ||
<div class="modal-dialog" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title" >Change Password</h5> | ||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<form class="form-inline" action="/changepw" method="post"> | ||
<div class="modal-body"> | ||
<div class="form-group"> | ||
<label for="oldpw">Old Password:</label> | ||
<input type="password" class="form-control" id="oldpw" name="oldpw" required> | ||
</div> | ||
<div class="form-group"> | ||
<label for="lastname">New Password:</label> | ||
<input type="password" class="form-control" id="newpw" name="newpw" required> | ||
</div> | ||
<div class="form-group"> | ||
<label for="newpw2">Re-enter New Password:</label> | ||
<input type="password" class="form-control" id="newpw2" name="newpw2" required> | ||
</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> | ||
<button type="submit" class="btn btn-primary">Save changes</button> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="modal fade" id="emailmodal" tabindex="-1" role="dialog" aria-hidden="true"> | ||
<div class="modal-dialog" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title">Change Email</h5> | ||
<button type="button" class="close align-right" data-dismiss="modal" aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<form class="form-inline" action="/changeemail" method="post"> | ||
<div class="modal-body"> | ||
<div class="form-group"> | ||
<label for="email">New Email:</label> | ||
<input type="email" class="form-control" id="email" name="email" required> | ||
</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> | ||
<button type="submit" class="btn btn-primary">Save changes</button> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> |
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