diff options
author | adityacp | 2016-04-18 19:09:22 +0530 |
---|---|---|
committer | adityacp | 2016-04-18 19:09:22 +0530 |
commit | 975e74ab737cfc5d9c5375931170cdc9ecb75b40 (patch) | |
tree | 1f921641f7a595c8c0be13310035f33c23e15202 /yaksh/templates | |
parent | 09e77a6065f019fe9b9d00fbedce2c11188e4589 (diff) | |
download | online_test-975e74ab737cfc5d9c5375931170cdc9ecb75b40.tar.gz online_test-975e74ab737cfc5d9c5375931170cdc9ecb75b40.tar.bz2 online_test-975e74ab737cfc5d9c5375931170cdc9ecb75b40.zip |
changes for profile edit
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/manage.html | 4 | ||||
-rw-r--r-- | yaksh/templates/user.html | 4 | ||||
-rw-r--r-- | yaksh/templates/yaksh/editprofile.html | 8 | ||||
-rw-r--r-- | yaksh/templates/yaksh/view_profile.html | 2 |
4 files changed, 10 insertions, 8 deletions
diff --git a/yaksh/templates/manage.html b/yaksh/templates/manage.html index a10291b..a4564f9 100644 --- a/yaksh/templates/manage.html +++ b/yaksh/templates/manage.html @@ -10,7 +10,7 @@ <meta name="description" content=""> <meta name="author" content=""> {% endblock %} - + <link rel="stylesheet" href="{{ URL_ROOT }}/static/yaksh/css/base.css" type="text/css" /> <link rel="stylesheet" href="{{ URL_ROOT }}/static/yaksh/css/manage.css" type="text/css" /> {% block css %} @@ -30,7 +30,7 @@ <li><a href="{{ URL_ROOT }}/exam/manage/gradeuser">Grade User</a></li> <li><a href="{{ URL_ROOT }}/exam/manage/monitor">Monitor</a></li> <li><a href="{{ URL_ROOT }}/exam/manage/courses">Courses</a></li> -<li><a href="{{ URL_ROOT }}/exam/manage/viewprofile">My Profile</a></li> +<li><a href="{{ URL_ROOT }}/exam/viewprofile">My Profile</a></li> <li><a href="{{ URL_ROOT }}/exam/changepassword">Change Password</a></li> </ul> <ul style="float:right;"> diff --git a/yaksh/templates/user.html b/yaksh/templates/user.html index 936601e..4074656 100644 --- a/yaksh/templates/user.html +++ b/yaksh/templates/user.html @@ -13,8 +13,8 @@ <meta name="description" content=""> <meta name="author" content=""> {% endblock %} - - <link rel="stylesheet" href="{{ URL_ROOT }}/static/yaksh/css/base.css" type="text/css" /> + + <link rel="stylesheet" href="{{ URL_ROOT }}/static/yaksh/css/base.css" type="text/css" /> {% block css %} {% endblock %} diff --git a/yaksh/templates/yaksh/editprofile.html b/yaksh/templates/yaksh/editprofile.html index f04f8fb..75be563 100644 --- a/yaksh/templates/yaksh/editprofile.html +++ b/yaksh/templates/yaksh/editprofile.html @@ -6,8 +6,10 @@ {% block formtitle %} Please fill in the following details {% endblock %} {% block content %} - -<form action="" method="post" > +{% if msg %} +<center><h5>Your profile does not exist. Please fill in your details</h5></center> +{% endif %} +<form action="{{URL_ROOT}}/exam/editprofile/" method="post" > {% csrf_token %} <center> <table class=span1> @@ -15,7 +17,7 @@ </table> </center> <center><button class="btn" type="submit">Save</button> - <button class="btn" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/viewprofile");'>Cancel</button> </center> + <button class="btn" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/exam/");'>Cancel</button> </center> </form> {% endblock content %} diff --git a/yaksh/templates/yaksh/view_profile.html b/yaksh/templates/yaksh/view_profile.html index 3233510..69dac5a 100644 --- a/yaksh/templates/yaksh/view_profile.html +++ b/yaksh/templates/yaksh/view_profile.html @@ -9,7 +9,7 @@ {% endblock %} {% block content %} <ul> - <a href="{{ URL_ROOT }}/exam/manage/editprofile">Edit Profile</a> + <a href="{{ URL_ROOT }}/exam/editprofile/">Edit Profile</a> <a href="{{ URL_ROOT }}/exam/">Back to Home</a> </ul> <div class="span14"> |