summaryrefslogtreecommitdiff
path: root/tmpl/base.tmpl
blob: b0fa3f3ddd1143e934abef3c3fba3cd04fbf8b2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?xml version="1.0" encoding="utf-8" ?>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>{% block title %}{% endblock %}</title>
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
		<meta http-equiv="x-ua-compatible" content="ie=edge" />
		{% block head_css_standard %}
		<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css" />
		<link rel="stylesheet" href="bower_components/tether/dist/css/tether.min.css" />
		<link rel="stylesheet" href="css/mcoop.css" />
		{% endblock %}
		{% block head_extra %}{% endblock %}
	</head>
	<body>
		<nav class="navbar navbar-dark bg-dark navbar-expand-lg">
			<a class="navbar-brand" href="/">mcoop</a>
			<div class="collapse navbar-collapse">
				<ul class="navbar-nav mr-auto p-2">
					<li class="nav-item"><a class="nav-link" href="tasks.php">Tasks</a></li>
					<!--<li class="nav-item"><a class="nav-link" href="proposals.php">Proposals</a></li>
					<li class="nav-item"><a class="nav-link" href="bylaws.php">Articles/Bylaws</a></li>-->
					<li class="nav-item"><a class="nav-link" href="members.php">Members</a></li>
					<!--<li class="nav-item"><a class="nav-link" href="directors.php">Directors</a></li>-->
				</ul>
			</div>
			<ul class="navbar-nav ml-auto p-2">
				{% if sess_info.login_member %}
				<li class="nav-item dropdown">
					<a class="nav-link dropdown-toggle" href="#" id="navbar_profile_dropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{ sess_info.login_member.display_name | escape }}</a>
					<div class="dropdown-menu" aria-labelledby="navbar_profile_dropdown">
						<a class="dropdown-item" href="profile.php">Profile</a>
						<a class="dropdown-item" href="logout.php">Logout</a>
					</div>
				</li>
				{% else %}
				<li class="nav-item ml-auto"><a class="nav-link" href="login.php">Login</a></li>
				<li class="nav-item ml-auto"><a class="nav-link" href="register.php">Register</a></li>
				{% endif %}
			</ul>
		</nav>
		<div class="container-fluid">
			{% block alerts %}
			{% for alert in danger_alerts %}
			<div class="alert alert-danger">
				{{ alert | raw }}
			</div>
			{% endfor %}
			{% for alert in success_alerts %}
			<div class="alert alert-success">
				{{ alert | raw }}
			</div>
			{% endfor %}
			{% endblock %}

			<div class="main_container">
{% block page_contents %}{% endblock %}
			</div>
		</div>
		{% block body_js %}<script src="bower_components/jquery/dist/jquery.min.js"></script>
        <script src="bower_components/tether/dist/js/tether.min.js"></script>
        <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
		{%- endblock %}
	</body>
</html>