-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathreporting.html
247 lines (226 loc) · 6.64 KB
/
reporting.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
---
title: Test reporting template
---
<h2 id="sites">Sites components</h2>
<table class="table">
<thead>
<tr>
<th>Technical name</th>
<th>Latest <abbr title="Accessibility Conformance Report">ACR</abbr></th>
<th>Assessment (All)</th>
<th>ACR (All)</th>
</tr>
</thead>
<tbody>
{% for component in site.data.a11yComponents %}
<tr>
<th>{{ component.name }}</th>
<td>None</td>
<td>
<ul>
{% for assessment in component.a11y %}
<li>
<a href="{{ assessment.link }}">
{{ assessment.date }} - {{ assessment.state }}
{% if assessment.isPartial %}
( Partial )
{% endif %}
</a>
</li>
{% else %}
<li>None</li>
{% endfor %}
</ul>
</td>
<td>
<ul>
{% for acr in component.acr %}
<li>
<a href="{{ acr.link }}">
{% if acr.expiredOn %}
{{ acr.expiredOn }}
{% elsif acr.issuedOn %}
{{ acr.issuedOn }}
{% elsif acr.modifiedOn %}
{{ acr.modifiedOn }}
{% elsif acr.createdOn %}
{{ acr.createdOn }}
{% else %}
No date
{% endif %}
-
{% if acr.isPartial %}
<strong>Partial</strong>:
{% endif %}
{{ acr.state }}
</a>
</li>
{% else %}
<li>None</li>
{% endfor %}
</ul>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<section class="wb-tagfilter provisional">
<h2 id="testReq">Accessibility conformance summary by conformity</h2>
<!-- There is an issue with the tagFilter plugin, my intend with this plugin is probably not supported
<fieldset hidden>
<legend><span class="field-name">Filter by conformance</span></legend>
<ul class="list-unstyled">
<li class="checkbox">
<label>
<input type="checkbox" name="conformance" class="wb-tagfilter-ctrl" value="acr:satisfied"> Satisfied
</label>
</li>
<li class="checkbox">
<label>
<input type="checkbox" name="conformance" class="wb-tagfilter-ctrl" value="acr:furtherTestNeeded"> Further test needed
</label>
</li>
<li class="checkbox">
<label>
<input type="checkbox" name="conformance" class="wb-tagfilter-ctrl" value="acr:notSatisfied"> Not satisfied
</label>
</li>
</ul>
</fieldset>
-->
<details>
<summary>Filtering by components option</summary>
<ul class="list-unstyled">
{% for component in site.data.acrConformity.allComponents %}
<li class="checkbox">
<label>
<input type="checkbox" name="component" class="wb-tagfilter-ctrl" value="{{ component }}">{{ component }}
</label>
</li>
{% endfor %}
</ul>
</details>
<dl class="dl-horizontal dt-max_deactivate_ wb-tagfilter-items">
{% for conformity in site.data.acrConformity.list %}
<dt>{{ conformity.id }}</dt>
{% for component in conformity.components %}
<dd data-wb-tags="{{ component.name }}">
<section>
<h3 class="h5">{{ component.name }}</h3>
<ul>
{% for acr in component.acr %}
<!-- <li data-wb-tags="{{ acr.conformance }}"> -->
<li><a href="{{ acr.link }}">{{ acr.date }} - {{ acr.conformance }}</a></li>
{% else %}
<li>None</li>
{% endfor %}
</ul>
</section>
</dd>
{% endfor %}
{% endfor %}
</dl>
</section>
<section class="wb-tagfilter provisional">
<h2 id="testReq">Assessment test requirement summary</h2>
<!-- Tag filter for each Component
{
allComponents: [ "" ],
list = [
{
id: "Test Requirement ID",
component: [
{
name: "Component Name"
a11y: [
{ date: "date", link: "link", outcome: "outcome" }
]
}
]
}
]
-->
<!-- There is an issue with the tagFilter plugin, my intend with this plugin is probably not supported
<div class="checkbox">
<label>
<input type="checkbox" name="applicable" class="wb-tagfilter-ctrl" value="isApplicable"> Only the applicable ones for WCAG 2.1 Level AA
</label>
</div>
-->
<!-- There is an issue with the tagFilter plugin, my intend with this plugin is probably not supported
<fieldset>
<legend><span class="field-name">Filter by outcome</span></legend>
<ul class="list-unstyled">
<li class="checkbox">
<label>
<input type="checkbox" name="outcome" class="wb-tagfilter-ctrl" value="earl:passed"> Pass
</label>
</li>
<li class="checkbox">
<label>
<input type="checkbox" name="outcome" class="wb-tagfilter-ctrl" value="earl:failed"> Fail
</label>
</li>
<li class="checkbox">
<label>
<input type="checkbox" name="outcome" class="wb-tagfilter-ctrl" value="earl:cantTell"> Undetermined
</label>
</li>
<li class="checkbox">
<label>
<input type="checkbox" name="outcome" class="wb-tagfilter-ctrl" value="earl:inapplicable"> Not applicable
</label>
</li>
<li class="checkbox">
<label>
<input type="checkbox" name="outcome" class="wb-tagfilter-ctrl" value="earl:untested"> Not tested
</label>
</li>
</ul>
</fieldset>
-->
<details>
<summary>Filtering by components option</summary>
<ul class="list-unstyled">
{% for component in site.data.a11yTestRequirement.allComponents %}
<li class="checkbox">
<label>
<input type="checkbox" name="component" class="wb-tagfilter-ctrl" value="{{ component }}">{{ component }}
</label>
</li>
{% endfor %}
</ul>
</details>
<dl class="dl-horizontal dt-max_deactivate_ wb-tagfilter-items">
{% for testRequirement in site.data.a11yTestRequirement.list %}
<dt>{{ testRequirement.id }}</dt>
{% for component in testRequirement.components %}
<dd data-wb-tags="{{ component.name }}">
<section>
<h3 class="h5">{{ component.name }}</h3>
<ul>
{% for assessment in component.a11y %}
<!-- <li data-wb-tags="{{ assessment.outcome }} {{% if assessment.isApplicable -%}}isApplicable{{%- endif -%}}"> -->
<li><a href="{{ assessment.link }}">{{ assessment.date }} - {{ assessment.outcome }}</a></li>
{% else %}
<li>None</li>
{% endfor %}
</ul>
</section>
</dd>
{% endfor %}
<dd>
<details>
<summary>Totals</summary>
<ul>
<li>Passed: {{ testRequirement.nbPassed }}</li>
<li>Failed: {{ testRequirement.nbFailed }}</li>
<li>Can't tell: {{ testRequirement.nbCantTell }}</li>
<li>Not applicable: {{ testRequirement.nbInapplicable }}</li>
<li>Not tested: {{ testRequirement.nbUntested }}</li>
</ul>
</details>
</dd>
{% endfor %}
</dl>
</section>