From aef75d1a5cac0d6f3c8ba4d4dfaa3eca7ed0d461 Mon Sep 17 00:00:00 2001 From: nickmwangemi Date: Thu, 10 Aug 2023 11:36:54 +0300 Subject: [PATCH] By-laws on LawLibrary --- .../liiweb/municipal_legislation.html | 23 +++++++++++++ .../open_by_laws/municipal_by_laws_list.html | 34 +++++++++++++++++++ lawlibrary/templates/peachjam/_header.html | 6 ++++ lawlibrary/urls.py | 21 ++++++++++++ lawlibrary/views/legislation.py | 15 ++++++++ open_by_laws/views/by_laws.py | 11 ++++++ 6 files changed, 110 insertions(+) create mode 100644 lawlibrary/templates/liiweb/municipal_legislation.html create mode 100644 lawlibrary/templates/open_by_laws/municipal_by_laws_list.html diff --git a/lawlibrary/templates/liiweb/municipal_legislation.html b/lawlibrary/templates/liiweb/municipal_legislation.html new file mode 100644 index 000000000..de33f8d4c --- /dev/null +++ b/lawlibrary/templates/liiweb/municipal_legislation.html @@ -0,0 +1,23 @@ +{% extends "peachjam/layouts/main.html" %} +{% load i18n %} +{% block title %}{{ locality_legislation_title }}{% endblock %} +{% block page-content %} +
+
+

{{ locality_legislation_title }}

+
+ {% for group in municipality_groups %} +
+ +
+ {% endfor %} +
+
+
+{% endblock %} diff --git a/lawlibrary/templates/open_by_laws/municipal_by_laws_list.html b/lawlibrary/templates/open_by_laws/municipal_by_laws_list.html new file mode 100644 index 000000000..46eb68568 --- /dev/null +++ b/lawlibrary/templates/open_by_laws/municipal_by_laws_list.html @@ -0,0 +1,34 @@ +{% extends "liiweb/legislation_list.html" %} +{% load i18n %} +{% block title %} + {% blocktrans with locality=locality.name %}{{ locality }} By-laws{% endblocktrans %} +{% endblock %} +{% block breadcrumbs %} + +{% endblock %} +{% block page-heading %} +

{% blocktrans with locality=locality.name %}{{ locality }} By-laws{% endblocktrans %}

+{% endblock %} +{% block legislation-nav %} + +{% endblock %} diff --git a/lawlibrary/templates/peachjam/_header.html b/lawlibrary/templates/peachjam/_header.html index 14de65d0e..e4ca84bd8 100644 --- a/lawlibrary/templates/peachjam/_header.html +++ b/lawlibrary/templates/peachjam/_header.html @@ -27,6 +27,12 @@ {% trans 'Provincial Legislation' %} +