diff options
author | Nico von Geyso <Nico.Geyso@FU-Berlin.de> | 2012-09-29 13:50:09 +0200 |
---|---|---|
committer | Nico von Geyso <Nico.Geyso@FU-Berlin.de> | 2012-09-29 13:50:09 +0200 |
commit | 351fa11f182c12ae8db6c7141424b27bda77ba9d (patch) | |
tree | a1a445ef4c667ddee909038b934c54656e8f1e31 /templates | |
parent | 914ba3f28741ed6da2b7a05b43f47799e1967ee8 (diff) | |
download | web-351fa11f182c12ae8db6c7141424b27bda77ba9d.tar.gz web-351fa11f182c12ae8db6c7141424b27bda77ba9d.tar.bz2 web-351fa11f182c12ae8db6c7141424b27bda77ba9d.zip |
use post instead of get for service password reset
Diffstat (limited to 'templates')
-rw-r--r-- | templates/settings.html | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/templates/settings.html b/templates/settings.html index 241ea00..3bc5f4d 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -18,14 +18,17 @@ {%- for service in services %} <div class="service"> <h3> + {% if service.changed %} + {{ form.get_servicedelete(service.id) }} + {% else %} + {{ form.get_servicedelete(service.id)(disabled=True) }} + {% endif %} {{ service.name }} </h3> <ul> {%- if service.changed %} <li class="active">aktiv</li> - <li> - <a href="{{ url_for('settings',delete_service_password=service.name)}}">löschen</a> </li> {%- else %} <li class="inactive">inaktiv</li> @@ -40,6 +43,9 @@ </div> </div> {%- endfor %} + <div class="form-submit-services"> + <input type="submit" value="selektierte Passwörter löschen" name="submit_services" /> + </div> </form> {%- endblock %} |