-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SDESK-4436] Template for downloading events for courts listing
added entry to planning_export_templates data file
- Loading branch information
1 parent
ffe78c7
commit 401e166
Showing
2 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
[{ | ||
"_id" : "planning_outlook", | ||
"name" : "outlook", | ||
"type" : "planning", | ||
"data" : { | ||
"slugline" : "Outlook", | ||
"body_html_template" : "outlook_planning_template.html" | ||
[ | ||
{ | ||
"_id" : "planning_outlook", | ||
"name" : "outlook", | ||
"type" : "planning", | ||
"data" : { | ||
"slugline" : "Outlook", | ||
"body_html_template" : "outlook_planning_template.html" | ||
}, | ||
"label" : "Outlook" | ||
}, | ||
"label" : "Outlook" | ||
}] | ||
{ | ||
"_id" : "event_courts_download", | ||
"name" : "event_courts_download", | ||
"type" : "event", | ||
"data" : { | ||
"template_file" : "event_courts_download.html" | ||
}, | ||
"label" : "Courts", | ||
"download" : true | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{% for item in items %}{{ item['dates']['start'].strftime('%H%M') }} - {{ item['name'] }}.{% if (item.get('location') or [])|length > 0 %}{% for l in item.location %} {{ l.name }}{% endfor %}{% endif %} | ||
{% endfor %} |