diff options
author | Marian Sigler <m@qjym.de> | 2012-09-26 02:37:56 +0200 |
---|---|---|
committer | Marian Sigler <m@qjym.de> | 2012-09-26 02:37:56 +0200 |
commit | 7216ec0a7fe4051611990c237652eaaa50e26e42 (patch) | |
tree | 697d0798852ecdcc5c33b37b4a76f785badc273e /templates/settings.html | |
parent | cc31815e01c6cb36fb1e88f02a9ae463745dac59 (diff) | |
download | web-7216ec0a7fe4051611990c237652eaaa50e26e42.tar.gz web-7216ec0a7fe4051611990c237652eaaa50e26e42.tar.bz2 web-7216ec0a7fe4051611990c237652eaaa50e26e42.zip |
start with form and template changes for service password management
Diffstat (limited to 'templates/settings.html')
-rw-r--r-- | templates/settings.html | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/templates/settings.html b/templates/settings.html index 13d63f4..1d112d8 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -3,25 +3,27 @@ {%- set title = 'Einstellungen' %} {%- block content %} <form action="{{ url_for('settings') }}" method="post" class="form-horizontal"> - <h2>Globale Einstellungen ändern</h2> {{ render_field(form.old_password) }} + <h3>Globale Einstellungen ändern</h3> {{ render_field(form.mail) }} {{ render_field(form.password) }} {{ render_field(form.password_confirm) }} {{ form.csrf_token }} - <div class="form-actions"><input type="submit" value="Speichern" /></div> + <div class="form-actions"><input type="submit" value="Speichern" name="submit_main" /></div> - <h2>Dienste verwalten</h2> - <ul> - {%- for service, changed in services %} - <li> - <strong>{{ service }}</strong> - {%- if changed %} - ändern, löschen - {%- else %} - setzen - {%- endif %} - </li> - {%- endfor %} + <h3>Dienste verwalten</h3> + {%- for service in services %} + <h4>{{ service.name }}</h4> + {%- 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 %} + {{ render_field(form.get_servicepassword(service.id)) }} + {{ render_field(form.get_servicepasswordconfirm(service.id)) }} + {%- endfor %} </form> {%- endblock %} |