parent
3cb803ffe3
commit
fadf540422
|
@ -31,10 +31,21 @@
|
||||||
<%def name="extra_styles()">
|
<%def name="extra_styles()">
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
|
|
||||||
|
% if use_form:
|
||||||
#report-description {
|
#report-description {
|
||||||
margin-top: 2em;
|
margin-top: 2em;
|
||||||
margin-left: 2em;
|
margin-left: 2em;
|
||||||
}
|
}
|
||||||
|
% else:
|
||||||
|
.report-selection {
|
||||||
|
margin-left: 10em;
|
||||||
|
margin-top: 3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.report-selection h3 {
|
||||||
|
margin-top: 2em;
|
||||||
|
}
|
||||||
|
% endif
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</%def>
|
</%def>
|
||||||
|
@ -48,6 +59,7 @@
|
||||||
|
|
||||||
<div style="display: flex; justify-content: space-between;">
|
<div style="display: flex; justify-content: space-between;">
|
||||||
|
|
||||||
|
% if use_form:
|
||||||
<div class="form-wrapper">
|
<div class="form-wrapper">
|
||||||
<p>Please select the type of report you wish to generate.</p>
|
<p>Please select the type of report you wish to generate.</p>
|
||||||
|
|
||||||
|
@ -57,6 +69,18 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div><!-- form-wrapper -->
|
</div><!-- form-wrapper -->
|
||||||
|
% else:
|
||||||
|
<div>
|
||||||
|
<p>Please select the type of report you wish to generate.</p>
|
||||||
|
|
||||||
|
<div class="report-selection">
|
||||||
|
% for key, report in reports.items():
|
||||||
|
<h3>${h.link_to(report.name, url('generate_specific_report', type_key=key))}</h3>
|
||||||
|
<p>${report.__doc__}</p>
|
||||||
|
% endfor
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
% endif
|
||||||
|
|
||||||
<ul id="context-menu">
|
<ul id="context-menu">
|
||||||
${self.context_menu_items()}
|
${self.context_menu_items()}
|
||||||
|
|
|
@ -319,6 +319,8 @@ class GenerateReport(View):
|
||||||
'reports': reports,
|
'reports': reports,
|
||||||
'report_descriptions': dict([(r.type_key, r.__doc__)
|
'report_descriptions': dict([(r.type_key, r.__doc__)
|
||||||
for r in reports.values()]),
|
for r in reports.values()]),
|
||||||
|
'use_form': self.rattail_config.getbool('tailbone', 'reporting.choosing_uses_form',
|
||||||
|
default=True),
|
||||||
}
|
}
|
||||||
|
|
||||||
def generate(self):
|
def generate(self):
|
||||||
|
|
Loading…
Reference in a new issue