-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c2084e
commit f6fcd3d
Showing
9 changed files
with
220 additions
and
17 deletions.
There are no files selected for viewing
Binary file not shown.
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,59 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<title>Edit Profile </title> | ||
<link rel="stylesheet" href={{ url_for('static', filename='css/editProfile.css') }} /> | ||
<link rel="stylesheet" href={{ url_for('static', filename='css/topStyle.css') }} /> | ||
</head> | ||
<body> | ||
<div id="title"> | ||
<a href="/"> | ||
<img id="logo" src= {{ url_for('static', filename='images/logo.png') }} /> | ||
</a> | ||
<form> | ||
<input id="searchBox" type="text" name="searchQuery"> | ||
<input id="searchButton" type="submit" value="Search"> | ||
</form> | ||
|
||
{% if not loggedIn %} | ||
<div id="signInButton"> | ||
<a class="link" href="/loginForm">Sign In</a> | ||
</div> | ||
{% else %} | ||
<div class="dropdown"> | ||
<button class="dropbtn">Hello, <br>{{firstName}}</button> | ||
<div class="dropdown-content"> | ||
<a href="/account/orders">Your orders</a> | ||
<a href="/account/profile">Your profile</a> | ||
<hr> | ||
<a href="/logout">Sign Out</a> | ||
</div> | ||
</div> | ||
{% endif %} | ||
<div id="kart"> | ||
<a class="link" href="/cart"> | ||
<img src={{url_for('static', filename='images/shoppingCart.png')}} id="cartIcon" /> | ||
CART {{noOfItems}} | ||
</a> | ||
</div> | ||
</div> | ||
|
||
<div class="display"> | ||
<h2>Edit profile</h2> | ||
<form action="/updateProfile" method="POST"> | ||
<p>Email:<input type="email" name="email" value={{profileData[1]}} readonly="readonly"></p> | ||
<p>First Name:<input type="text" name="firstName" value={{profileData[2]}}></p> | ||
<p>Last Name: <input type="text" name="lastName" value={{profileData[3]}}></p> | ||
<p>Address 1: <input type="text" name="address1" value={{profileData[4]}}></p> | ||
<p>Address 2: <input type="text" name="address2" value={{profileData[5]}}></p> | ||
<p>Zip Code: <input type="text" name="zipcode" value={{profileData[6]}}></p> | ||
<p>City: <input type="text" name="city" value={{profileData[7]}}></p> | ||
<p>State: <input type="text" name="state" value={{profileData[8]}}></p> | ||
<p>Country: <input type="text" name="country" value={{profileData[9]}}></p> | ||
<p>Phone Number: <input type="text" name="phone" value={{profileData[10]}}></p> | ||
<input type="submit" value="Save"> | ||
</form> | ||
</div> | ||
</body> | ||
</html> | ||
|
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,48 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<title>Profile Home</title> | ||
<link rel="stylesheet" href={{ url_for('static', filename='css/profileHome.css') }} /> | ||
<link rel="stylesheet" href={{ url_for('static', filename='css/topStyle.css') }} /> | ||
</head> | ||
<body> | ||
<div id="title"> | ||
<a href="/"> | ||
<img id="logo" src= {{ url_for('static', filename='images/logo.png') }} /> | ||
</a> | ||
<form> | ||
<input id="searchBox" type="text" name="searchQuery"> | ||
<input id="searchButton" type="submit" value="Search"> | ||
</form> | ||
|
||
{% if not loggedIn %} | ||
<div id="signInButton"> | ||
<a class="link" href="/loginForm">Sign In</a> | ||
</div> | ||
{% else %} | ||
<div class="dropdown"> | ||
<button class="dropbtn">Hello, <br>{{firstName}}</button> | ||
<div class="dropdown-content"> | ||
<a href="/account/orders">Your orders</a> | ||
<a href="/account/profile">Your profile</a> | ||
<hr> | ||
<a href="/logout">Sign Out</a> | ||
</div> | ||
</div> | ||
{% endif %} | ||
<div id="kart"> | ||
<a class="link" href="/cart"> | ||
<img src={{url_for('static', filename='images/shoppingCart.png')}} id="cartIcon" /> | ||
CART {{noOfItems}} | ||
</a> | ||
</div> | ||
</div> | ||
|
||
<div class="display"> | ||
<a href="/account/profile/view">View Profile</a> | ||
<a href="/account/profile/edit">Edit Profile</a> | ||
<a href="/account/profile/changePassword">Change password</a> | ||
</div> | ||
</body> | ||
</html> | ||
|