-
Notifications
You must be signed in to change notification settings - Fork 7
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
Showing
8 changed files
with
102 additions
and
92 deletions.
There are no files selected for viewing
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,27 @@ | ||
{%extends 'base.html'%} | ||
{%block head%}<title>Edit Profile Page</title>{%endblock%} | ||
{%block body%} | ||
<div align="center"> | ||
<form method="post"> | ||
<div class="container text-center"> | ||
<h2>Sign up</h2> | ||
<form method="post"> | ||
{% csrf_token %} | ||
{{ form.as_p }} | ||
<br> | ||
<button type="submit">Update</button> | ||
</form> | ||
<table align='center'> | ||
{% for field in form %} | ||
<tr> | ||
{% if field.name != 'password'%} | ||
<td>{{ field.label_tag }}</td><td>{{ field }}</td> | ||
|
||
{% for error in field.errors %} | ||
<p style="color: red">{{ error }}</p> | ||
{% endfor %} | ||
{% else %} | ||
<td>Password:</td> <td><a href="{%url 'change_password'%}">Click here </a> to change password</td> | ||
{%endif%} | ||
</tr> | ||
<tr><td> </td></tr> | ||
{% endfor %} | ||
</table> | ||
<button type="submit">Submit</button> | ||
</form> | ||
</div> | ||
{%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 |
---|---|---|
@@ -1,79 +1,75 @@ | ||
{%extends 'base.html'%} | ||
{%block head%}<title>User Profile</title>{%endblock%} | ||
{%block body%} | ||
<div id="main"> | ||
<div class="container" style="width:70%"> | ||
<div class="container"> | ||
<div class="container" align="center"> | ||
<h2>Welcome {{ user.get_full_name}} </h2> | ||
<p style="font-size: 35px"><b>Profile Details</b></p> | ||
</div> | ||
<br> | ||
<div class="form-group"> | ||
<br><br><br><br> | ||
<b><label class="control-label col-sm-2" for="UID" style="font-size:25px">UID:</label></b> | ||
|
||
<div class="col-sm-10"> | ||
<input type="text" class="form-control" id="email" placeholder="UID of Student" name="UID" value="{{ UID }}" | ||
style="font-size: 18px"> | ||
<br><br> | ||
</div> | ||
<h2>Welcome {{ user.get_full_name}} </h2> | ||
<p style="font-size: 35px">Profile Details</p> | ||
</div> | ||
<div class="form-group"> | ||
<br><br> | ||
<label class="control-label col-sm-2" for="UID" style="font-size:25px">UID:</label> | ||
<div class="col-sm-10"> | ||
<input type="text" class="form-control" id="email" placeholder="UID of Student" name="UID" value="{{ UID }}" | ||
style="font-size: 18px"> | ||
<br><br> | ||
</div> | ||
<div class="form-group"> | ||
<b><label class="control-label col-sm-2" for="stuusername" style="font-size:25px">Username:</label></b> | ||
</div> | ||
<div class="form-group"> | ||
<b><label class="control-label col-sm-2" for="stuusername" style="font-size:25px">Username:</label></b> | ||
<br><br> | ||
<div class="col-sm-10"> | ||
<input type="text" class="form-control" id="stuusername" placeholder="Username of Student" name="stuusername" | ||
value='{{ user.username}}' style="font-size: 18px"> | ||
<br><br> | ||
<div class="col-sm-10"> | ||
<input type="text" class="form-control" id="stuusername" placeholder="Username of Student" name="stuusername" | ||
value='{{ user.username}}' style="font-size: 18px"> | ||
<br><br> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<b><label class="control-label col-sm-2" for="stuname" style="font-size:25px">Name:</label></b> | ||
<div class="form-group"> | ||
<b><label class="control-label col-sm-2" for="stuname" style="font-size:25px">Name:</label></b> | ||
<br><br> | ||
<div class="col-sm-10"> | ||
<input type="text" class="form-control" id="stuname" placeholder="Name of Student" name="stuname" value='{{ user.get_full_name}}' | ||
style="font-size: 18px"> | ||
<br><br> | ||
<div class="col-sm-10"> | ||
<input type="text" class="form-control" id="stuname" placeholder="Name of Student" name="stuname" value='{{ user.get_full_name}}' | ||
style="font-size: 18px"> | ||
<br><br> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<b><label class="control-label col-sm-2" for="stuemail" style="font-size:25px">EmailId:</label></b> | ||
</div> | ||
<div class="form-group"> | ||
<b><label class="control-label col-sm-2" for="stuemail" style="font-size:25px">EmailId:</label></b> | ||
<br><br> | ||
<div class="col-sm-10"> | ||
<input type="text" class="form-control" id="stuemail" placeholder="Email ID of Student" name="stuemail" value='{{ user.email}}' | ||
style="font-size: 18px"> | ||
<br><br> | ||
<div class="col-sm-10"> | ||
<input type="text" class="form-control" id="stuemail" placeholder="Email ID of Student" name="stuemail" value='{{ user.email}}' | ||
style="font-size: 18px"> | ||
<br><br> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<b><label class="control-label col-sm-2" for="branch" style="font-size:25px">Branch:</label></b> | ||
</div> | ||
<div class="form-group"> | ||
<b><label class="control-label col-sm-2" for="branch" style="font-size:25px">Branch:</label></b> | ||
<br><br> | ||
<div class="col-sm-10"> | ||
<input type="text" class="form-control" id="branch" placeholder="Branch of Student" name="branch" value="{{ branch }}" | ||
style="font-size: 18px"> | ||
<br><br> | ||
<div class="col-sm-10"> | ||
<input type="text" class="form-control" id="branch" placeholder="Branch of Student" name="branch" value="{{ branch }}" | ||
style="font-size: 18px"> | ||
<br><br> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<b><label class="control-label col-sm-2" for="year" style="font-size:25px">Year:</label></b> | ||
</div> | ||
<div class="form-group"> | ||
<b><label class="control-label col-sm-2" for="year" style="font-size:25px">Year:</label></b> | ||
<br><br> | ||
<div class="col-sm-10"> | ||
<input type="text" class="form-control" id="year" placeholder="Year of Student" name="year" value="{{ year }}" | ||
style="font-size: 18px"> | ||
<br><br> | ||
<div class="col-sm-10"> | ||
<input type="text" class="form-control" id="year" placeholder="Year of Student" name="year" value="{{ year }}" | ||
style="font-size: 18px"> | ||
<br><br> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<b><label class="control-label col-sm-2" for="contactno" style="font-size:25px">Contact No:</label></b> | ||
</div> | ||
<div class="form-group"> | ||
<b><label class="control-label col-sm-2" for="contactno" style="font-size:25px">Contact No:</label></b> | ||
<br><br> | ||
<div class="col-sm-10"> | ||
<input type="text" class="form-control" id="contactno" placeholder="Contact No." name="contactno" value="{{ contactno }}" | ||
style="font-size: 18px"> | ||
<br><br> | ||
<div class="col-sm-10"> | ||
<input type="text" class="form-control" id="contactno" placeholder="Contact No." name="contactno" value="{{ contactno }}" | ||
style="font-size: 18px"> | ||
<br><br> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
{%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
Binary file not shown.