|
| 1 | +<style> |
| 2 | +label { cursor: pointer; } |
| 3 | +#{{ section_ids[0] }} ~ table [for="{{ section_ids[0] }}"]::before, |
| 4 | +#{{ section_ids[1] }} ~ table [for="{{ section_ids[1] }}"]::before, |
| 5 | +#{{ section_ids[2] }} ~ table [for="{{ section_ids[2] }}"]::before { |
| 6 | + display: inline-block; |
| 7 | + content: "►"; |
| 8 | + font-size: 11px; |
| 9 | + width: 15px; |
| 10 | + text-align: left; |
| 11 | +} |
| 12 | +
|
| 13 | +#{{ section_ids[0] }}:checked ~ table [for="{{ section_ids[0] }}"]::before, |
| 14 | +#{{ section_ids[1] }}:checked ~ table [for="{{ section_ids[1] }}"]::before, |
| 15 | +#{{ section_ids[2] }}:checked ~ table [for="{{ section_ids[2] }}"]::before { |
| 16 | + content: "▼"; |
| 17 | +} |
| 18 | +
|
| 19 | +#{{ section_ids[0] }} ~ table tr.{{ section_ids[0] }}, |
| 20 | +#{{ section_ids[1] }} ~ table tr.{{ section_ids[1] }}, |
| 21 | +#{{ section_ids[2] }} ~ table tr.{{ section_ids[2] }} { |
| 22 | + visibility: collapse; |
| 23 | +} |
| 24 | +
|
| 25 | +#{{ section_ids[0] }}:checked ~ table tr.{{ section_ids[0] }}, |
| 26 | +#{{ section_ids[1] }}:checked ~ table tr.{{ section_ids[1] }}, |
| 27 | +#{{ section_ids[2] }}:checked ~ table tr.{{ section_ids[2] }} { |
| 28 | + visibility: visible; |
| 29 | +} |
| 30 | +</style> |
| 31 | + |
| 32 | +<input type="checkbox" id="{{ section_ids[0] }}" hidden aria-hidden="true"/> |
| 33 | +<input type="checkbox" id="{{ section_ids[1] }}" hidden aria-hidden="true"/> |
| 34 | +<input type="checkbox" id="{{ section_ids[2] }}" hidden aria-hidden="true"/> |
| 35 | + |
1 | 36 | <table class="table table-hover table-striped table-sm table-responsive small"> |
2 | 37 | <tr> |
| 38 | + <th class="collapsible_header" colspan="2" style="font-weight: bold; text-align: left;"> |
| 39 | + <label for={{ section_ids[0] }}> |
| 40 | + {{sections[0]}} |
| 41 | + </label> |
| 42 | + </th> |
| 43 | + </tr> |
| 44 | + <tr class="{{ section_ids[0] }}"> |
3 | 45 | <th>Measurement date</th> |
4 | 46 | {% if meas_date is not none %} |
5 | 47 | <td>{{ meas_date }}</td> |
6 | 48 | {% else %} |
7 | 49 | <td>Unknown</td> |
8 | 50 | {% endif %} |
9 | 51 | </tr> |
10 | | - <tr> |
| 52 | + <tr class="{{ section_ids[0] }}"> |
11 | 53 | <th>Experimenter</th> |
12 | 54 | {% if experimenter is not none %} |
13 | 55 | <td>{{ experimenter }}</td> |
14 | 56 | {% else %} |
15 | 57 | <td>Unknown</td> |
16 | 58 | {% endif %} |
17 | 59 | </tr> |
| 60 | + <tr class="{{ section_ids[0] }}"> |
18 | 61 | <th>Participant</th> |
19 | | - {% if subject_info is not none %} |
| 62 | + {% if subject_info is defined and subject_info is not none %} |
20 | 63 | {% if 'his_id' in subject_info.keys() %} |
21 | 64 | <td>{{ subject_info['his_id'] }}</td> |
22 | 65 | {% endif %} |
|
25 | 68 | {% endif %} |
26 | 69 | </tr> |
27 | 70 | <tr> |
| 71 | + <th class="collapsible_header" colspan="2" style="font-weight: bold; text-align: left;"> |
| 72 | + <label for={{ section_ids[1] }}> |
| 73 | + {{sections[1]}} |
| 74 | + </label> |
| 75 | + </th> |
| 76 | + </tr> |
| 77 | + <tr class="{{ section_ids[1] }}"> |
28 | 78 | <th>Digitized points</th> |
29 | 79 | {% if dig is not none %} |
30 | 80 | <td>{{ dig|length }} points</td> |
31 | 81 | {% else %} |
32 | 82 | <td>Not available</td> |
33 | 83 | {% endif %} |
34 | 84 | </tr> |
35 | | - <tr> |
| 85 | + <tr class="{{ section_ids[1] }}"> |
36 | 86 | <th>Good channels</th> |
37 | 87 | <td>{{ good_channels }}</td> |
38 | 88 | </tr> |
39 | | - <tr> |
| 89 | + <tr class="{{ section_ids[1] }}"> |
40 | 90 | <th>Bad channels</th> |
41 | 91 | <td>{{ bad_channels }}</td> |
42 | 92 | </tr> |
43 | | - <tr> |
| 93 | + <tr class="{{ section_ids[1] }}"> |
44 | 94 | <th>EOG channels</th> |
45 | 95 | <td>{{ eog }}</td> |
46 | 96 | </tr> |
47 | | - <tr> |
| 97 | + <tr class="{{ section_ids[1] }}"> |
48 | 98 | <th>ECG channels</th> |
49 | 99 | <td>{{ ecg }}</td> |
50 | | - {% if sfreq is not none %} |
| 100 | + </tr> |
51 | 101 | <tr> |
| 102 | + <th class="collapsible_header" colspan="2" style="font-weight: bold; text-align: left;"> |
| 103 | + <label for={{ section_ids[2] }}> |
| 104 | + {{sections[2]}} |
| 105 | + </label> |
| 106 | + </th> |
| 107 | + </tr> |
| 108 | + {% if sfreq is not none %} |
| 109 | + <tr class="{{ section_ids[2] }}"> |
52 | 110 | <th>Sampling frequency</th> |
53 | 111 | <td>{{ '%0.2f'|format(sfreq) }} Hz</td> |
54 | 112 | </tr> |
55 | 113 | {% endif %} |
56 | 114 | {% if highpass is not none %} |
57 | | - <tr> |
| 115 | + <tr class="{{ section_ids[2] }}"> |
58 | 116 | <th>Highpass</th> |
59 | 117 | <td>{{ '%0.2f'|format(highpass) }} Hz</td> |
60 | 118 | </tr> |
61 | 119 | {% endif %} |
62 | 120 | {% if lowpass is not none %} |
63 | | - <tr> |
| 121 | + <tr class="{{ section_ids[2] }}"> |
64 | 122 | <th>Lowpass</th> |
65 | 123 | <td>{{ '%0.2f'|format(lowpass) }} Hz</td> |
66 | 124 | </tr> |
67 | 125 | {% endif %} |
68 | 126 | {% if projs is not none %} |
69 | | - <tr> |
| 127 | + <tr class="{{ section_ids[2] }}"> |
70 | 128 | <th>Projections</th> |
71 | 129 | <td>{{ projs|join('<br/>') | safe }}</td> |
72 | 130 | </tr> |
73 | 131 | {% endif %} |
| 132 | + {% if filenames %} |
| 133 | + <tr class="{{section_ids[2]}}"> |
| 134 | + <th>Filenames</th> |
| 135 | + <td>{{ filenames|join('<br>') }}</td> |
| 136 | + </tr> |
| 137 | + {% endif %} |
| 138 | + {% if duration %} |
| 139 | + <tr class="{{section_ids[2]}}"> |
| 140 | + <th>Duration</th> |
| 141 | + <td>{{ duration }} (HH:MM:SS)</td> |
| 142 | + </tr> |
| 143 | + {% endif %} |
74 | 144 | </table> |
0 commit comments