Repository: kartoza/prj.app

Issue:
Pluralisation and fixes of headings & menus
Certification menu:

Organisation -> Organisations
Certificate -> Verify certificate

Organisation:

```
Organisation Name : Organisation X
Address : Yogyakarta
Country : Indonesia
Email : example@site.com
Phone : 123456
Organisation owners : Anita Hapsari, 
```

Please standardize on case usage throughout (and in all other views). I prefer title case for first word then lower case for all others e.g.


```
Organisation Name : Organisation X
```

becomes

```
Organisation name : Organisation X
```

(lower case N for name)

In:

http://staging.changelog.qgis.org/en/test/certifyingorganisation/organisation-x/course/test_x-intro_2017-07-01-2017-07-31/ 


Course attendee -> course attendees




I will add more examples here as I see them...but good if you can review each form and menu for consistency.





Discussion:

Resolving patch:
diff --git a/django_project/certification/views/course.py b/django_project/certification/views/course.py
--- a/django_project/certification/views/course.py
+++ b/django_project/certification/views/course.py
@@ -9,6 +9,7 @@
 from django.db import IntegrityError
 from django.core.exceptions import ValidationError
 from braces.views import LoginRequiredMixin
+from base.models import Project
 from ..models import (
     CertifyingOrganisation,
     Course,
@@ -265,6 +266,10 @@ def get_context_data(self, **kwargs):
         context['certificates'] = \
             Certificate.objects.filter(
                 course=self.course).values_list('attendee', flat=True)
+        project_slug = self.kwargs.get('project_slug', None)
+        context['project_slug'] = project_slug
+        if project_slug:
+            context['the_project'] = Project.objects.get(slug=project_slug)
         return context
 
     def get_queryset(self):
diff --git a/django_project/certification/views/course_type.py b/django_project/certification/views/course_type.py
--- a/django_project/certification/views/course_type.py
+++ b/django_project/certification/views/course_type.py
@@ -9,6 +9,7 @@
 from django.db import IntegrityError
 from django.core.exceptions import ValidationError
 from braces.views import LoginRequiredMixin
+from base.models import Project
 from ..models import (
     CertifyingOrganisation,
     CourseType)
@@ -268,6 +269,10 @@ def get_context_data(self, **kwargs):
             CourseTypeDetailView, self).get_context_data(**kwargs)
         context['coursetypes'] = CourseType.objects.filter(
             certifying_organisation=self.certifying_organisation)
+        project_slug = self.kwargs.get('project_slug', None)
+        context['project_slug'] = project_slug
+        if project_slug:
+            context['the_project'] = Project.objects.get(slug=project_slug)
         return context
 
     def get_queryset(self):
diff --git a/django_project/certification/views/training_center.py b/django_project/certification/views/training_center.py
--- a/django_project/certification/views/training_center.py
+++ b/django_project/certification/views/training_center.py
@@ -9,6 +9,7 @@
 from django.db import IntegrityError
 from django.core.exceptions import ValidationError
 from braces.views import LoginRequiredMixin
+from base.models import Project
 from ..models import (
     CertifyingOrganisation,
     TrainingCenter)
@@ -121,6 +122,10 @@ def get_context_data(self, **kwargs):
                         self).get_context_data(**kwargs)
         context['trainingcenters'] = TrainingCenter.objects.filter(
             certifying_organisation=self.certifying_organisation)
+        project_slug = self.kwargs.get('project_slug', None)
+        context['project_slug'] = project_slug
+        if project_slug:
+            context['the_project'] = Project.objects.get(slug=project_slug)
         return context
 
     def get_queryset(self):


Test patch: