|
27 | 27 | <div class="accordion-item"> |
28 | 28 | <div class="accordion-header" id="searchHeading"> |
29 | 29 | <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#searchCollapse" aria-expanded="true" aria-controls="searchCollapse"> |
30 | | - <i class="bi-search" style="margin-right:0.5em"></i> |
| 30 | + <i class="bi-search" style="margin-right:0.5em" aria-hidden="true"></i> |
31 | 31 | {% translate "SEARCH" %} -- |
32 | 32 | {% if is_limited %} |
33 | 33 | {% blocktranslate trimmed with displayed=displayed_count total=total_count %} |
|
97 | 97 | return true; |
98 | 98 | "> |
99 | 99 | <div class="col-md-5"> |
100 | | - <label for="submitter_name" class="form-label"><i class="bi-person"></i> {% translate "LABEL_SUBMITTER" %}</label> |
| 100 | + <label for="submitter_name" class="form-label"><i class="bi-person" aria-hidden="true"></i> {% translate "LABEL_SUBMITTER" %}</label> |
101 | 101 | <div class="input-group"> |
102 | 102 | <input type="text" class="form-control" id="submitter_name" name="submitter_name" |
103 | 103 | value="{{ filter_submitter_name }}" placeholder="{% translate 'FIRST_NAME' %} / {% translate 'LAST_NAME' %} / {% translate 'STUDENT_ID' %}"> |
104 | | - <button type="button" class="btn btn-outline-secondary" onclick="document.getElementById('submitter_name').value=''" title="{% translate 'CLEAR' %}" data-bs-toggle="tooltip" data-bs-title="{% translate 'CLEAR_SELECTION' %}"> |
105 | | - <i class="bi-x"></i> |
| 104 | + <button type="button" class="btn btn-outline-secondary" onclick="document.getElementById('submitter_name').value=''" data-bs-toggle="tooltip" data-bs-title="{% translate 'CLEAR_SELECTION' %}" aria-label="{% translate 'CLEAR_SELECTION' %}"> |
| 105 | + <i class="bi-x" aria-hidden="true"></i> |
106 | 106 | </button> |
107 | 107 | </div> |
108 | 108 | </div> |
109 | 109 | <div class="col-md-5"> |
110 | | - <label for="exercise_id" class="form-label"><i class="bi-list-ol"></i> {% translate "LABEL_EXERCISE" %}</label> |
| 110 | + <label for="exercise_id" class="form-label"><i class="bi-list-ol" aria-hidden="true"></i> {% translate "LABEL_EXERCISE" %}</label> |
111 | 111 | <select class="form-select" id="exercise_id" name="exercise_id" multiple="multiple" data-selected-ids="{{ filter_exercise_ids|join:',' }}"> |
112 | 112 | {% regroup exercises by course_module as exercise_modules %} |
113 | 113 | {% for module in exercise_modules %} |
|
122 | 122 | </select> |
123 | 123 | </div> |
124 | 124 | <div class="col-md-2"> |
125 | | - <label for="status" class="form-label"><i class="bi-question-octagon"></i> {% translate "STATUS" %}</label> |
| 125 | + <label for="status" class="form-label"><i class="bi-question-octagon" aria-hidden="true"></i> {% translate "STATUS" %}</label> |
126 | 126 | <select class="form-select" id="status" name="status"> |
127 | 127 | <option value="">{% translate "STATUS_ANY" %}</option> |
128 | 128 | <option value="not_ready" {% if filter_status == "not_ready" %}selected{% endif %}> |
|
146 | 146 | </select> |
147 | 147 | </div> |
148 | 148 | <div class="col-md-6"> |
149 | | - <label for="tag_id" class="form-label"><i class="bi-tag"></i> {% translate "LABEL_SUBMISSION_TAGS" %}</label> |
| 149 | + <label for="tag_id" class="form-label"><i class="bi-tag" aria-hidden="true"></i> {% translate "LABEL_SUBMISSION_TAGS" %}</label> |
150 | 150 | <select class="form-select" id="tag_id" name="tag_id" multiple="multiple" data-selected-ids="{{ filter_tag_ids|join:',' }}"> |
151 | 151 | {% for tag in tags %} |
152 | 152 | <option value="{{ tag.id }}" data-type="{% if tag.font_white %}dark{% else %}light{% endif %}" data-color="{{ tag.color }}"> |
|
156 | 156 | </select> |
157 | 157 | </div> |
158 | 158 | <div class="col-md-3"> |
159 | | - <label for="assessed_manually" class="form-label"><i class="bi-pencil"></i> {% translate "ASSESSED_MANUALLY" %}</label> |
| 159 | + <label for="assessed_manually" class="form-label"><i class="bi-pencil" aria-hidden="true"></i> {% translate "ASSESSED_MANUALLY" %}</label> |
160 | 160 | <select class="form-select" id="assessed_manually" name="assessed_manually"> |
161 | 161 | <option value="">{% translate "ALL" %}</option> |
162 | 162 | <option value="yes" {% if filter_assessed_manually == "yes" %}selected{% endif %}>{% translate "YES" %}</option> |
163 | 163 | <option value="no" {% if filter_assessed_manually == "no" %}selected{% endif %}>{% translate "NO" %}</option> |
164 | 164 | </select> |
165 | 165 | </div> |
166 | 166 | <div class="col-md-3"> |
167 | | - <label for="late_penalty" class="form-label"><i class="bi-percent"></i> {% translate "INCLUDES_LATE_PENALTY" %}</label> |
| 167 | + <label for="late_penalty" class="form-label"><i class="bi-percent" aria-hidden="true"></i> {% translate "INCLUDES_LATE_PENALTY" %}</label> |
168 | 168 | <select class="form-select" id="late_penalty" name="late_penalty"> |
169 | 169 | <option value="">{% translate "ALL" %}</option> |
170 | 170 | <option value="yes" {% if filter_late_penalty == "yes" %}selected{% endif %}>{% translate "YES" %}</option> |
171 | 171 | <option value="no" {% if filter_late_penalty == "no" %}selected{% endif %}>{% translate "NO" %}</option> |
172 | 172 | </select> |
173 | 173 | </div> |
174 | 174 | <div class="col-md-2"> |
175 | | - <label for="time_range_helper" class="form-label"><i class="bi-clock-history"></i> {% translate "LABEL_SHOW_LAST" %}</label> |
| 175 | + <label for="time_range_helper" class="form-label"><i class="bi-clock-history" aria-hidden="true"></i> {% translate "LABEL_SHOW_LAST" %}</label> |
176 | 176 | <select class="form-select" id="time_range_helper"> |
177 | 177 | <option value="">—</option> |
178 | 178 | <option value="5">5 min</option> |
|
191 | 191 | </select> |
192 | 192 | </div> |
193 | 193 | <div class="col-md-5"> |
194 | | - <label for="start_time" class="form-label"><i class="bi-hourglass-top"></i> {% translate "DATE_RANGE_START" %}</label> |
| 194 | + <label for="start_time" class="form-label"><i class="bi-hourglass-top" aria-hidden="true"></i> {% translate "DATE_RANGE_START" %}</label> |
195 | 195 | <div class="input-group"> |
196 | 196 | <input type="datetime-local" class="form-control" id="start_time" name="start_time" |
197 | 197 | value="{{ filter_start_time }}"> |
198 | | - <button type="button" class="btn btn-outline-secondary" onclick="document.getElementById('start_time').value=''" title="{% translate 'CLEAR' %}" data-bs-toggle="tooltip" data-bs-title="{% translate 'CLEAR_SELECTION' %}"> |
199 | | - <i class="bi-x"></i> |
| 198 | + <button type="button" class="btn btn-outline-secondary" onclick="document.getElementById('start_time').value=''" data-bs-toggle="tooltip" data-bs-title="{% translate 'CLEAR_SELECTION' %}" aria-label="{% translate 'CLEAR_SELECTION' %}"> |
| 199 | + <i class="bi-x" aria-hidden="true"></i> |
200 | 200 | </button> |
201 | 201 | </div> |
202 | 202 | </div> |
203 | 203 | <div class="col-md-5"> |
204 | | - <label for="end_time" class="form-label"><i class="bi-hourglass-bottom"></i> {% translate "DATE_RANGE_END" %}</label> |
| 204 | + <label for="end_time" class="form-label"><i class="bi-hourglass-bottom" aria-hidden="true"></i> {% translate "DATE_RANGE_END" %}</label> |
205 | 205 | <div class="input-group"> |
206 | 206 | <input type="datetime-local" class="form-control" id="end_time" name="end_time" |
207 | 207 | value="{{ filter_end_time }}"> |
208 | | - <button type="button" class="btn btn-outline-secondary" onclick="document.getElementById('end_time').value=''" title="{% translate 'CLEAR' %}" data-bs-toggle="tooltip" data-bs-title="{% translate 'CLEAR_SELECTION' %}"> |
209 | | - <i class="bi-x"></i> |
| 208 | + <button type="button" class="btn btn-outline-secondary" onclick="document.getElementById('end_time').value=''" data-bs-toggle="tooltip" data-bs-title="{% translate 'CLEAR_SELECTION' %}" aria-label="{% translate 'CLEAR_SELECTION' %}"> |
| 209 | + <i class="bi-x" aria-hidden="true"></i> |
210 | 210 | </button> |
211 | 211 | </div> |
212 | 212 | </div> |
213 | 213 | <div class="col-12 d-flex align-items-end"> |
214 | 214 | <button type="submit" class="btn btn-primary me-2"> |
215 | | - <i class="bi-search"></i> {% translate "SEARCH" %} |
| 215 | + <i class="bi-search" aria-hidden="true"></i> {% translate "SEARCH" %} |
216 | 216 | </button> |
217 | 217 | {% if has_filters %} |
218 | 218 | <a href="{{ request.path }}" class="btn btn-secondary"> |
219 | | - <i class="bi-x-circle"></i> {% translate "CLEAR_SEARCH" %} |
| 219 | + <i class="bi-x-circle" aria-hidden="true"></i> {% translate "CLEAR_SEARCH" %} |
220 | 220 | </a> |
221 | 221 | {% endif %} |
222 | 222 | </div> |
|
0 commit comments