mirror of https://github.com/MISP/misp-modules
fix: [login] flash messages
parent
35aa27ee51
commit
616aeca469
|
@ -7,7 +7,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>Flowintel-cm</title>
|
||||
<title>Misp-modules</title>
|
||||
<script src="{{ url_for('static',filename='js/popper.min.js') }}"></script>
|
||||
<script src="{{ url_for('static',filename='bootstrap-5.3.0/js/bootstrap.min.js') }}"></script>
|
||||
<script src="{{ url_for('static',filename='js/jquery.min.js') }}"></script>
|
||||
|
@ -20,28 +20,7 @@
|
|||
<link rel= "stylesheet" type= "text/css" href= "{{ url_for('static',filename='css/jquery-ui.css') }}">
|
||||
|
||||
<style>
|
||||
.bd-placeholder-img {
|
||||
font-size: 1.125rem;
|
||||
text-anchor: middle;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.bd-placeholder-img-lg {
|
||||
font-size: 3.5rem;
|
||||
}
|
||||
}
|
||||
html, body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-top: 40px;
|
||||
padding-bottom: 40px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
|
@ -49,7 +28,10 @@
|
|||
width: 100%;
|
||||
max-width: 330px;
|
||||
padding: 15px;
|
||||
margin: auto;
|
||||
|
||||
top: 25%;
|
||||
left: 40%;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.form-signin .checkbox {
|
||||
|
@ -76,15 +58,17 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<main class="form-signin">
|
||||
<main >
|
||||
{% include 'macros/_flashes.html' %}
|
||||
<div style="margin-top: 50px;">
|
||||
{% set flashes = {
|
||||
'error': get_flashed_messages(category_filter=['form-error']),
|
||||
'warning': get_flashed_messages(category_filter=['form-check-email']),
|
||||
'info': get_flashed_messages(category_filter=['form-info']),
|
||||
'success': get_flashed_messages(category_filter=['form-success'])
|
||||
} %}
|
||||
<form action="" method="post">
|
||||
</div>
|
||||
<form action="" method="post" class="form-signin">
|
||||
{{ form.hidden_tag() }}
|
||||
<div class="mb-3">
|
||||
{{form.password.label}}:
|
||||
|
|
Loading…
Reference in New Issue