oacpl/templates/base.html

94 lines
4.2 KiB
HTML
Raw Normal View History

2017-08-17 13:20:57 -04:00
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="The Ontario Association of Child Protection Lawyers started in Spring 2017 in Windsor, Ontario with a group of Family Lawyers who saw a need to increase the level of advocacy for children, families, and communities that were struggling in terms of Child Welfare. ">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>OACPL{% if title %} - {{ title }}{% endif %}</title>
<link rel="icon" type="image/png" href="{% static 'main/img/logo.png' %}"/>
<link rel="stylesheet" href="{% static 'main/css/index.css' %}"/>
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-beta/css/bootstrap.css"/>
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Raleway"/>
<link rel="stylesheet" href="{% static 'font-awesome-4.7.0/css/font-awesome.min.css' %}">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
2017-09-03 23:57:22 -04:00
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"></script>
2017-08-17 13:20:57 -04:00
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-beta/js/bootstrap.min.js"></script>
{% block head %}
{% endblock %}
</head>
<body>
{% csrf_token %}
2017-08-17 13:20:57 -04:00
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-light bg-white py-4">
2017-09-05 20:13:03 -04:00
<div class="container">
2017-08-18 21:24:33 -04:00
<a class="navbar-brand text-dark-primary" href="{% url 'home' %}">
2017-08-17 13:20:57 -04:00
<img src="{% static 'main/img/logo.png' %}" width="30" height="30" class="d-inline-block align-top" alt="">
2017-09-05 19:40:00 -04:00
<div class="d-none d-sm-inline-block">
2017-08-17 13:20:57 -04:00
ONTARIO ASSOCIATION OF
<br>
CHILD PROTECTION LAWYERS
</div>
2017-09-05 19:40:00 -04:00
<div class="d-inline-block d-sm-none">
OACPL
</div>
2017-08-17 13:20:57 -04:00
</a>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item text-dark-primary">
2017-08-18 21:24:33 -04:00
<a class="nav-link" href="{% url 'home' %}">HOME</a>
2017-08-17 13:20:57 -04:00
</li>
2017-09-03 17:02:57 -04:00
<li class="new-item text-dark-primary">
<a class="nav-link" href="{% url 'newsletters' %}">NEWSLETTERS</a>
2017-08-17 13:20:57 -04:00
</li>
<li class="nav-item text-dark-primary">
2017-09-03 17:44:07 -04:00
<a class="nav-link" href="#">FORUM</a>
2017-08-17 13:20:57 -04:00
</li>
<li class="nav-item text-dark-primary">
2017-09-05 19:29:42 -04:00
<a class="nav-link" href="{% url 'browser' %}">CASE LAW</a>
2017-08-17 13:20:57 -04:00
</li>
2017-09-13 22:08:58 -04:00
<li class="nav-item text-dark-primary">
<a class="nav-link" href="#">EXPERTS</a>
</li>
2017-08-17 13:20:57 -04:00
{% if request.user.is_staff %}
<li class="nav-item text-dark-primary">
<a class="nav-link" href="/admin/">ADMIN PANEL</a>
</li>
{% endif %}
2017-08-18 23:37:16 -04:00
{% if request.user.is_authenticated%}
<li class="nav-item text-dark-primary">
<a class="nav-link" href="{% url 'logout' %}">LOGOUT</a>
</li>
{% endif %}
2017-08-17 13:20:57 -04:00
{% if not request.user.is_authenticated %}
<li class="nav-item text-dark-primary">
2017-08-18 23:37:16 -04:00
<a class="nav-link" href="/admin/">LOGIN</a>
2017-08-17 13:20:57 -04:00
</li>
{% endif %}
</ul>
</div>
2017-09-05 20:13:03 -04:00
<button class="navbar-toggler ml-auto" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</div>
2017-08-17 13:20:57 -04:00
</nav>
{% block body %}
{% endblock %}
<!-- Footer -->
<footer class="container-fluid bg-white text-dark-primary py-3">
<div class="container text-center">
<p class="mb-0">© 2017 Ontario Association of Child Protection Lawyers.</p>
</div>
</footer>
</body>
</html>