Changeset - 6fb680931627
[Not reviewed]
0 4 0
Joel Addison - 5 years ago 2019-10-13 12:22:15
joel@addison.net.au
Improve registration report formatting

Show title in list instead of method name.
Add page title and head title to reports.
4 files changed with 11 insertions and 3 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templates/registrasion/report.html
Show inline comments
...
 
@@ -4,2 +4,5 @@
 

	
 
{% block page_title %}Registration report{% endblock %}
 
{% block head_title %}Registration report - {{ title }}{% endblock %}
 

	
 
{% block content %}
pinaxcon/templates/registrasion/reports_list.html
Show inline comments
...
 
@@ -2,6 +2,7 @@
 
{% load registrasion_tags %}
 
{% block content %}
 

	
 
<h2>Registration reports</h2>
 
{% block page_title %}Registration reports{% endblock %}
 
{% block head_title %}Registration reports{% endblock %}
 

	
 
{% block content %}
 
<table class="table table-striped">
...
 
@@ -10,3 +11,3 @@
 
      <td>
 
        <a href="{{ report.url }}">{{ report.name }}</a>
 
        <a href="{{ report.url }}">{{ report.title }}</a>
 
      </td>
vendor/registrasion/registrasion/reporting/reports.py
Show inline comments
...
 
@@ -80,2 +80,3 @@ class _ReportTemplateWrapper(object):
 

	
 

	
 
class BasicReport(Report):
...
 
@@ -168,2 +169,3 @@ class QuerysetReport(BasicReport):
 

	
 

	
 
class Links(Report):
...
 
@@ -195,2 +197,3 @@ class Links(Report):
 

	
 

	
 
def report_view(title, form_type=None):
vendor/registrasion/registrasion/reporting/views.py
Show inline comments
...
 
@@ -53,2 +53,3 @@ def reports_list(request):
 
            "name": report.__name__,
 
            "title": report.title,
 
            "url": reverse(report),
0 comments (0 inline, 0 general)