Skip to content

Commit

Permalink
[Fixes #10075] Improvements to the upload time step UI (#10094) (#10111)
Browse files Browse the repository at this point in the history
* -[Fixes #10075] Improvements to the upload time step UI

* clarify why user is inside this step

Co-authored-by: Giovanni Allegri <giohappy@gmail.com>
Co-authored-by: Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com>

Co-authored-by: NAGGINDA MARTHA <marthamareal@gmail.com>
Co-authored-by: Giovanni Allegri <giohappy@gmail.com>
Co-authored-by: Alessio Fabiani <alessio.fabiani@geosolutionsgroup.com>
  • Loading branch information
4 people authored Oct 10, 2022
1 parent baad56d commit 82c2bc6
Show file tree
Hide file tree
Showing 3 changed files with 171 additions and 160 deletions.
9 changes: 9 additions & 0 deletions geonode/static/geonode/js/upload/time.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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");
Expand Down
3 changes: 1 addition & 2 deletions geonode/upload/templates/upload/dataset_upload_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@

{% block body_outer %}
<div class="page-header">
<a href="{% dataset_list_url %}" class="btn btn-primary pull-right">{% trans "Explore Datasets" %}</a>
<h2 class="page-title">{% trans "Upload Datasets" %}</h2>
<h2 class="page-title">{% block page_title %}{% trans "Upload Datasets" %}{% endblock page_title %}</h2>
</div>
<div class="row">
{% block body %}{% endblock body %}
Expand Down
Loading

0 comments on commit 82c2bc6

Please sign in to comment.