src/iconolab/templates/registration/register.html
changeset 181 c0ce1738aa88
parent 24 6b6b183447a2
child 192 f4d3b15ec163
--- a/src/iconolab/templates/registration/register.html	Mon Sep 12 16:00:21 2016 +0200
+++ b/src/iconolab/templates/registration/register.html	Mon Sep 12 16:43:56 2016 +0200
@@ -9,7 +9,7 @@
       {% for field in form %}
       <fieldset class="form-group">
         <label class="control-label" for="id_{{ field.name }}">{{ field.label }}</label>
-        <input type="{% if field.label == "Username" %}text{% else %}password{% endif %}" class="form-control"
+        <input type="{% if field.name == "username" %}text{% else %}password{% endif %}" class="form-control"
           name="{{ field.name }}"
           id="id_{{ field.name }}" > 
         {% if field.errors %}{{ field.errors }}{% else %}<p class="help-text">{{ field.help_text }}</p>{% endif %}