-
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.
Implemented the edit_profile feature and associated templates.
- Loading branch information
1 parent
e9421bc
commit 6f6593f
Showing
7 changed files
with
102 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% extends "message.html" %} | ||
|
||
{% block msg-title %}Edit Successful{% endblock %} | ||
{% block msg-text %}You've successfully edited your profile information. Now, | ||
why don't you see how it's looking at | ||
<a href="{% url signup.views.profile user.username %}">{% url signup.views.profile user.username %}</a> | ||
{% endblock %} |
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 @@ | ||
{% extends "generic-form.html" %} | ||
{% block extra-css %} | ||
.form_fields { | ||
margin:5px 5px; | ||
width:95%; | ||
} | ||
#id_about_me { | ||
margin:0 0; | ||
padding:0 0; | ||
width:180px; | ||
height:80px; | ||
} | ||
|
||
@media screen and (min-width:301px) { | ||
.column { | ||
width:100%; | ||
} | ||
|
||
} | ||
{% endblock %} | ||
|
||
|
||
{% block extra-content %} | ||
<p>Change your password <a href="{% url signup.views.edit_password %}">here</a>.</p> | ||
{% endblock %} |
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 |
---|---|---|
@@ -1,10 +1,16 @@ | ||
{% extends "layout.html" %} | ||
{% block post-css %} | ||
<style type="text/css"> | ||
|
||
</style> | ||
{% endblock %} | ||
|
||
{% block main %} | ||
|
||
|
||
<h1 class="name">{{ p_user.get_full_name }}</h1> | ||
<h1 class="title">{{ p_user.get_full_name }}</h1> | ||
<img class="profile_pic" src="{{ p_user.get_profile.pic.url }}" alt="{{ p_user.get_full_name }}" /> | ||
<div class="blurb">{{ p_user.get_profile.blurb }}</div> | ||
<div class="about_me">{{ p_user.get_profile.about_me }}</div> | ||
<a class="edit" href="{% url signup.views.edit_profile %}">Edit Profile</a> | ||
|
||
{% endblock %} |
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