Skip to content

Commit b43b6c1

Browse files
Ahmet OeztuerkAhmet Oeztuerk
authored andcommitted
add html filter to the cols_prefix and checkall_prefix
1 parent af333a1 commit b43b6c1

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

templates/_excel_export.tt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
[%- meta = column.split(':'); column = meta.0 -%]
77
[%- IF meta.size == 1; meta.1 = 1; END %]
88
<tr class="sortable_row">
9-
<td class="px-2 py-0.5"><input type="checkbox" value="[% column | html %]" id="[% cols_prefix %]ht[% counter %]" name="[% cols_prefix %]columns" onclick=" updateExcelPermanentLink();"[% IF meta.1 == 1 %] checked[% END %]></td>
10-
<td class='clickable pr-2' id="[% cols_prefix %]ht[% counter %]n" onclick="toggleFilterCheckBox(this.id); updateExcelPermanentLink();" width="90%">[% column | html %]</td>
9+
<td class="px-2 py-0.5"><input type="checkbox" value="[% column | html %]" id="[% cols_prefix | html %]ht[% counter %]" name="[% cols_prefix | html %]columns" onclick=" updateExcelPermanentLink();"[% IF meta.1 == 1 %] checked[% END %]></td>
10+
<td class='clickable pr-2' id="[% cols_prefix | html %]ht[% counter %]n" onclick="toggleFilterCheckBox(this.id); updateExcelPermanentLink();" width="90%">[% column | html %]</td>
1111
</tr>
1212
[% END -%]
1313
[%- FOREACH v IN get_exposed_custom_vars(1) %]
1414
[%- counter = counter + 1 -%]
1515
<tr class="sortable_row">
16-
<td class="px-2 py-0.5"><input type="checkbox" value="[% v | html %]" id="[% cols_prefix %]ht[% counter %]" name="[% cols_prefix %]columns" onclick=" updateExcelPermanentLink();"></td>
17-
<td class='clickable pr-2' id="[% cols_prefix %]ht[% counter %]n" onclick="toggleFilterCheckBox(this.id); updateExcelPermanentLink();" width="90%">[% v | html %]</td>
16+
<td class="px-2 py-0.5"><input type="checkbox" value="[% v | html %]" id="[% cols_prefix | html %]ht[% counter %]" name="[% cols_prefix | html %]columns" onclick=" updateExcelPermanentLink();"></td>
17+
<td class='clickable pr-2' id="[% cols_prefix | html %]ht[% counter %]n" onclick="toggleFilterCheckBox(this.id); updateExcelPermanentLink();" width="90%">[% v | html %]</td>
1818
</tr>
1919
[% END %]
2020
</table>
@@ -23,8 +23,8 @@
2323
[% BLOCK checkall %]
2424
<table class="rowhover">
2525
<tr>
26-
<td class="px-2 py-0.5"><input type="checkbox" id="[% checkall_prefix %]ht0" value="" name="all_col" onclick="toggleAllFilterCheckBox('[% checkall_prefix %]'); updateExcelPermanentLink();"></td>
27-
<td class='clickable font-bold' id="[% checkall_prefix %]ht0n" onclick="toggleFilterCheckBox(this.id); toggleAllFilterCheckBox('[% checkall_prefix %]'); updateExcelPermanentLink();" width="90%">Select all</td>
26+
<td class="px-2 py-0.5"><input type="checkbox" id="[% checkall_prefix | html %]ht0" value="" name="all_col" onclick="toggleAllFilterCheckBox('[% checkall_prefix | html %]'); updateExcelPermanentLink();"></td>
27+
<td class='clickable font-bold' id="[% checkall_prefix | html %]ht0n" onclick="toggleFilterCheckBox(this.id); toggleAllFilterCheckBox('[% checkall_prefix | html %]'); updateExcelPermanentLink();" width="90%">Select all</td>
2828
</tr>
2929
</table>
3030
[% END %]

0 commit comments

Comments
 (0)