{% extends 'events/management/base.html' %} {% from 'forms/_form.html' import form_header, form_row, form_footer %} {% block title %} {% trans %}Chat{% endtrans %} {% endblock %} {% block content %}
{% if event_chatrooms %}

{% trans %}Current chat rooms{% endtrans %}

{% for event_chatroom in event_chatrooms %} {% set chatroom = event_chatroom.chatroom %} {% set server = chatroom.server %} {% endfor %}
{% trans %}Name{% endtrans %} {% trans %}Actions{% endtrans %}
{{ chatroom.name }}
{% if logs_enabled and not chatroom.custom_server %} {% endif %} {% if not chatroom.custom_server %} {% endif %}
{%- trans %}Join{% endtrans -%}
{% if chatroom.jid_node != chatroom.name.lower() %}
JID
{{ chatroom.jid_node }}
{% endif %}
{% trans %}Server{% endtrans %}
{{ server }}
{% if chatroom.description %}
{% trans %}Description{% endtrans %}
{{ chatroom.description }}
{% endif %}
{% trans %}Hidden{% endtrans %}
{% if event_chatroom.hidden %}Yes{% else %}No{% endif %}
{% if chatroom.password %}
{% trans %}Password{% endtrans %}
{{ chatroom.password }}
{% trans %}Password{% endtrans %} visible
{% if event_chatroom.show_password %}Yes{% else %}No{% endif %}
{% endif %}
{% trans %}Created by{% endtrans %}
{{ chatroom.created_by_user.full_name }}
{% trans %}Created on{% endtrans %}:
{{ chatroom.created_dt | format_datetime('long') }}
{% trans %}Modified on{% endtrans %}
{% if chatroom.modified_dt %} {{ chatroom.modified_dt | format_datetime('long') }} {% else %} Never {% endif %}
{% else %}
{% trans %}No chatrooms have been added yet.{% endtrans %}
{% endif %} {%- trans %}Create new room{% endtrans -%}
{% if attach_form and not event.is_locked %}

{% trans %}Add existing chat room{% endtrans %}

{{ form_header(attach_form, action=url_for_plugin('.manage_rooms_attach', event)) }} {{ form_row(attach_form.chatroom) }} {% call form_footer(attach_form) %} {% endcall %}
{% endif %} {% endblock %}