Skip to content

Commit

Permalink
gitignored build and dist, added date template with help_text
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Mayer authored and Florian Mayer committed Dec 10, 2014
1 parent f7ba8fb commit f1d1c96
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
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 ckanext/scheming/templates/scheming/form_snippets/date.html
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 %}

0 comments on commit f1d1c96

Please sign in to comment.