EmptyState UI module

This commit is contained in:
Andrew Croce
2018-07-30 16:09:55 -04:00
committed by richard-dds
parent 6ee71113c7
commit 34c570ab18
3 changed files with 42 additions and 12 deletions

View File

@@ -46,3 +46,12 @@ class SidenavItem(UIModule):
active=active,
icon=icon,
subnav=subnav)
class EmptyState(UIModule):
def render(self, message, actionLabel, actionHref, icon=None):
return self.render_string(
"components/empty_state.html.to",
message=message,
actionLabel=actionLabel,
actionHref=actionHref,
icon=icon)