Mercurial > libervia-templates
diff sat_templates/templates/bulma/dialogs/notification.html @ 271:dea66eead698
bulma (dialogs): new `notification.html` template
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 14 Aug 2020 08:46:03 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sat_templates/templates/bulma/dialogs/notification.html Fri Aug 14 08:46:03 2020 +0200 @@ -0,0 +1,16 @@ +<div class="main_notification columns is-centered"> + <div class="column is-narrow has-items-centered"> + {% set level_map={ + 'success': 'is-success', + 'info': 'is-info', + 'warning': 'is-warning', + 'error': 'is-danger' + } + %} + + <div class="notification {{level_map[level]}} pr-6 py-4"> + <button class="delete click_to_close"></button> + {{message}} + </div> + </div> +</div>