bugfixes, cleanup
This commit is contained in:
parent
1bf474045a
commit
17c30128ae
82 changed files with 216 additions and 76 deletions
28
lenticular_cloud/template/auth/base.html.j2
Normal file
28
lenticular_cloud/template/auth/base.html.j2
Normal file
|
@ -0,0 +1,28 @@
|
|||
{% extends 'base.html.j2' %}
|
||||
|
||||
|
||||
{% block body %}
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
{% for message in get_flashed_messages() %}
|
||||
<div class="alert alert-warning">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
{{ message }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="row">
|
||||
<main class="col-md-9 ml-sm-auto col-lg-10 px-4" role="main">
|
||||
<h1>{% block title %}{% endblock %}</h1>
|
||||
<div class="card">
|
||||
<div class="card-body mt-5 mb-5">
|
||||
<div class="tab-content">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
14
lenticular_cloud/template/auth/consent.html.j2
Normal file
14
lenticular_cloud/template/auth/consent.html.j2
Normal file
|
@ -0,0 +1,14 @@
|
|||
{% extends 'auth/base.html.j2' %}
|
||||
|
||||
{% block title %}{{ gettext('Consent') }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<p>
|
||||
The application "{{ client.client_id }}" requested the following scopes: {{ requested_scope }}
|
||||
</p>
|
||||
<p> Allow this app to access that data?</p>
|
||||
|
||||
{{ render_form(form) }}
|
||||
|
||||
{% endblock %}
|
13
lenticular_cloud/template/auth/login.html.j2
Normal file
13
lenticular_cloud/template/auth/login.html.j2
Normal file
|
@ -0,0 +1,13 @@
|
|||
{% extends 'auth/base.html.j2' %}
|
||||
|
||||
{% block title %}{{ gettext('Login') }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
|
||||
{{ render_form(form) }}
|
||||
|
||||
<a href="{{ url_for('.sign_up') }}" class="btn btn-primary">Sign Up</a>
|
||||
|
||||
{% endblock %}
|
||||
|
25
lenticular_cloud/template/auth/login_auth.html.j2
Normal file
25
lenticular_cloud/template/auth/login_auth.html.j2
Normal file
|
@ -0,0 +1,25 @@
|
|||
{% extends 'auth/base.html.j2' %}
|
||||
|
||||
{% block title %}{{ gettext('Login') }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<ul class="nav nav-tabs" id="myTab" role="tablist">
|
||||
{% for auth_name in forms.keys() %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link{{' active' if loop.first else ''}}" id="home-tab" data-toggle="tab" href="#{{ auth_name }}" role="tab" aria-controls="home" aria-selected="true">{{ gettext(auth_name) }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<div class="tab-content" id="myTabContent">
|
||||
{% for auth_name, form in forms.items() %}
|
||||
<div class="tab-pane fade{{ ' show active' if loop.first else '' }}" id="{{ auth_name }}" role="tabpanel" aria-labelledby="{{ auth_name }}-tab">
|
||||
|
||||
{{ render_form(form) }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
|
11
lenticular_cloud/template/auth/sign_up.html.j2
Normal file
11
lenticular_cloud/template/auth/sign_up.html.j2
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
{% extends 'auth/base.html.j2' %}
|
||||
|
||||
{% block title %}{{ gettext('Sign Up') }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{{ render_form(form, onsubmit="return auth.sign_up.submit(this)", action_url=url_for('auth.sign_up_submit')) }}
|
||||
|
||||
{% endblock %}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue