Skip to content

Commit 58fff1b

Browse files
committed
Use {% tag %}
1 parent 72d7bcc commit 58fff1b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/templates/_manage/edit.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@
7979
<table id="filters" class="data{% if not showFilters%} hidden{% endif %}">
8080
{% for filter in allFilters %}
8181
<tr data-class="{{ filter.class }}"{% if not filter.show %} class="hidden"{% endif %}>
82+
{% tag 'tr' with {
83+
class: not filter.show ? 'hidden' : false,
84+
data: {
85+
class: filter.class,
86+
},
87+
} %}
8288
<th>{{ filter.displayName }}</th>
8389
<td>
8490
<div class="btngroup" tabindex="0">
@@ -88,7 +94,7 @@
8894
</div>
8995
<input type="hidden" name="filters[{{ filter.class }}]"{% if filter.enabled %} value="{{ filter.value ? 'yes' : 'no' }}"{% endif %}>
9096
</td>
91-
</tr>
97+
{% endtag %}
9298
{% endfor %}
9399
</table>
94100
<div id="filter-spinner" class="hidden"><div class="spinner"></div></div>

0 commit comments

Comments
 (0)