forked from ckan/ckanext-scheming
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gitignored build and dist, added date template with help_text
- Loading branch information
Florian Mayer
authored and
Florian Mayer
committed
Dec 10, 2014
1 parent
f7ba8fb
commit f1d1c96
Showing
2 changed files
with
20 additions
and
0 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,3 +1,5 @@ | ||
*.pyc | ||
ckanext_scheming.egg-info/* | ||
links/* | ||
build/* | ||
dist/* |
18 changes: 18 additions & 0 deletions
18
ckanext/scheming/templates/scheming/form_snippets/date.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,18 @@ | ||
{% 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), | ||
type='date', | ||
value=data[field.field_name], | ||
error=errors[field.field_name], | ||
classes=['control-medium'], | ||
attrs=field.form_attrs if 'form_attrs' in field else {}, | ||
is_required=h.scheming_field_required(field) | ||
) | ||
%} | ||
{% if field.help_text %} | ||
{{ form.info(text=field.help_text, inline=true) }} | ||
{% endif %} | ||
{% endcall %} |