Initial commit
[ckanext-agls.git] / ckanext / agls / templates / package / snippets / package_metadata_fields.html



























1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{% ckan_extends %}
 
{# 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
you need to remove free extras from the form, or editing your custom field
won't work. #}
{% block custom_fields %}
{% endblock %}
 
{# 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 #}
{% block package_metadata_author %}
{% endblock %}
 
{% block package_metadata_fields_maintainer %}
{% endblock %}