Add support for toggling visibility of email profile settings

This commit is contained in:
Lance Edgar 2022-08-06 18:38:17 -05:00
parent 7d3f2e6bdf
commit d52a186e12
5 changed files with 188 additions and 18 deletions
tailbone/grids

View file

@ -1492,6 +1492,12 @@ class GridAction(object):
return self.url(row, i)
return self.url
def render_icon(self):
"""
Render the HTML snippet for the action link icon.
"""
return HTML.tag('i', class_='fas fa-{}'.format(self.icon))
def render_label(self):
"""
Render the label "text" within the actions column of a grid