summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authorankitjavalkar2020-08-25 16:23:16 +0530
committerankitjavalkar2020-08-25 16:23:16 +0530
commitc83f596fcc12528f72b0ae302b42b988a492e461 (patch)
tree7d57ed6583510e2f4b1ca1aa489289f53198ea11 /yaksh
parent8f583b3a00f9b2d65c19b99c886d69cb9d0e2d27 (diff)
downloadonline_test-c83f596fcc12528f72b0ae302b42b988a492e461.tar.gz
online_test-c83f596fcc12528f72b0ae302b42b988a492e461.tar.bz2
online_test-c83f596fcc12528f72b0ae302b42b988a492e461.zip
Fix form label position
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/templates/yaksh/editprofile.html15
1 files changed, 7 insertions, 8 deletions
diff --git a/yaksh/templates/yaksh/editprofile.html b/yaksh/templates/yaksh/editprofile.html
index 509b2f6..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,16 +32,17 @@
{% endfor %}
{% endif %}
{% for field in form %}
- <table>
- <td>{{ field.label }}</td><td>{{ field }}</td><td><small>{{ field.help_text }}</small></td>
- </table>
- <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>&nbsp;&nbsp;
- <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>