Update version number on the login page

feature/documentation
Sam Black 7 years ago
parent 896570a473
commit 043060d195
  1. 123
      cupola/templates/security/login_user.html

@ -2,73 +2,84 @@
{% from "layout/macros.html" import render_field %}
{% block html_tag %}
<html class="login-pf">
<html class="login-pf">
{% endblock %}
{% block normal_layout %}
<div id="badge">
<img src="/static/img/logo.svg" alt="Cupola logo" />
</div>
<div class="container">
<div id="badge">
<img src="/static/img/logo.svg" alt="Cupola logo"/>
</div>
<div class="container">
<div class="row">
<div class="col-sm-12">
<div id="brand">
<img src="/static/img/brand.svg" alt="Cupola Applications Login">
</div>
<div class="col-sm-12">
<div id="brand">
<img src="/static/img/brand.svg" alt="Cupola Applications Login">
</div>
{% if login_user_form.errors %}
</div>
{% if login_user_form.errors %}
<div class="col-sm-12">
{% if "Email requires confirmation." in login_user_form.errors.get("email", "") %}
<div class="alert alert-warning">
<span class="pficon pficon-warning-triangle-o"></span>
Your email address requires confirmation.
Please <a href="{{ url_for_security('send_confirmation') }}">confirm your email</a>.
</div>
{% elif "email" in login_user_form.errors or "password" in login_user_form.errors %}
<div class="alert alert-danger">
<span class="pficon pficon-error-circle-o"></span>
Your email or password is incorrect.
</div>
{% endif %}
{% if "Email requires confirmation." in login_user_form.errors.get("email", "") %}
<div class="alert alert-warning">
<span class="pficon pficon-warning-triangle-o"></span>
Your email address requires confirmation.
Please <a href="{{ url_for_security('send_confirmation') }}">confirm
your
email</a>.
</div>
{% elif "email" in login_user_form.errors or "password" in login_user_form.errors %}
<div class="alert alert-danger">
<span class="pficon pficon-error-circle-o"></span>
Your email or password is incorrect.
</div>
{% endif %}
</div>
{% endif %}
<div class="col-sm-7 col-md-6 col-lg-5 login">
<form class="form-horizontal" role="form"
action="{{ url_for_security('login') }}" method="POST" name="login_user_form">
{{ login_user_form.hidden_tag() }}
<div class="form-group">
<label for="inputUsername" class="col-sm-2 col-md-2 control-label">Email</label>
<div class="col-sm-10 col-md-10">
{{ login_user_form.email(class="form-control", tabindex="2") | safe }}
</div>
{% endif %}
<div class="col-sm-7 col-md-6 col-lg-5 login">
<form class="form-horizontal" role="form"
action="{{ url_for_security('login') }}" method="POST"
name="login_user_form">
{{ login_user_form.hidden_tag() }}
<div class="form-group">
<label for="inputUsername" class="col-sm-2 col-md-2 control-label">Email</label>
<div class="col-sm-10 col-md-10">
{{ login_user_form.email(class="form-control", tabindex="2") | safe }}
</div>
<div class="form-group">
<label for="inputPassword" class="col-sm-2 col-md-2 control-label">Password</label>
<div class="col-sm-10 col-md-10">
{{ login_user_form.password(class="form-control", tabindex="2") | safe }}
</div>
</div>
<div class="form-group">
<label for="inputPassword" class="col-sm-2 col-md-2 control-label">Password</label>
<div class="col-sm-10 col-md-10">
{{ login_user_form.password(class="form-control", tabindex="2") | safe }}
</div>
<div class="form-group">
<div class="col-xs-8 col-sm-offset-2 col-sm-6 col-md-offset-2 col-md-6">
</div>
<div class="form-group">
<div
class="col-xs-8 col-sm-offset-2 col-sm-6 col-md-offset-2 col-md-6">
<span class="help-block">
<a href="{{ url_for_security('send_confirmation') }}" tabindex="5">Confirm email</a> &mdash;
<a href="{{ url_for_security('forgot_password') }}" tabindex="6">Forgot password</a>
<a href="{{ url_for_security('send_confirmation') }}"
tabindex="5">Confirm email</a> &mdash;
<a href="{{ url_for_security('forgot_password') }}"
tabindex="6">Forgot password</a>
</span>
</div>
<div class="col-xs-4 col-sm-4 col-md-4 submit">
<button type="submit" class="btn btn-primary btn-lg" tabindex="4">Log In</button>
</div>
</div>
</form>
</div>
<div class="col-sm-5 col-md-6 col-lg-7 details">
<p>
<strong>Cupola</strong> Version 0.1
</p>
<p>
Initial version of Cupola.
</p>
</div>
<div class="col-xs-4 col-sm-4 col-md-4 submit">
<button type="submit" class="btn btn-primary btn-lg"
tabindex="4">Log In
</button>
</div>
</div>
</form>
</div>
<div class="col-sm-5 col-md-6 col-lg-7 details">
<p>
<strong>Cupola</strong> Version 0.1.5
</p>
<p>
Initial version of Cupola.
</p>
</div>
</div>
</div>
</div>
{% endblock %}

Loading…
Cancel
Save