예제 #1
0
    def warning(description="",
                title="",
                dismissible=True,
                key='flash',
                showin=""):
        title = "<strong>{title}</strong>".format(
            title=title) if title != "" else ""
        dismissible = """<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
	    """ if dismissible == True else ""
        result = """<div class="alert alert-warning">
        {dismissible}
        {title}{description}
        </div>""".format(title=title,
                         description=description,
                         dismissible=dismissible)
        return Flash.message(message=result, showin=showin, key=key)
예제 #2
0
 def clear(key='flash'):
     return Flash.clear(key)
예제 #3
0
 def message(self, message, showin="", key='flash'):
     return Flash.message(message=message, showin=showin, key=key)
예제 #4
0
 def display(key='flash'):
     return Flash.display(key)