summaryrefslogtreecommitdiff
path: root/tbc/templates
diff options
context:
space:
mode:
authorhardythe12015-02-23 15:03:45 +0530
committerhardythe12015-02-23 15:03:45 +0530
commit09bd0ebbf3e3f4ce37cd7603ebffe696185ade37 (patch)
tree41aaf30a27f13a9fc01fe1cb82c40181c4c232ab /tbc/templates
parentd4e10771325fe68148f64bacb67868a99be0c4b0 (diff)
downloadPython-TBC-Interface-09bd0ebbf3e3f4ce37cd7603ebffe696185ade37.tar.gz
Python-TBC-Interface-09bd0ebbf3e3f4ce37cd7603ebffe696185ade37.tar.bz2
Python-TBC-Interface-09bd0ebbf3e3f4ce37cd7603ebffe696185ade37.zip
added upate profile feature
Diffstat (limited to 'tbc/templates')
-rwxr-xr-xtbc/templates/base.html3
-rw-r--r--tbc/templates/tbc/profile.html3
2 files changed, 5 insertions, 1 deletions
diff --git a/tbc/templates/base.html b/tbc/templates/base.html
index 9e7ae28..d4c3a9e 100755
--- a/tbc/templates/base.html
+++ b/tbc/templates/base.html
@@ -131,11 +131,11 @@
<li><a href="{% url 'tbc:SubmitSample' %}">Submit Sample Notebook</a></li>
<li><a href="{% url 'tbc:ConfirmBookDetails' %}">Submit Codes</a></li>
<li><a href="{% url 'tbc:GetCertificate' %}">Get Certificate</a></li>
+ <li><a href="{% url 'tbc:UpdateProfile' %}">Update Profile</a></li>
<li><a href="{% url 'tbc:UpdatePassword' %}">Update Password</a></li>
<li><a href="{% url 'tbc:UserLogout' %}">Logout</a></li>
</ul>
</li>
-
{% else %}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ user.first_name }}<b class="caret"></b></a>
@@ -145,6 +145,7 @@
<li><a href="{% url 'tbc:SubmitSample' %}">Submit Sample Notebook</a></li>
<li><a href="{% url 'tbc:ConfirmBookDetails' %}">Submit Codes</a></li>
<li><a href="{% url 'tbc:GetCertificate' %}">Get Certificate</a></li>
+ <li><a href="{% url 'tbc:UpdateProfile' %}">Update Profile</a></li>
<li><a href="{% url 'tbc:UpdatePassword' %}">Update Password</a></li>
<li><a href="{% url 'tbc:UserLogout' %}">Logout</a></li>
</ul>
diff --git a/tbc/templates/tbc/profile.html b/tbc/templates/tbc/profile.html
index d7a1b56..e6f706a 100644
--- a/tbc/templates/tbc/profile.html
+++ b/tbc/templates/tbc/profile.html
@@ -10,9 +10,12 @@
<div class="clearfix"></div>
{% endif %}
<div id="content-wrap" style="max-width:600px;">
+ <h3>Update Your Profile</h3>
+ <hr>
<form action="/profile/" method=POST>
{% csrf_token %}
{{ form.as_p }}
+ {{ form.errors }}
<br>
<input class="btn btn-primary" type=submit value=submit>
</form>