diff options
author | 2018-05-20 00:18:22 +0100 | |
---|---|---|
committer | 2018-05-20 00:18:22 +0100 | |
commit | 0d012bf1c2e0a702e368ce7a1dfe09e68bef3740 (patch) | |
tree | d465d4664d651dd0d9bb81fad8ac0e0545082083 /templates | |
parent | [Jams] Fix infraction table display when user is not on server (diff) |
[Jams] Redirect user back to form from profile page
Diffstat (limited to 'templates')
-rw-r--r-- | templates/main/jams/profile.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/main/jams/profile.html b/templates/main/jams/profile.html index 5b0ee192..efa0e274 100644 --- a/templates/main/jams/profile.html +++ b/templates/main/jams/profile.html @@ -28,7 +28,11 @@ </p> {% endif %} - <form class="uk-form-horizontal" action="{{ url_for("main.jams.profile") }}" method="post"> + {% if form %} + <form class="uk-form-horizontal" action="{{ url_for("main.jams.profile", form=form) }}" method="post"> + {% else %} + <form class="uk-form-horizontal" action="{{ url_for("main.jams.profile") }}" method="post"> + {% endif %} <div> <div class="uk-form-label"> <label class="uk-form-label" for="dob">Date of Birth</label> |