Skip to content

Commit

Permalink
#103 add experiments ...
Browse files Browse the repository at this point in the history
  • Loading branch information
webgisdeveloper committed Apr 6, 2021
1 parent 74a42d9 commit 726e122
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions simccs_maptool/templates/simccs_maptool/build.html
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@
div.innerHTML += '<button type="button" class="btn btn-primary btn-sm btn-block" onclick=case_submitexperiment("'+ panelid +'")><strong>Create a New Experiment</strong></button>';
div.innerHTML += '<button type="button" class="btn btn-primary btn-sm btn-block" onclick=case_submitmultipleexperiments("'+ panelid +'")><strong>Create Multiple Experiments</strong></button>';
//div.innerHTML += '<a target="_blank" href="" id="case_view_experiment_' + panelid+ '" style="display: none;">View Experiment Summary</a>';
div.innerHTML += '<ul id="list_view_experiment_' + panelid +'"> </ul>';
div.innerHTML += '<ul id="list_view_experiment_' + panelid +'"> </ul>';}

return div;
}

Expand Down Expand Up @@ -738,7 +739,18 @@ <h5 class="modal-title">Generate MPS file</h5>

// simple show the data
sidebar.open(panelid);


// add experiments data
var list_view_experiment = document.getElementById("list_view_experiment_" + panelid);
for (const entry of scenario_data['experiments']) {
var a = document.createElement('a');
a.href = '/workspace/experiments/'+ entry['experiment_id']+'/';
a.target = "_blank";
a.innerHTML ="view: " + "<strong>" + entry['experiment_name'] + "</strong>";
var li = document.createElement('li');
li.appendChild(a);
list_view_experiment.appendChild(li);
}
}

// load workspace id
Expand Down

0 comments on commit 726e122

Please sign in to comment.