diff options
author | shivam kohli <kohlishivam5522@gmail.com> | 2018-08-07 20:13:27 +0530 |
---|---|---|
committer | shivam kohli <kohlishivam5522@gmail.com> | 2018-08-07 20:13:27 +0530 |
commit | c7939ec45cc7f68a268c8f11504c9ae13247e1fa (patch) | |
tree | 7459223608c0742ee9b6cb7d67dc0342372562bf | |
parent | fbc8c0dab4c27ffe10f115f3d631e37ef6690a91 (diff) | |
download | codeless-c7939ec45cc7f68a268c8f11504c9ae13247e1fa.tar.gz codeless-c7939ec45cc7f68a268c8f11504c9ae13247e1fa.tar.bz2 codeless-c7939ec45cc7f68a268c8f11504c9ae13247e1fa.zip |
added error messages in signup
-rw-r--r-- | templates/inventory/signup.html | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/templates/inventory/signup.html b/templates/inventory/signup.html index 6dd4fda..9d030eb 100644 --- a/templates/inventory/signup.html +++ b/templates/inventory/signup.html @@ -36,13 +36,22 @@ with the Taler Codeless Merchant. If not, see <https://www.gnu.org/licenses/>. {% for field in form %} {% if field.label == 'Directly enter the Plain PaytoURI' %} <br><br><label class="tooltip">{{ field.label }}<font size="1"><span class="tooltiptext">This field is not necessary, if you have choosen the address type.</span></font></label> - {{ field }} + {% for error in field.errors %} + <p style="color: red">{{ error }}</p> + {% endfor %} + {{ field }} {% elif field.label == 'Payment Address type' %} <br><br><label class="tooltip">{{ field.label }}<font size="1"><span class="tooltiptext">Choose the type of payment method from the list.</span></font></label> - {{ field }} + {% for error in field.errors %} + <p style="color: red">{{ error }}</p> + {% endfor %} + {{ field }} {% else %} <label class="mylabel">{{ field.label }}</label> - {{ field }} + {% for error in field.errors %} + <p style="color: red">{{ error }}</p> + {% endfor %} + {{ field }} {% endif %} {% endfor %} <button name="add_product" type="submit" class="submit">Sign up</button> |