From df148909bf2eee492f2dcf03804b2a988e77837c Mon Sep 17 00:00:00 2001 From: Zak Timson Date: Thu, 14 Sep 2017 13:52:39 -0400 Subject: [PATCH] Created expert witnesses pages --- OACPL/urls.py | 5 +++- case_law/templates/browser.html | 8 +++---- expert_witnesses/templates/expertBrowser.html | 23 +++++++++++++++++++ expert_witnesses/templates/expertViewer.html | 5 ++++ expert_witnesses/views.py | 17 +++++++++++++- templates/base.html | 13 ++++++++--- 6 files changed, 62 insertions(+), 9 deletions(-) create mode 100644 expert_witnesses/templates/expertBrowser.html create mode 100644 expert_witnesses/templates/expertViewer.html diff --git a/OACPL/urls.py b/OACPL/urls.py index 666252b..bdb6df4 100644 --- a/OACPL/urls.py +++ b/OACPL/urls.py @@ -10,6 +10,7 @@ from django.views.static import serve import main.views import case_law.views import charter_members.views +import expert_witnesses.views import newsletters.views @@ -25,7 +26,9 @@ urlpatterns = [ url(r'^admin/logout', main.views.logout, name='logout'), url(r'^admin/', admin.site.urls, name='admin'), url(r'^attorney/(?P\d+)', charter_members.views.index, name='attorney'), - url(r'^caselaw/', case_law.views.browser, name='browser'), + url(r'^caselaw/', case_law.views.browser, name='caselaw'), + url(r'^experts/', expert_witnesses.views.browser, name='experts'), + url(r'^experts/(\d+)', expert_witnesses.views.viewer, name='expert'), url(r'^media/secure/(?P.*)$', protected_serve, {'document_root': os.path.join(settings.MEDIA_ROOT, 'secure')}, name='secure media'), url(r'^media/(?P.*)$', serve, {'document_root': settings.MEDIA_ROOT}, name='media'), url(r'^newsletter/subscribe', newsletters.views.subscribe, name='subscribe'), diff --git a/case_law/templates/browser.html b/case_law/templates/browser.html index 0828f7e..fe2af62 100644 --- a/case_law/templates/browser.html +++ b/case_law/templates/browser.html @@ -34,11 +34,11 @@ {% for item in urls %} - {% if request.user.is_staff %}