From 8f583b3a00f9b2d65c19b99c886d69cb9d0e2d27 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Tue, 25 Aug 2020 16:12:52 +0530 Subject: Add form labesl to editprofile form rendering --- yaksh/templates/yaksh/editprofile.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yaksh/templates/yaksh/editprofile.html b/yaksh/templates/yaksh/editprofile.html index 47e74ea..509b2f6 100644 --- a/yaksh/templates/yaksh/editprofile.html +++ b/yaksh/templates/yaksh/editprofile.html @@ -34,7 +34,9 @@ {% endfor %} {% endif %} {% for field in form %} - {{ field }} {{ field.help_text }} + + +
{{ field.label }}{{ field }}{{ field.help_text }}

{% endfor %}
-- cgit From c83f596fcc12528f72b0ae302b42b988a492e461 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Tue, 25 Aug 2020 16:23:16 +0530 Subject: Fix form label position --- yaksh/templates/yaksh/editprofile.html | 15 +++++++-------- 1 file 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 @@
{% csrf_token %} -
{% csrf_token %} -
{% if form.errors %} {% for field in form %} {% for error in field.errors %} @@ -34,16 +32,17 @@ {% endfor %} {% endif %} {% for field in form %} - - -
{{ field.label }}{{ field }}{{ field.help_text }}
-
+
+ + {{ field }} +
{% endfor %}

-
   - Cancel
+ Cancel
-- cgit