24
24
{% block content %}
25
25
{% from qiita_db.study import Study %}
26
26
{% from future.utils import viewitems %}
27
+ {% set static_info = {'data_type', 'processed_date', 'algorithm', 'reference_name', 'reference_version', 'sequence_filepath', 'taxonomy_filepath', 'tree_filepath'}%}
27
28
< h1 > Selected Samples</ h1 >
28
29
{% for sid, proc_datas in viewitems(sel_data) %}
29
30
{% set study = Study(sid) %}
@@ -32,17 +33,18 @@ <h1>Selected Samples</h1>
32
33
< h2 > < a href ="/study/description/{{sid}} "> {{study.title}}</ a > </ h2 >
33
34
< table class ='table table-striped ' id ='study{{sid}}-table '>
34
35
< tr >
35
- < th > </ th > < th > id</ th > < th > Datatype</ th > < th > Processed Date</ th > < th > Algorithm</ th > < th > Reference</ th > < th > </ th >
36
+ < th class =" col-sm-2 " > Processed Data </ th > < th class =" col-sm-1 " > id</ th > < th class =" col-sm-1 " > Datatype</ th > < th class =" col-sm-2 " > Processed Date</ th > < th class =" col-sm-2 " > Algorithm</ th > < th class =" col-sm-2 " > Reference</ th > < th > </ th >
36
37
</ tr >
37
38
{% for pid, samples in viewitems(proc_datas) %}
38
39
< tr id ="proc{{pid}} ">
39
40
< td > < a href ="# " onclick ="$('#proc{{pid}}-samples').toggle(); return false; "> Show/Hide samples</ a > </ td >
40
- < td > {{pid}}</ td >
41
+ < td > {{pid}} < a data-toggle =" modal " data-target =" #proc{{pid}}-settings-modal " > < img src =" /static/img/info_button.gif " > </ a > </ td >
41
42
< td > {{proc_info[pid]["data_type"]}}</ td >
42
43
< td > {{proc_info[pid]["processed_date"]}}</ td >
43
44
< td > {{proc_info[pid]["algorithm"]}}</ td >
44
45
< td > {{proc_info[pid]["reference_name"]}} {{proc_info[pid]["reference_version"]}}</ td >
45
- < td > < a href ="# " onclick = 'remove_proc_data({{pid}}, {{sid}}) '> Remove</ a > </ td >
46
+ < td >
47
+ < a href ="# " onclick = 'remove_proc_data({{pid}}, {{sid}}) '> Remove</ a > </ td >
46
48
</ tr >
47
49
< tr id ="proc{{pid}}-samples " hidden > < td colspan =7 >
48
50
< table class ="table table-striped sample-table " id ="proc{{pid}}-samples-table " style ="width:50% ">
@@ -56,4 +58,34 @@ <h2><a href="/study/description/{{sid}}">{{study.title}}</a></h2>
56
58
</ div >
57
59
</ div >
58
60
{% end %}
61
+
62
+ {% for pid in proc_datas%}
63
+ <!-- modal view to enter analysis information -->
64
+ < div class ="modal fade " id ="proc{{pid}}-settings-modal " tabindex ="-1 " role ="dialog " aria-labelledby ="myModalLabel " aria-hidden ="true ">
65
+ < div class ="modal-dialog ">
66
+ < div class ="modal-content ">
67
+ < div class ="modal-header ">
68
+ < button type ="button " class ="close " data-dismiss ="modal " aria-hidden ="true "> ×</ button >
69
+ < h4 class ="modal-title " id ="myModalLabel "> Processed Data {{pid}}</ h4 >
70
+ </ div >
71
+ < form role ="form " action ="/analysis/2 " method ="post ">
72
+ < input type ="hidden " name ="action " value ="create ">
73
+ < div class ="modal-body ">
74
+ < b > Datatype</ b > : {{proc_info[pid]["data_type"]}} < br />
75
+ < b > Processed Date</ b > : {{proc_info[pid]["processed_date"]}} < br />
76
+ < b > Algorithm</ b > : {{proc_info[pid]["algorithm"]}} < br />
77
+ < b > Reference</ b > : {{proc_info[pid]["reference_name"]}} {{proc_info[pid]["reference_version"]}}< br />
78
+ {% for key, val in viewitems(proc_info[pid]) %}
79
+ {% if key not in static_info %}
80
+ < b > {{key}}</ b > : {{val}} < br />
81
+ {% end %}
82
+ {% end %}
83
+ </ div >
84
+ < div class ="modal-footer ">
85
+ </ div >
86
+ </ form >
87
+ </ div >
88
+ </ div >
89
+ </ div >
90
+ {% end %}
59
91
{% end %}
0 commit comments