minor changes to reporting stuff

This commit is contained in:
Naomi 2018-09-12 16:48:23 +01:00
parent eb6356f715
commit 3faabda3f2
3 changed files with 16 additions and 2 deletions

View File

@ -416,7 +416,7 @@ display:
default_argument_type: query_parameter
default_argument_options:
query_param: preset_title
fallback: ' '
fallback: '<p style="display:none;"></p>'
multiple: and
default_argument_skip_url: false
summary_options:

View File

@ -3,3 +3,12 @@ opencase_reporting.reporting:
menu_name: main
url: internal:/opencase/reporting/actors
weight: 1
# Preset menu items definition
entity.preset.collection:
title: 'Preset'
route_name: entity.preset.collection
description: 'List Preset (bundles)'
parent: system.admin_structure
weight: 99

View File

@ -1,5 +1,10 @@
<select id="opencase_reporting_new">
<option disabled selected>Start a new report</option>
<option value="/opencase/reporting/actors">Actor based</option>
<option value="/opencase/reporting/cases">Case based</option>
</select>
<select id="opencase_reporting_presets_load">
<option disabled selected>Load preset</option>
<option disabled selected>Load a preset</option>
{% for preset in presets %}
<option value={{ preset.url }}>{{ preset.title }}</option>
{% endfor %}