/
login_user.html
95 lines (83 loc) · 3.99 KB
/
login_user.html
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{% extends "base.html" %}
{% set active_page = "account" %}
{% block title %} Please log in {% endblock %}
{% from "security/_macros.html" import render_field_with_errors, render_field %}
{% block divs %}
<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
{% include "security/_messages.html" %}
</div>
<div class="col-sm-4">
<h1>{{ _('Login') }}</h1>
<form action="{{ url_for_security('login') }}" method="POST" name="login_user_form">
{{ login_user_form.hidden_tag() }}
{{ render_field_with_errors(login_user_form.email) }}
{{ render_field_with_errors(login_user_form.password) }}
{{ render_field_with_errors(login_user_form.remember) }}
{{ render_field(login_user_form.submit) }}
</form>
<form action="/reset" method="get">
<button class="btn btn-sm btn-responsive btn-link" type="submit">Forgot password?</button>
</form>
{% if FLEXMEASURES_MODE == "demo" and FLEXMEASURES_PUBLIC_DEMO_CREDENTIALS %}
<div class="alert alert-info col-sm-8">
<h2>Interested in a demo?</h2>
<p>
Simply log in to our demo account.
<ul>
<li>Email: {{ FLEXMEASURES_PUBLIC_DEMO_CREDENTIALS[0] }}</li>
<li>Password: {{ FLEXMEASURES_PUBLIC_DEMO_CREDENTIALS[1] }}</li>
</ul>
</p>
</div>
{% endif %}
</div>
<div class="col-sm-8">
{% block teaser %}
<h1>The FlexMeasures Platform</h1>
<div class="carousel-container">
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img src="ui/static/images/flexmeasures-preview.jpg" alt="BPV preview">
<div class="carousel-caption">
In-depth analytics of flexibility in your portfolio.
</div>
</div>
<div class="item">
<img src="ui/static/images/tj-k-349056-unsplash.jpg" alt="BPV preview">
<div class="carousel-caption">
Costs and revenues forecast with precision.
</div>
</div>
<div class="item">
<img src="ui/static/images/chase-lewis-506404-unsplash.jpg" alt="BPV preview">
<div class="carousel-caption">
Charging strategies that help balance the grid.
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
{% endblock teaser %}
</div>
</div>
</div>
{% endblock %}