##// END OF EJS Templates
Optmize plots mods
jespinoza -
r3:83075d03134d
parent child
Show More

The requested changes are too big and content was truncated. Show full diff

1 NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
@@ -1,67 +1,68
1 1 {% extends "base.html" %}
2 2
3 3 {% comment %}
4 4 Written by Bill Rideout brideout@haystack.mit.edu
5 5
6 6 Base template for Madrigal show experiment web interface
7 7
8 8 $Id: show_experiment.html 7310 2021-03-02 14:31:06Z brideout $
9 9 {% endcomment %}
10 10
11 11 {% block title %}Show Madrigal experiment{% endblock %}
12 12
13 13 {% block extra_head %}
14 <script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
14 15 <script>
15 16
16 17 function changeFile (select) {
17 18 var basename = select.options[select.selectedIndex].value;
18 19 {% if form.exp_id %}
19 20 var url = '{% url 'change_files' %}' + '?experiment_list={{ form.exp_id.label }}&file_list=' + basename;
20 21 {% else %}
21 22 var exp_id = $("#id_experiment_list")[0].options[$("#id_experiment_list")[0].selectedIndex].value;
22 23 var url = '{% url 'change_files' %}' + '?experiment_list=' + exp_id + '&file_list=' + basename;
23 24 {% endif %}
24 25 // first delete all forms that are now out of date
25 26 divIndex = $(".single_form").index($( "#file_buttons" ))
26 27 $(".single_form").slice(divIndex).empty()
27 28 // second populate the file_list html if '0' not selected
28 29 if (basename != '0') {
29 30 $(".single_form").slice(divIndex,divIndex+1).load(url);
30 31 }
31 32 }
32 33
33 34 {% include "madweb/fileDownload.js" %}
34 35
35 36 </script>
36 37 {% endblock %}
37 38
38 39 {% block content %}
39 40 <center><h4> {{ form.exp_desc.label }} </h4></center>
40 41
41 42 {% include "madweb/file_list.html" %}
42 43
43 44 <!-- file select div -->
44 45 <div class="col-md-12 single_form" id="file_buttons">
45 46 {% if form.file_buttons %}
46 47 {% include "madweb/file_buttons.html" %}
47 48 {% endif %}
48 49 </div> <!-- end subdivide -->
49 50 <div>&nbsp;</div>
50 51
51 52 <!-- file select div -->
52 53 <div class="col-md-12 single_form" id="file_data">
53 54 {% if form.show_plots %}
54 55 {% include "madweb/show_plots.html" %}
55 56 {% elif form.plot_list %}
56 57 {% include "madweb/show_plots.html" %}
57 58 {% endif %}
58 59 </div> <!-- end subdivide -->
59 60
60 61 <!-- file select div -->
61 62 <div class="col-md-12 single_form" id="file_plot">
62 63 {% if form.show_plots %}
63 64 {% include "madweb/parameter_selection.html" %}
64 65 {% endif %}
65 66 </div> <!-- end subdivide -->
66 67
67 68 {% endblock %} No newline at end of file
1 NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
General Comments 0
You need to be logged in to leave comments. Login now