{% ckan_extends %} |
{% ckan_extends %} |
|
|
{# Remove 'free extras' from the package form. If you're using |
{# Remove 'free extras' from the package form. If you're using |
convert_to/from_extras() as we are with our 'custom_text' field below then |
convert_to/from_extras() as we are with our 'custom_text' field below then |
you need to remove free extras from the form, or editing your custom field |
you need to remove free extras from the form, or editing your custom field |
won't work. #} |
won't work. #} |
{% block custom_fields %} |
{% block custom_fields %} |
{% endblock %} |
{% endblock %} |
|
|
{# https://github.com/okfn/ckan/blob/master/ckan/templates/macros/form.html documents the macros for fields #} |
{# https://github.com/okfn/ckan/blob/master/ckan/templates/macros/form.html documents the macros for fields #} |
|
|
{% block package_metadata_fields %} |
|
{{ form.input('url', label=_('Source URL'), id='field-url', |
|
placeholder=_('URL where dataset came from or more information can be obtained'), |
|
value=data.url, error=errors.url, classes=['control-medium']) }} |
|
{{ super() }} |
|
|
|
{% endblock %} |
|
|
|
{# hide author/maintainer fields #} |
{# hide author/maintainer fields #} |
{% block package_metadata_author %} |
{% block package_metadata_author %} |
{% endblock %} |
{% endblock %} |
|
|
{% block package_metadata_fields_maintainer %} |
{% block package_metadata_fields_maintainer %} |
{% endblock %} |
{% endblock %} |
|
|
|
|