Hide passwords from view on forms

This commit is contained in:
Isaac Bythewood
2013-09-24 23:58:38 +00:00
parent 50d61af22a
commit fc39a075e9

View File

@@ -1,5 +1,5 @@
<div class="form-group{% if field.errors %} has-error{% endif %}">
<input type="text" id="id_{{ field.html_name }}" name="{{ field.html_name }}" class="form-control input-lg" placeholder="{{ field.label }}"/>
<input type="{% if field.html_name == "password" %}password{% else %}text{% endif %}" id="id_{{ field.html_name }}" name="{{ field.html_name }}" class="form-control input-lg" placeholder="{{ field.label }}"/>
{% if field.errors %}
<span class="help-block">
{% if field.errors %}