view sat_templates/templates/bulma/input/form.html @ 372:a603cf0fa5d1

bulma (call): add a button for screen sharing: - add a button for screen sharing, only on desktop - split `muted` state to `inactive` and `muted` where `muted` is only about the color - use the `inactive` state with an other color (in `screen-off` class) to indicate when screen is not shared rel 432
author Goffi <goffi@goffi.org>
date Mon, 14 Aug 2023 16:31:46 +0200
parents fbea1b9a558f
children
line wrap: on
line source

{% macro form(action='', class=none, id=none, method="post", use_csrf_token=true) %}
    <form method="{{method}}" action="{{action}}" {{ {'id': id, 'class': class}|xmlattr }} {{kwargs|xmlattr}} >
        {% if csrf_token is defined and use_csrf_token %}
            <input type="hidden" name="csrf_token" value="{{csrf_token}}">
        {% endif %}
        {{ caller() }}
    </form>
{% endmacro %}