diff --git a/geonode/static/geonode/js/upload/time.js b/geonode/static/geonode/js/upload/time.js index 30e86c3657d..bdd55c79b6f 100644 --- a/geonode/static/geonode/js/upload/time.js +++ b/geonode/static/geonode/js/upload/time.js @@ -235,6 +235,7 @@ define(['upload/upload', $(function () { $("#next").on('click', doTime); + const settingsForm = document.getElementById("settings"); $("#DISCRETE_INTERVAL,#CONTINUOUS_INTERVAL").on('change',function(ev) { $("#precision").show(); @@ -245,7 +246,15 @@ define(['upload/upload', }); $('#time-series-toggle-choice').on('change',function(ev) { + // show time form and advamced options + if (settingsForm.style.display !== "none"){ + settingsForm.style.display = "none"; + } + else{ + settingsForm.style.display = "block"; + } if(ev.target.value === 'on' && ev.target.checked) { + if($('#existing').val()) { $('input:radio[id="existing"]').prop("checked", true); $('#existing').trigger("click"); diff --git a/geonode/upload/templates/upload/dataset_upload_base.html b/geonode/upload/templates/upload/dataset_upload_base.html index 582a8d6da2e..1f5b4f37fb2 100644 --- a/geonode/upload/templates/upload/dataset_upload_base.html +++ b/geonode/upload/templates/upload/dataset_upload_base.html @@ -13,8 +13,7 @@ {% block body_outer %}
{% block body %}{% endblock body %} diff --git a/geonode/upload/templates/upload/dataset_upload_time.html b/geonode/upload/templates/upload/dataset_upload_time.html index 814864b321d..c950ebaf4a1 100644 --- a/geonode/upload/templates/upload/dataset_upload_time.html +++ b/geonode/upload/templates/upload/dataset_upload_time.html @@ -6,18 +6,29 @@ {% block body_class %}data data-list upload{% endblock %} -{% block title %} {% trans "Upload Dataset Step: Time" %} - {{ block.super }} {% endblock %} +{% block title %} {% trans "Time series configuration" %} - {{ block.super }} {% endblock %} +{% block page_title %}{% trans "Time series configuration" %}{% endblock page_title %} {% block head %} {{ block.super }} {% endblock %} {% block body %} -
-

{% trans "Inspect data for " %} "{{ dataset_name }}"

- +
+
+ {% trans "Date time fields were detected inside" %} "{{ dataset_name }}". {% trans "Do you want to configure it as a time series dataset?" %} + +

{% blocktrans %}Toggling this selector allows you to configure (or not) this data as a time series; in this case you will also have to select an attribute + to drive the time dimension. +

+ If GeoNode is not able to parse any of the values for the selected attribute red markers will appear to highlight the problems. +

+ More information is provided at the bottom of the page in the "Additional Help" sections. + {% endblocktrans %} +

+
+
- {% csrf_token %}
@@ -25,20 +36,11 @@

{% trans "Inspect data for " %} "{{ dataset_name }}"

{% trans "Configure as Time-Series" %}

- -

{% blocktrans %}Toggling this selector allows you to configure (or not) this data as a time series; in this case you will also have to select an attribute - to drive the time dimension. -

- If GeoNode is not able to parse any of the values for the selected attribute red markers will appear to highlight the problems. -

- More information is provided at the bottom of the page in the "Additional Help" sections. - {% endblocktrans %}

-
- -