~homeworkprod/byceps

ref: 3cf502460f3f3efa7c76e1a063ef143254ea377e byceps/byceps/blueprints/user/current/templates/user/current/view.html -rw-r--r-- 1.5 KiB
3cf50246 — Jochen Kupperschmidt Rename "site mode" to "app mode" 1 year, 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{% extends 'layout/base_auto.html' %}
{% from 'macros/icons.html' import render_icon %}
{% set current_page = 'user' %}
{% set title = 'Deine Daten' %}

{% block body %}

  <h1>{{ title }}</h1>

  <div style="float: right; margin-left: 40px;">
    <div class="dropdown left">
      <button class="dropdown-toggle button"><span>Aktionen</span> {{ render_icon('caret-down') }}</button>
      <ol>
        <li><a href="{{ url_for('.change_screen_name_form') }}">{{ render_icon('edit') }} Benutzername ändern</a></li>
        <li><a href="{{ url_for('.details_update_form') }}">{{ render_icon('edit') }} Persönliche Daten ändern</a></li>
        <li><a href="{{ url_for('authentication.password_update_form') }}">{{ render_icon('password') }} Passwort ändern</a></li>
      </ol>
    </div>
  </div>

  {%- with label_column_width = '8rem', data_column_min_width = '12rem' %}
{%- include 'user/current/_account.html' %}
{%- include 'user/current/_details_personal.html' %}
    {%- if g.app_mode.is_public() and newsletter_offered %}
{%- include 'user/current/_newsletter.html' %}
    {%- endif %}
  {%- endwith %}

{%- endblock %}

{% block scripts %}
    <script>
      onDomReady(function() {
        // avatar
        confirmed_delete_on_click_then_reload('[data-action="avatar-delete"]', 'Avatarbild entfernen?');

        // newsletter
        post_on_click_then_reload('[data-action="newsletter-subscribe"]');
        confirmed_delete_on_click_then_reload('[data-action="newsletter-unsubscribe"]', 'Wirklich vom Newsletter abmelden?');
      });
    </script>
{% endblock %}