-
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.
DATASHADES-324 / write some tests, refactoring
- Loading branch information
Showing
11 changed files
with
128 additions
and
268 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
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
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
This file was deleted.
Oops, something went wrong.
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
19 changes: 19 additions & 0 deletions
19
ckanext/charts/templates/scheming/form_snippets/chart_text.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,19 @@ | ||
{#} alterations: type=field.input_type {#} | ||
|
||
{% import 'macros/form.html' as form %} | ||
|
||
{% call form.input( | ||
field.field_name, | ||
id='field-' + field.field_name, | ||
label=h.scheming_language_text(field.label), | ||
placeholder=h.scheming_language_text(field.form_placeholder), | ||
value=data[field.field_name], | ||
error=errors[field.field_name], | ||
classes=field.classes if 'classes' in field else ['control-medium'], | ||
attrs=dict({"class": "form-control"}, **(field.get('form_attrs', {}))), | ||
is_required=h.scheming_field_required(field), | ||
type=field.input_type | ||
) | ||
%} | ||
{%- snippet 'scheming/form_snippets/help_text.html', field=field -%} | ||
{% endcall %} |
Oops, something went wrong.