diff options
author | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2014-11-19 01:47:55 +0100 |
---|---|---|
committer | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2014-11-19 02:15:56 +0100 |
commit | 04c8595f3b6e74e336909bdcd3fdc9b1c62c24b2 (patch) | |
tree | cccd60c95ed42a34c2d9e9bde9063402aed2ae5c | |
parent | 641c6e4e397641b4de3aa15e674241e2b7b7f7f6 (diff) | |
download | padlite-teams-04c8595f3b6e74e336909bdcd3fdc9b1c62c24b2.tar.gz padlite-teams-04c8595f3b6e74e336909bdcd3fdc9b1c62c24b2.tar.bz2 padlite-teams-04c8595f3b6e74e336909bdcd3fdc9b1c62c24b2.zip |
templates/index: do not collaps create group form on error
If the user submits the group creation form and the form contains
a validation error, the form should be visible to the user with the
error message, so we do not hide it.
-rw-r--r-- | templates/index.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html index f5cf4d8..c6583a1 100644 --- a/templates/index.html +++ b/templates/index.html @@ -39,7 +39,9 @@ </div> </div> </div> +{% if not create_form.errors %} <script type="text/javascript"> $('#collapseCreate').collapse('hide'); </script> +{% endif %} {% endblock %} |