Add breadcrumbs to auth package

This commit is contained in:
Patrick Jentsch 2020-11-02 10:01:02 +01:00
parent 917005afa7
commit 850087f628
7 changed files with 37 additions and 1 deletions

View File

@ -153,4 +153,5 @@ def reset_password(token):
return redirect(url_for('main.index')) return redirect(url_for('main.index'))
return render_template('auth/reset_password.html.j2', return render_template('auth/reset_password.html.j2',
reset_password_form=reset_password_form, reset_password_form=reset_password_form,
title='Password Reset') title='Password Reset',
token=token)

View File

@ -0,0 +1,15 @@
<ul class="tabs tabs-transparent">
<li class="tab"><a href="{{ url_for('main.index') }}" target="_self">nopaque</a></li>
<li class="tab disabled"><i class="material-icons">navigate_next</i></li>
{% if request.path == url_for('.login') %}
<li class="tab"><a class="active" href="{{ url_for('.login') }}" target="_self">{{ title }}</a></li>
{% elif request.path == url_for('.register') %}
<li class="tab"><a class="active" href="{{ url_for('.register') }}" target="_self">{{ title }}</a></li>
{% elif request.path == url_for('.reset_password', token=token) %}
<li class="tab"><a class="active" href="{{ url_for('.reset_password', token=token) }}" target="_self">{{ title }}</a></li>
{% elif request.path == url_for('.reset_password_request') %}
<li class="tab"><a class="active" href="{{ url_for('.reset_password_request') }}" target="_self">{{ title }}</a></li>
{% elif request.path == url_for('.unconfirmed') %}
<li class="tab"><a class="active" href="{{ url_for('.unconfirmed') }}" target="_self">{{ title }}</a></li>
{% endif %}
</ul>

View File

@ -1,6 +1,10 @@
{% extends "nopaque.html.j2" %} {% extends "nopaque.html.j2" %}
{% import 'materialize/wtf.html.j2' as wtf %} {% import 'materialize/wtf.html.j2' as wtf %}
{% block nav_content %}
{% include 'auth/_breadcrumbs.html.j2' %}
{% endblock nav_content %}
{% block styles %} {% block styles %}
{{ super() }} {{ super() }}
<style> <style>

View File

@ -1,6 +1,10 @@
{% extends "nopaque.html.j2" %} {% extends "nopaque.html.j2" %}
{% import 'materialize/wtf.html.j2' as wtf %} {% import 'materialize/wtf.html.j2' as wtf %}
{% block nav_content %}
{% include 'auth/_breadcrumbs.html.j2' %}
{% endblock nav_content %}
{% block styles %} {% block styles %}
{{ super() }} {{ super() }}
<style> <style>

View File

@ -1,6 +1,10 @@
{% extends "nopaque.html.j2" %} {% extends "nopaque.html.j2" %}
{% import 'materialize/wtf.html.j2' as wtf %} {% import 'materialize/wtf.html.j2' as wtf %}
{% block nav_content %}
{% include 'auth/_breadcrumbs.html.j2' %}
{% endblock nav_content %}
{% block page_content %} {% block page_content %}
<div class="container"> <div class="container">
<div class="row"> <div class="row">

View File

@ -1,6 +1,10 @@
{% extends "nopaque.html.j2" %} {% extends "nopaque.html.j2" %}
{% import 'materialize/wtf.html.j2' as wtf %} {% import 'materialize/wtf.html.j2' as wtf %}
{% block nav_content %}
{% include 'auth/_breadcrumbs.html.j2' %}
{% endblock nav_content %}
{% block page_content %} {% block page_content %}
<div class="container"> <div class="container">
<div class="row"> <div class="row">

View File

@ -1,5 +1,9 @@
{% extends "nopaque.html.j2" %} {% extends "nopaque.html.j2" %}
{% block nav_content %}
{% include 'auth/_breadcrumbs.html.j2' %}
{% endblock nav_content %}
{% block page_content %} {% block page_content %}
<div class="container"> <div class="container">
<div class="row"> <div class="row">