diff --git a/g3w-admin/templates/bootstrap3/layout/prepended_appended_text.html b/g3w-admin/templates/bootstrap3/layout/prepended_appended_text.html new file mode 100644 index 000000000..6a885f928 --- /dev/null +++ b/g3w-admin/templates/bootstrap3/layout/prepended_appended_text.html @@ -0,0 +1,24 @@ +{% load crispy_forms_field %} + +{% if field.is_hidden %} + {{ field }} +{% else %} +
+ + {% if field.label and form_show_labels %} + + {% endif %} + +
+
+ {% if crispy_prepended_text %}{{ crispy_prepended_text|safe }}{% endif %} + {% crispy_field field 'class' 'form-control' %} + {% if crispy_appended_text %}{{ crispy_appended_text|safe }}{% endif %} +
+ + {% include 'bootstrap3/layout/help_text_and_errors.html' %} +
+
+{% endif %} diff --git a/g3w-admin/usersmanage/forms.py b/g3w-admin/usersmanage/forms.py index f6d31d523..79f6da72a 100644 --- a/g3w-admin/usersmanage/forms.py +++ b/g3w-admin/usersmanage/forms.py @@ -748,6 +748,7 @@ def clean_username(self): return username + def clean_password2(self): password1 = self.cleaned_data.get("password1") password2 = self.cleaned_data.get("password2")