diff --git a/users/templates/users/register.html b/users/templates/users/register.html index ccaa93f..5396575 100644 --- a/users/templates/users/register.html +++ b/users/templates/users/register.html @@ -48,73 +48,74 @@
{% csrf_token %} {% for field in form %} -
-
-
- {% if field.auto_id == 'id_image' %} - - + {% if field.auto_id == 'id_show_email' %} + {% elif field.auto_id == 'id_x' %} + + {% elif field.auto_id == 'id_y' %} + + {% elif field.auto_id == 'id_width' %} + + {% elif field.auto_id == 'id_height' %} + + {% else %} +
+
+
+ {% if field.auto_id == 'id_image' %} + {% render_field field class='form-control file-selector' %} - -
- - - - -
- -
- {% if acc.image %} -
- - {{ acc.image.path }} - {% else %} - {% trans 'Click or drop the file here' %}
- - {% trans 'The photo could not exceed 2MB.' %} - {% endif %} -
- {% else %} - {% if field.auto_id == 'id_show_email' %} - {% else %} - {% render_field field class='form-control' %} - {% endif %} - - +
+ + + + +
+
+ {% if acc.image %} +
+ {{ acc.image.path }} + {% else %} + {% trans 'Click or drop the file here' %}
+ {% trans 'The photo could not exceed 2MB.' %} + {% endif %} +
+ {% else %} + {% render_field field class='form-control' %} + {% endif %} + + {{ field.help_text }} +
+ {% if field.errors %} +
+ +
{% endif %} - {{ field.help_text }} -
- - {% if field.errors %} -
- - {% endif %} - - {% if field.auto_id == 'id_image' %} - - {% endif %} + {% endif %} +
-
+ {% endif %} {% endfor %}
@@ -146,7 +147,7 @@ function Init() { var small = $(".file-selector"), filedrag = $(".filedrag"), common = $(".common-file-input"); - + // file select small.on("change", FileSelectHandler); -- libgit2 0.21.2