Skip to content
Snippets Groups Projects
Commit d2e5d014 authored by anonymous's avatar anonymous
Browse files

merge

parent 38ed26f3
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -203,10 +203,8 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm ...@@ -203,10 +203,8 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
return ['title','notes'] return ['title','notes']
def _extraFields(self): def _extraFields(self):
##return ['publish_date','access_constraints','temporal_start','temporal_end','spatial_uri']
return ['publish_date', 'temporal_start', 'temporal_end', 'spatial_uri'] return ['publish_date', 'temporal_start', 'temporal_end', 'spatial_uri']
##return ['publish_date','access_constraints','temporal_start','temporal_end','spatial_extension']
return ['publish_date','temporal_start','temporal_end','spatial_extension']
def _extraFieldsOptional(self): def _extraFieldsOptional(self):
return ['access_constraints'] return ['access_constraints']
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
<!-- field title --> <!-- field title -->
{% block package_basic_fields_title %} {% block package_basic_fields_title %}
{{errors}}
{% set error_string = _(_('Title') + ': '+errors.title[0]) if errors.title %} {% set error_string = _(_('Title') + ': '+errors.title[0]) if errors.title %}
{{ form.input('title', id='field-title', label=_('Title'), value=data.title, {{ form.input('title', id='field-title', label=_('Title'), value=data.title,
error=error_string, classes=['control-full'], attrs={'data-module': 'slug-preview-target'}, error=error_string, classes=['control-full'], attrs={'data-module': 'slug-preview-target'},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment