-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
path resource_id to each chart field form snippet
- Loading branch information
Showing
4 changed files
with
21 additions
and
6 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
ckanext/charts/templates/charts/snippets/charts_form_field.html
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,14 @@ | ||
{#- master snippet for all charts form fields -#} | ||
|
||
{%- set form_snippet = field.form_snippet|default('repeating_subfields.html' if field.repeating_subfields else 'text.html') -%} | ||
|
||
{%- if '/' not in form_snippet -%} | ||
{%- set form_snippet = 'scheming/form_snippets/' + form_snippet -%} | ||
{%- endif -%} | ||
|
||
{%- snippet form_snippet, | ||
field=field, | ||
data=data, | ||
errors=errors, | ||
resource_id=resource_id | ||
-%} |
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
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,3 +1,3 @@ | ||
{% for field in fields if field.form_snippet is not none %} | ||
{% snippet 'scheming/snippets/form_field.html', field=field, data=data, errors=errors %} | ||
{% snippet 'charts/snippets/charts_form_field.html', field=field, data=data, errors=errors, resource_id=resource_id %} | ||
{% endfor %} |
3 changes: 0 additions & 3 deletions
3
ckanext/charts/templates/scheming/form_snippets/chart_filter.html
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