Skip to content

Commit

Permalink
Select all fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
boxed committed Apr 15, 2024
1 parent f2e4980 commit f0a897e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions iommi/style_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
header__attrs__title='Select all',
header__attrs__class={'text-center': True},
cell__attrs__class={'text-center': True},
extra__icon='fa fa-check-square-o',
),
number=dict(
cell__attrs__class={'text-right': True},
Expand Down
3 changes: 3 additions & 0 deletions iommi/style_bootstrap_icons.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@
boolean__cell__format=lambda value, **_: mark_safe(
f'<i class="bi bi-check-lg fs-3" title="{gettext("Yes")}"></i>'
) if value else '',
select=dict(
extra__icon='bi bi-check2-square',
)
),
)
3 changes: 3 additions & 0 deletions iommi/style_font_awesome_6.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@
boolean__cell__format=lambda value, **_: mark_safe(
f'<i class="fa fa-check" title="{gettext("Yes")}"></i>'
) if value else '',
select=dict(
extra__icon='fa-regular fa-square-check',
),
),
)
2 changes: 1 addition & 1 deletion iommi/templates/iommi/table/select_column_header.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<th{{ header.attrs }}>
<i class="fa fa-check-square-o"
<i class="{{ header.column.extra.icon }}"
onclick="iommi_table_js_select_all(this, {% if header.table.parts.page.is_paginated %}true{% else %}false{% endif %})"></i>
</th>

0 comments on commit f0a897e

Please sign in to comment.