diff options
author | ankitjavalkar | 2020-08-25 16:39:30 +0530 |
---|---|---|
committer | GitHub | 2020-08-25 16:39:30 +0530 |
commit | 7b6297ca80b0ec5bc86cfaf3971d7a50064d930d (patch) | |
tree | 7d57ed6583510e2f4b1ca1aa489289f53198ea11 | |
parent | 3999e744fe1a3a4c4fcb7d2763b36def9d7bb213 (diff) | |
parent | c83f596fcc12528f72b0ae302b42b988a492e461 (diff) | |
download | online_test-7b6297ca80b0ec5bc86cfaf3971d7a50064d930d.tar.gz online_test-7b6297ca80b0ec5bc86cfaf3971d7a50064d930d.tar.bz2 online_test-7b6297ca80b0ec5bc86cfaf3971d7a50064d930d.zip |
Merge pull request #742 from ankitjavalkar/addformlabel
Add form labels to edit profile template
-rw-r--r-- | yaksh/templates/yaksh/editprofile.html | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/yaksh/templates/yaksh/editprofile.html b/yaksh/templates/yaksh/editprofile.html index 47e74ea..c95da88 100644 --- a/yaksh/templates/yaksh/editprofile.html +++ b/yaksh/templates/yaksh/editprofile.html @@ -6,13 +6,11 @@ <br> <form action="{% url 'yaksh:edit_profile'%}" method="post" > {% csrf_token %} - <center> <div class="row justify-content-center form-group"> <div class="col-md-4 col-md-offset-4"> <form action="" method="post"> <fieldset> {% csrf_token %} - <center> {% if form.errors %} {% for field in form %} {% for error in field.errors %} @@ -34,14 +32,17 @@ {% endfor %} {% endif %} {% for field in form %} - <td>{{ field }} <small>{{ field.help_text }}</small></td> - <br> + <div class="form-group"> + <label> + {{ field.label }} + </label> + {{ field }} + </div> {% endfor %} <br> <br> - </center> <button class="btn btn-success btn-lg" type="submit">Update</button> - <a href="{% url 'yaksh:index' %}" class="btn btn-primary btn-lg">Cancel</a></center> + <a href="{% url 'yaksh:index' %}" class="btn btn-primary btn-lg">Cancel</a> </fieldset> </form> </div> |