diff --git a/ckanext/bulkupload/templates/package/resource_busoperator.html b/ckanext/bulkupload/templates/package/resource_busoperator.html index 15a2bbc..7d46ed6 100644 --- a/ckanext/bulkupload/templates/package/resource_busoperator.html +++ b/ckanext/bulkupload/templates/package/resource_busoperator.html @@ -3,17 +3,19 @@ {% block primary_content %}

-
-{{ pkg_dict.title }}
-
-{{ pkg_dict.title }}
-
-{{ pkg_dict.title }}
- {% block form %}
+ {{ form.input('title', id='field-dataset-title', label=_('Dataset Title'), value=pkg_dict.title, error="", placeholder='eg. TransX data') }} +
{{ form.info('The name of the dataset') }}
+ {{ form.input('date-start', type='date', id='field-date-start', label=_('Date start'), value=pkg_dict.dataset_start_date, error='') }} +
{{ form.info('Date start') }}
+ {{ form.input('date-end', type='date', id='field-date-end', label=_('Date end'), value=pkg_dict.dataset_end_date, error='') }} +
{{ form.info('Date end') }}
+ {{ form.input('organization', id='field-organization', label=_('Organization'), value=pkg_dict.organization.title, error='') }} +
{{ form.info('Organiation') }}
+ -
+
@@ -32,6 +34,7 @@

{{ _('What are data together with a description and other information, at a fixed URL. Datasets are what users see when searching for data. {% endtrans %} + {{pkg_dict.organization.title}}

diff --git a/ckanext/bulkupload/views.py b/ckanext/bulkupload/views.py index 48bcd56..523eafe 100644 --- a/ckanext/bulkupload/views.py +++ b/ckanext/bulkupload/views.py @@ -80,6 +80,8 @@ def package_busoperator(): 'private': False, 'status': 'active', 'owner_org': form_data['owner_org'], + 'dataset_start_date': form_data['date-start'], + 'dataset_end_date': form_data['date-end'], } try: x = tk.get_action("package_create")(context, data_dict)