2017-08-17 13:20:57 -04:00
{% load static %}
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "utf-8" >
2018-01-31 18:55:36 -05:00
< 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. ">
2017-08-17 13:20:57 -04:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
< title > OACPL{% if title %} - {{ title }}{% endif %}< / title >
2018-01-31 18:55:36 -05:00
< 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.3/css/bootstrap.min.css"/>
< link rel = "stylesheet" type = "text/css" href = "//fonts.googleapis.com/css?family=Raleway" / >
2017-09-15 10:49:00 -04:00
< script src = "https://use.fontawesome.com/d71773005c.js" > < / script >
2017-08-17 13:20:57 -04:00
< script src = "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" > < / script >
2017-09-04 01:16:49 -04:00
< 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 >
2018-01-14 16:48:14 -05:00
< script src = "https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-beta.3/js/bootstrap.min.js" > < / script >
2017-08-17 13:20:57 -04:00
2018-01-25 01:47:42 -05:00
< script >
2018-01-31 18:55:36 -05:00
$.ajaxSetup({
beforeSend: function (xhr, settings) {
2018-01-25 01:47:42 -05:00
xhr.setRequestHeader('X-CSRFToken',
'{{ csrf_token }}');
2018-01-31 18:55:36 -05:00
}
});
2018-01-25 01:47:42 -05:00
< / script >
2018-01-06 13:43:15 -05:00
{{ form.media }}
2017-08-17 13:20:57 -04:00
{% block head %}
{% endblock %}
< / head >
< body >
2017-09-04 01:16:49 -04:00
{% csrf_token %}
2017-09-15 12:41:20 -04:00
{% if navbar|default_if_none:True %}
<!-- Navbar -->
< nav class = "navbar navbar-expand-lg navbar-light bg-white py-4" >
< div class = "container" >
< a class = "navbar-brand text-dark-primary" href = "{% url 'home' %}" >
2018-01-31 18:55:36 -05:00
< img src = "{% static 'main/img/logo.png' %}" width = "30" height = "30" class = "d-inline-block align-top"
alt="">
2017-09-15 12:41:20 -04:00
< div class = "d-none d-sm-inline-block" >
ONTARIO ASSOCIATION OF
< br >
CHILD PROTECTION LAWYERS
< / div >
< div class = "d-inline-block d-sm-none" >
OACPL
< / div >
< / a >
< div class = "collapse navbar-collapse" id = "navbarSupportedContent" >
< ul class = "navbar-nav ml-auto" >
2018-01-14 17:55:35 -05:00
< li class = "nav-item dropdown text-dark-primary" >
2018-01-31 18:55:36 -05:00
< a class = "nav-link dropdown-toggle" href = "#" id = "navbarDropdown" role = "button"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">HOME< / a >
2018-01-14 17:55:35 -05:00
< div class = "dropdown-menu" aria-labelledby = "navbarDropdown" >
< a class = "dropdown-item" href = "{% url 'home' %}" > Front Page< / a >
2018-02-26 22:02:50 -05:00
< a class = "dropdown-item" href = "{% url 'events' %}" > Events< / a >
< a class = "dropdown-item" href = "{% url 'members' %}" > Members< / a >
2018-01-14 17:55:35 -05:00
< a class = "dropdown-item" href = "{% url 'newsletters' %}" > Newsletters< / a >
2018-02-25 23:48:34 -05:00
< a class = "dropdown-item" href = "{% url 'newsroom' %}" > Newsroom< / a >
2018-01-14 17:55:35 -05:00
< / div >
2017-08-17 13:20:57 -04:00
< / li >
2017-08-18 23:37:16 -04:00
< li class = "nav-item text-dark-primary" >
2017-10-24 00:57:44 -04:00
< a class = "nav-link" href = "{% url 'forum' %}" > FORUM< / a >
2017-08-18 23:37:16 -04:00
< / li >
2017-08-17 13:20:57 -04:00
< li class = "nav-item text-dark-primary" >
2017-09-15 12:41:20 -04:00
< a class = "nav-link" href = "{% url 'caselaw' %}" > CASE LAW< / a >
2017-08-17 13:20:57 -04:00
< / li >
2017-09-16 16:12:29 -04:00
< li class = "nav-item text-dark-primary" >
< a class = "nav-link" href = "{% url 'experts' %}" > EXPERTS< / a >
2017-09-15 12:41:20 -04:00
< / li >
{% if request.user.is_staff %}
< li class = "nav-item text-dark-primary" >
2017-10-24 00:57:44 -04:00
< a class = "nav-link" href = "/admin" > ADMIN PANEL< / a >
2017-09-15 12:41:20 -04:00
< / li >
{% endif %}
2018-01-31 18:55:36 -05:00
{% if request.user.is_authenticated %}
2017-09-15 12:41:20 -04:00
< li class = "nav-item text-dark-primary" >
< a class = "nav-link" href = "{% url 'logout' %}" > LOGOUT< / a >
< / li >
{% endif %}
{% if not request.user.is_authenticated %}
< li class = "nav-item text-dark-primary" >
2018-01-27 11:18:02 -05:00
< a class = "nav-link" href = "{% url 'login' %}" > LOGIN/REGISTER< / a >
2017-09-15 12:41:20 -04:00
< / li >
{% endif %}
< / ul >
< / div >
2018-01-31 18:55:36 -05:00
< button class = "navbar-toggler ml-auto" type = "button" data-toggle = "collapse"
data-target="#navbarSupportedContent"
2017-09-15 12:41:20 -04:00
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
< span class = "navbar-toggler-icon" > < / span >
< / button >
2017-08-17 13:20:57 -04:00
< / div >
2018-01-31 18:55:36 -05:00
2017-09-15 12:41:20 -04:00
< / nav >
2018-01-31 18:55:36 -05:00
{% if banner.value %}
< div class = "bg-danger w-100 text-center py-1" > {{ banner.value | safe }}< / div >
{% endif %}
2017-09-15 12:41:20 -04:00
{% endif %}
2017-08-17 13:20:57 -04:00
2017-09-15 12:41:20 -04:00
<!-- Content -->
2017-08-17 13:20:57 -04:00
{% block body %}
{% endblock %}
2017-09-15 12:41:20 -04:00
{% if footer|default_if_none:True %}
<!-- Footer -->
< footer class = "container-fluid bg-white text-dark-primary py-3" >
< div class = "container text-center" >
2018-01-31 18:55:36 -05:00
< p class = "mb-0" > © 2017 Ontario Association of Child Protection Lawyers. Created By < a
href="http://zakscode.com">Zak Timson< / a > < / p >
2017-09-15 12:41:20 -04:00
< / div >
< / footer >
{% endif %}
2017-08-17 13:20:57 -04:00
< / body >
< / html >