view sat_templates/templates/bulma/dialogs/notification.html @ 299:75f1cd6da46e

bulma (components/block): new `data` and `delete_icon` arguments in `icon_item`
author Goffi <goffi@goffi.org>
date Sat, 20 Feb 2021 13:37:15 +0100
parents dea66eead698
children
line wrap: on
line source

<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>