summaryrefslogtreecommitdiff
path: root/tmpl/base.tmpl
diff options
context:
space:
mode:
authorKyle McFarland <tfkyle@gmail.com>2018-01-31 00:51:07 -0600
committerKyle McFarland <tfkyle@gmail.com>2018-01-31 00:51:07 -0600
commit61d1aa04d8d44b17bfe6dace90088669fc6c3df8 (patch)
tree7ede15c880e4c41a18cded46fe6d03fb2dc4543b /tmpl/base.tmpl
downloadmcoop-master.zip
mcoop-master.tar.gz
mcoop-master.tar.bz2
Initial importHEADmaster
* Registration system's almost done * Just part way through implementing tasks So not much done yet, but it's a start.
Diffstat (limited to 'tmpl/base.tmpl')
-rw-r--r--tmpl/base.tmpl64
1 files changed, 64 insertions, 0 deletions
diff --git a/tmpl/base.tmpl b/tmpl/base.tmpl
new file mode 100644
index 0000000..b0fa3f3
--- /dev/null
+++ b/tmpl/base.tmpl
@@ -0,0 +1,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>