view sat_templates/templates/bulma/chat/select.html @ 303:877f01720036

bulma (lists): creation, invitations, item deletion: - add interface to create lists from templates - show list specific icon when available in lists discovery - owned lists can be deleted from lists discovery - lists can now be created from templates - when edition is allowed, a delete button let now delete a list item from single item view - new button to launch invitation manager from list overview
author Goffi <goffi@goffi.org>
date Sat, 20 Feb 2021 13:39:11 +0100
parents 1928ba66c194
children 68c6f30aecab
line wrap: on
line source

{% if not embedded %}{% extends 'base/base.html' %}{% endif %}
{% import 'components/avatar.html' as avatar with context %}
{% import 'input/form.html' as form with context %}
{% import 'input/field.html' as field with context %}

{% block body %}

<section class="section">
    <div class="message">
        <div class="message-body">
            {% trans %}Please select the chat room you want to enter{% endtrans %}
        </div>
    </div>
</section>

<section class="section">
    <div class="columns is-mobile is-multiline">
        {% for room in rooms %}
            <div class="column is-2-desktop is-4-touch">
                <div class="card x-is-hoverable">
                    <a href="{{room.url}}">
                        <div class="card-image is-flex has-items-centered px-1 py-1">
                            {{ avatar.avatar(room.jid, "is-64x64") }}
                        </div>
                        <div class="card-content has-text-centered has-text-shortenable px-1 py-1">
                            <span>{{room.name}}</span>
                        </div>
                    </a>
                </div>
            </div>
        {% endfor %}
    </div>
</section>

<section class="section">
    <p class="content">{% trans %}Or enter a room address{% endtrans %}</p>
    {% call form.form(class="form--single") %}
        {{ field.text("jid", _("Room address (JID)"), required=true)}}
        {{ field.submit(_("Join")) }}
    {% endcall %}
</section>

{% endblock body %}