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 | |
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')
-rw-r--r-- | templates/base.html | 12 | ||||
-rw-r--r-- | templates/settings.html | 30 |
2 files changed, 22 insertions, 20 deletions
diff --git a/templates/base.html b/templates/base.html index c3ed80b..425ea34 100644 --- a/templates/base.html +++ b/templates/base.html @@ -15,15 +15,11 @@ <h1 id="header"><img src="{{url_for('static', filename='logo.png')}}" alt="Spline" /></h1> - {% if title %} - <h2>{{ title }}</h2> - {% endif %} - {%- if not no_login_message %} {%- if g.user %} - <p>Logged in as {{ g.user.uid }}. <a href="{{ url_for('logout') }}">Log out</a></p> + <p>Angemeldet als <strong>{{ g.user.uid }}</strong> | <a href="{{ url_for('logout') }}">Abmelden</a></p> {%- else %} - <p>Not logged in. <a href="{{ url_for('index') }}">Log in</a></p> + <p>Nicht angemeldet | <a href="{{ url_for('index') }}">Login</a></p> {%- endif %} {%- endif %} @@ -37,6 +33,10 @@ {% endif %} {% endwith %} + {% if title %} + <h2>{{ title }}</h2> + {% endif %} + {% block content %}{% endblock %} </body> </html> 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 %} |