diff options
author | Nico von Geyso <Nico.Geyso@FU-Berlin.de> | 2012-09-28 22:21:53 +0200 |
---|---|---|
committer | Nico von Geyso <Nico.Geyso@FU-Berlin.de> | 2012-09-28 22:21:53 +0200 |
commit | 220941cad39f1d0e5d75c219e62ec11d9ec0799b (patch) | |
tree | 6009043a2bf9f2a07a47dba2bbb2faaec4e58980 /templates | |
parent | ee35835b75119e57dd23f13fba95c02e50125a44 (diff) | |
download | web-220941cad39f1d0e5d75c219e62ec11d9ec0799b.tar.gz web-220941cad39f1d0e5d75c219e62ec11d9ec0799b.tar.bz2 web-220941cad39f1d0e5d75c219e62ec11d9ec0799b.zip |
added possibility to delete service passwords
Diffstat (limited to 'templates')
-rw-r--r-- | templates/settings.html | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/templates/settings.html b/templates/settings.html index 3189d6a..646f6b8 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -10,21 +10,22 @@ {{ render_csrf(form) }} <div class="form-actions"><input type="submit" value="Speichern" name="submit_main" /></div> - <!-- <h2>Dienste verwalten</h2> {%- for service in services %} - <h3>{{ service.name }}</h3> - {%- if service.changed %} - <p>Eigenes Passwort gesetzt</p> - <p>löschen, todo</p> - <p>Ändern:</p> - {%- else %} - <p>Kein eigenes Passwort gesetzt.</p> - <p>Eigenes Passwort setzen:</p> - {%- endif %} + <h3> + {{ service.name }} + <small> + {%- if service.changed %} + <span class="active">aktiv</span> + <a href="{{ url_for('settings',delete_service_password=service.name)}}">löschen</a> + {%- else %} + <span class="inactive">inaktiv</span> + {%- endif %} + </small> + </h3> + <p>Neues Passwort setzen:</p> {{ render_field(form.get_servicepassword(service.id)) }} {{ render_field(form.get_servicepasswordconfirm(service.id)) }} {%- endfor %} - --> </form> {%- endblock %} |