aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-20 09:37:24 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-20 09:37:45 +0100
commit025f217a973fc91a273afc3b5b5e6a62c5fa7328 (patch)
tree4bcbdd9619a55532650e5e208c2f40cb36d269bc /ctrack/organisations
parent990807fa2fcdea85c20e42359a00fbe0fa3a21d0 (diff)
added Note form - tests passing
Diffstat (limited to 'ctrack/organisations')
-rw-r--r--ctrack/organisations/templates/organisations/organisation_detail.html2
-rw-r--r--ctrack/organisations/views.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/ctrack/organisations/templates/organisations/organisation_detail.html b/ctrack/organisations/templates/organisations/organisation_detail.html
index 8a3d644..d981479 100644
--- a/ctrack/organisations/templates/organisations/organisation_detail.html
+++ b/ctrack/organisations/templates/organisations/organisation_detail.html
@@ -133,7 +133,7 @@
<path fill-rule="evenodd"
d="M5 10.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5zm0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5z"/>
</svg>
- <a href="{% url "register:event_create_simple_event_from_org_with_type" object.slug 'NOTE' %}">New
+ <a href="{% url "register:event_create_note" %}">New
note</a>
</div>
diff --git a/ctrack/organisations/views.py b/ctrack/organisations/views.py
index b688fea..fa811eb 100644
--- a/ctrack/organisations/views.py
+++ b/ctrack/organisations/views.py
@@ -13,10 +13,10 @@ from ctrack.caf.models import CAF, EssentialService
from ctrack.register.models import EngagementEvent
from .forms import AddressInlineFormSet, IncidentReportForm, OrganisationCreateForm
from .models import IncidentReport, Organisation, Person
-# TODO - needs a permission on this view
from .utils import filter_private_events
+# TODO - needs a permission on this view
def essential_service_detail(request, pk):
es = EssentialService.objects.get(pk=pk)
org = es.organisation