Prepare app for working behind a proxy (nginx).
Adapt user form
This commit is contained in:
@@ -6,13 +6,6 @@
|
||||
<body class="presentation-page bg-gray-200">
|
||||
{% include 'navbar.html' %}
|
||||
{% include 'header.html' %}
|
||||
{% with messages = get_flashed_messages() %}
|
||||
{% if messages%}
|
||||
{% for message in messages%}
|
||||
<p>{{message}}</p>
|
||||
{%endfor%}
|
||||
{%endif%}
|
||||
{%endwith%}
|
||||
<hr>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
@@ -39,6 +32,15 @@
|
||||
<p class="mb-4 text-sm mx-auto">
|
||||
{% block content_footer %}{% endblock %}
|
||||
</p>
|
||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||
{% if messages%}
|
||||
{% for category, message in messages%}
|
||||
<div class="alert alert-{{category}}" role="alert">
|
||||
{{message}}
|
||||
</div>
|
||||
{%endfor%}
|
||||
{%endif%}
|
||||
{%endwith%}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
9
eveai_app/templates/error/401.html
Normal file
9
eveai_app/templates/error/401.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Error 401{% endblock %}
|
||||
|
||||
{% block content_title %}You are not authorized to access this functionality!{% endblock %}
|
||||
{% block content_description %}You have insufficient permissions to access this functionality!{% endblock %}
|
||||
{% block content %}
|
||||
<p><a href="{{ url_for('basic_bp.index') }}">Return home</a></p>
|
||||
{% endblock %}
|
||||
9
eveai_app/templates/error/403.html
Normal file
9
eveai_app/templates/error/403.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Error 403{% endblock %}
|
||||
|
||||
{% block content_title %}Unauthorized Access{% endblock %}
|
||||
{% block content_description %}You are not authorized to access this page!{% endblock %}
|
||||
{% block content %}
|
||||
<p><a href="{{ url_for('basic_bp.index') }}">Return home</a></p>
|
||||
{% endblock %}
|
||||
@@ -2,20 +2,20 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="{{url_for('static', filename='assets/img/apple-icon.png')}}">
|
||||
<link rel="icon" type="image/png" href="{{url_for('static', filename='./assets/img/favicon.png')}}">
|
||||
<link rel="icon" type="image/png" href="{{url_for('static', filename='assets/img/favicon.png')}}">
|
||||
<title>
|
||||
{% block title %}{% endblock %}
|
||||
</title>
|
||||
<!-- Fonts and icons -->
|
||||
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900|Roboto+Slab:400,700" />
|
||||
<!-- Nucleo Icons -->
|
||||
<link href="{{url_for('static', filename='/assets/css/nucleo-icons.css" rel="stylesheet')}}" />
|
||||
<link href="{{url_for('static', filename='/assets/css/nucleo-svg.css" rel="stylesheet')}}" />
|
||||
<link href="{{url_for('static', filename='assets/css/nucleo-icons.css" rel="stylesheet')}}" />
|
||||
<link href="{{url_for('static', filename='assets/css/nucleo-svg.css" rel="stylesheet')}}" />
|
||||
<!-- Font Awesome Icons -->
|
||||
<script src="https://kit.fontawesome.com/42d5adcbca.js" crossorigin="anonymous"></script>
|
||||
<!-- Material Icons -->
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Round" rel="stylesheet">
|
||||
<!-- CSS Files -->
|
||||
<link id="pagestyle" href="{{url_for('static', filename='/assets/css/material-kit-pro.css')}}" rel="stylesheet" />
|
||||
<link id="pagestyle" href="{{url_for('static', filename='/assets/css/eveai.css')}}" rel="stylesheet" />
|
||||
<link id="pagestyle" href="{{url_for('static', filename='assets/css/material-kit-pro.css')}}" rel="stylesheet" />
|
||||
<link id="pagestyle" href="{{url_for('static', filename='assets/css/eveai.css')}}" rel="stylesheet" />
|
||||
</head>
|
||||
@@ -5,10 +5,10 @@
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/perfect-scrollbar.min.js"></script>
|
||||
<script src="{{url_for('static', filename='/assets/js/plugins/typedjs.js')}}"></script>
|
||||
<script src="{{url_for('static', filename='/assets/js/plugins/prism.min.js')}}"></script>
|
||||
<script src="{{url_for('static', filename='/assets/js/plugins/highlight.min.js')}}"></script>
|
||||
<script src="{{url_for('static', filename='/assets/js/plugins/parallax.min.js')}}"></script>
|
||||
<script src="{{url_for('static', filename='/assets/js/plugins/nouislider.min.js')}}"></script>
|
||||
<script src="{{url_for('static', filename='/assets/js/plugins/anime.min.js')}}"></script>
|
||||
<script src="{{url_for('static', filename='assets/js/plugins/typedjs.js')}}"></script>
|
||||
<script src="{{url_for('static', filename='assets/js/plugins/prism.min.js')}}"></script>
|
||||
<script src="{{url_for('static', filename='assets/js/plugins/highlight.min.js')}}"></script>
|
||||
<script src="{{url_for('static', filename='assets/js/plugins/parallax.min.js')}}"></script>
|
||||
<script src="{{url_for('static', filename='assets/js/plugins/nouislider.min.js')}}"></script>
|
||||
<script src="{{url_for('static', filename='assets/js/plugins/anime.min.js')}}"></script>
|
||||
<script src="{{url_for('static', filename='assets/js/material-kit-pro.min.js')}}?v=3.0.4 type="text/javascript"></script>
|
||||
@@ -4,7 +4,7 @@
|
||||
{% block content_title %}Sign In{% endblock %}
|
||||
{% block content_description %}Enter your email and password to Sign In{% endblock %}
|
||||
{% block content %}
|
||||
<form action="" method="post" novalidate>
|
||||
<form action="{{ url_for('security_bp.login') }}" method="post" novalidate>
|
||||
{{ login_user_form.hidden_tag() }}
|
||||
<p>
|
||||
{{ login_user_form.email.label }}<br>
|
||||
@@ -14,10 +14,10 @@
|
||||
{{ login_user_form.password.label }}<br>
|
||||
{{ login_user_form.password(size=80) }}
|
||||
</p>
|
||||
{# <p>#}
|
||||
{# {{ login_user_form.remember_me }}#}
|
||||
{# {{ login_user_form.remember_me.label }}#}
|
||||
{# </p>#}
|
||||
{# <p>#}
|
||||
{# {{ login_user_form.remember_me }}#}
|
||||
{# {{ login_user_form.remember_me.label }}#}
|
||||
{# </p>#}
|
||||
<p>{{ login_user_form.submit() }}</p>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
@@ -40,16 +40,6 @@
|
||||
Embedding Search
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link mb-0 px-0 py-1" data-toggle="tab" href="#domains-tab" role="tab" aria-controls="domains" aria-selected="false">
|
||||
Domains
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link mb-0 px-0 py-1" data-toggle="tab" href="#users-tab" role="tab" aria-controls="users" aria-selected="false">
|
||||
Users
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="tab-content tab-space">
|
||||
@@ -83,19 +73,6 @@
|
||||
{{ render_included_field(field, disabled_fields=es_fields, include_fields=es_fields) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<!-- Domains Tab -->
|
||||
<div class="tab-pane fade" id="domains-tab" role="tabpanel">
|
||||
<ul>
|
||||
UNDER CONSTRUCTION
|
||||
</ul>
|
||||
</div>
|
||||
<!-- Users Tab -->
|
||||
<div class="tab-pane fade" id="users-tab" role="tabpanel">
|
||||
<ul>
|
||||
UNDER CONSTRUCTION
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
{% block content %}
|
||||
<form method="post">
|
||||
{{ form.hidden_tag() }}
|
||||
{% set disabled_fields = [] %}
|
||||
{% set disabled_fields = ['tenant_id'] %}
|
||||
{% set exclude_fields = [] %}
|
||||
{% for field in form %}
|
||||
{{ render_field(field, disabled_fields, exclude_fields) }}
|
||||
|
||||
Reference in New Issue
Block a user