backup.html (6644B) download
1<main role="main" class="container">
2 <div class="row">
3 <div class="col-md-8">
4 {% for category, message in get_flashed_messages(with_categories=true) %}
5 <div class="alert alert-{{ category }}">
6 {{ message }}
7 </div>
8 {% endfor %}
9 {% block content %}{% endblock %}
10 </div>
11 <div class="col-md-4">
12 <div class="content-section">
13 <h3>Welkom <b>{{ current_user.name if current_user.is_authenticated else 'gast' }}</b>!</h3>
14 {% if not current_user.is_authenticated %}
15 <p>
16 U bent nog niet ingelogd. Als u al een account heeft log dan in door rechtsboven op inloggen te klikken.
17 </p>
18 <p>
19 Heeft u al vallen gekocht, maar nog geen account aangemaakt? Registreer u dan nu en koppel uw muizenvallen in het dashboard.
20 </p>
21 <p>
22 Bent u nieuw en wilt u onze producten kopen of testen? Neem een kijkje op onze website.
23 </p>
24 {% else %}
25 <p class='text-muted'>
26 <ul class="list-group">
27 <li class="list-group-item list-group-item-light">
28 <a href="{{ url_for('account') }}">Profielinstellingen</a>
29 </li>
30 <li class="list-group-item list-group-item-light">
31 <a href="{{ url_for('traps') }}">Uw muizenvallen</a>
32 </li>
33 <li class="list-group-item list-group-item-light">
34 <a href="{{ url_for('trap_connect') }}">Muizenval verbinden</a>
35 </li>
36 {% if current_user.admin %}
37 <li class="list-group-item list-group-item-light">
38 <a href="#">Gebruikers bewerken</a>
39 </li>
40 {% endif %}
41 </ul>
42 </p>
43 {% endif %}
44 </div>
45 {% if current_user.is_authenticated %}
46 {% with contact = current_user.contact_class() %}
47 {% if contact %}
48 <div class="content-section">
49 <h3>Contact</h3>
50 <h5>
51 <b>{{ contact.name }}</b>
52 </h5>
53 <p>
54 E-Mail: <a href="mailto:{{ contact.email }}">{{ contact.email }}</a><br>
55 Tel.: {{ contact.phone }}
56 </p>
57 <p>
58 {% autoescape false %}
59 {{ contact.address | replace('\n', '<br>') }}<br>
60 {% endautoescape %}
61 </p>
62 </div>
63 {% endif %}
64 {% endwith %}
65 {% endif %}
66 </div>
67 </div>
68</main>
69<header class="site-header">
70 <nav class="navbar navbar-expand-md fixed-top">
71 <div class="container">
72 <a class="navbar-brand mr-4" href="/">
73 <b><code>muizenval.tk</code></b>
74 </a>
75 <div class="collapse navbar-collapse" id="navbarToggle">
76 <div class="navbar-nav mr-auto">
77 <a class="nav-item nav-link" href="{{ url_for('about') }}">Over ons</a>
78 <a class="nav-item nav-link" href="{{ url_for('producten') }}">Producten</a>
79 </div>
80 <!-- Navbar Right Side -->
81 <div class="navbar-nav">
82 {% if current_user.is_authenticated %}
83 <a class="nav-item nav-link" href="{{ url_for('logout') }}">Uitloggen</a>
84 {% else %}
85 <a class="nav-item nav-link" href="{{ url_for('login') }}">Inloggen</a>
86 <a class="nav-item nav-link" href="{{ url_for('register') }}">Registeren</a>
87 {% endif %}
88 </div>
89 </div>
90 </div>
91 </nav>
92</header>
93<!--nav bar-->
94
95<body>
96 <nav class="navbar fixed-top bg-light">
97 <div class="container">
98 <a class="navbar-brand" href="{{ url_for('index') }}">
99 <img src="static/logo.svg" alt="" width="50%" height="50%">
100 Home
101 </a>
102 <ul class="navbar-nav">
103 <li class="nav-item">
104 <a class="nav-link" aria-current="page" href="{{ url_for('login') }}">Inloggen</a>
105 </li>
106 <li class="nav-item">
107 <a class="nav-link" aria-current="page" href="{{ url_for('register') }}">Registeren</a>
108 </li>
109 </ul>
110 </div>
111 </nav>
112 <div class="container" style="padding-top:20px;">
113 <div class="row">
114 <!-- sidebar -->
115 <div class="col-3">
116 <ul class="nav nav-pills flex-column nav-justified">
117 <li class="nav-item">
118 <a class="nav-link" href="{{url_for('index')}}}">Home</a>
119 </li>
120 <li class="nav-item">
121 <a class="nav-link" href="{{url_for('producten')}}">Producten</a>
122 </li>
123 <li class="nav-item">
124 <a class="nav-link" href="#">Link</a>
125 </li>
126 <li class="nav-item">
127 <a class="nav-link disabled">Disabled</a>
128 </li>
129 {% if current_user.is_authenticated %}
130 <a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button"
131 aria-expanded="false">{{current_user.name}}
132
133 </a>
134 <ul class="dropdown-menu">
135 <li><a class="dropdown-item" href="{{ url_for('account') }}">Instellingen</a></li>
136 <li><a class="dropdown-item" href="{{ url_for('logout') }}">Uitloggen</a></li>
137 </ul>
138 {% endif %}
139 </ul>
140 </div>
141 <!-- content-->
142 <div class="col-7">
143 {% block content %}{% endblock %}
144 </div>
145 </div>
146 </div>
147 {{ form.email.label(class="form-control-label") }}
148 {% if form.email.errors %}
149 {{ form.email(class="form-control form-control-lg is-invalid") }}
150 <div class="invalid-feedback">
151 {% for error in form.email.errors %}
152 <span>{{ error }}</span>
153 {% endfor %}
154 </div>
155 {% else %}
156 {{ form.email(class="form-control form-control-lg") }}
157 {% endif %}