[Flask] Simple ERP for a farm.
1
{# -*- mode: web; -*- #}
2
3
<!doctypehtml>
4
5
<htmllang="en">
6
<head>
7
<metacharset="utf-8">
8
<metaname="viewport"content="width=device-width, initial-scale=1, shrink-to">
9
<title>Farm Manager</title>
10
<metaname="author"content="Marius Peter">
11
<metaname="description"content="A draft page for Farm Manager.">
12
<!-- <link rel="icon" href="{{ url_for('static', filename='img/favicon.png') }}"> -->
13
<linkrel="stylesheet"href="{{ url_for('static', filename='styles/style.css') }}">
14
</head>
15
<body>
16
<navid="user">
17
<divstyle="display: flex; align-items: baseline;"
18
ul
19
liahref"{{ url_for('main.home') }}"class"button"Home/a/li
20
/ul
21
h1{%blocktitle%}{%endblock%}/h1
22
/div
23
ul
24
{%ifcurrent_user.is_authenticated%}
25
liahref"{{ url_for('common.settings') }}"class"button"Settings/a/li
26
liahref"{{ url_for('auth.logout') }}"class"button"Logout/a/li
27
{%else%}
28
liahref"{{ url_for('auth.login') }}"class"button"Login/a/li
29
liahref"{{ url_for('auth.register') }}"class"button"Register/a/li
30
{%endif%}
31
/ul
32
/nav
33
{%ifcurrent_user.is_authenticated%}
34
navid"modules"
35
ul
36
{%formoduleinmodules%}
37
liahref"{{ url_for(module.name + '.view') }}"class"button"{{module.name}}/a/li
38
{%endfor%}
39
40
/ul
41
/nav
42
navid"actions"
43
ul
44
{%blockactions%}{%endblock%}
45
/ul
46
/nav
47
{%endif%}
48
divid"content"
49
{%blockcontent%}{%endblock%}
50
/div
51
{#Flashedmessagesaddedlast,sothattheyappearontopofthecontent.#}
52
{%withmessagesget_flashed_messages(with_categoriestrue)%}
53
{%ifmessages%}
54
divid"flash"
55
ul
56
{%forcategory,messageinmessages%}
57
liclass"alert alert-{{ category }}"{{message}}/li
58
{%endfor%}
59
/ul
60
/div
61
{%endif%}
62
{%endwith%}
63
!--scriptsrc"js/scripts.js"/script--
64
/body
65
/html
66