Implement login form in template and add support for flash messages via a toast.

This commit is contained in:
Patrick Jentsch
2019-07-08 09:05:59 +02:00
parent b6a67fcd4d
commit 3b04addc17
2 changed files with 10 additions and 7 deletions

View File

@@ -93,7 +93,6 @@
</div>
</footer>
<!--JavaScript at end of body for optimized loading-->
<script type="text/javascript" src="{{ url_for('static', filename='js/materialize.min.js') }}"></script>
<script>
M.AutoInit();
@@ -105,6 +104,9 @@
document.getElementById("nav-settings"),
{"alignment": "right", "constrainWidth": false, "coverTrigger": false}
);
{% for message in get_flashed_messages() %}
M.toast({html: '{{ message }}'})
{% endfor %}
</script>
</body>
</html>