2023-12-05 04:15:41 +02:00
|
|
|
{% if enabled %}
|
2023-12-11 21:25:25 +02:00
|
|
|
<form name="post" action="{{ path('room_post', { mode : mode, namespace : namespace }) }}" method="post">
|
2024-02-16 16:34:30 +02:00
|
|
|
{% if error %}
|
2023-12-06 00:44:38 +02:00
|
|
|
<output name="error" for="form-post-message">{{ error }}</output>
|
|
|
|
{% endif %}
|
2024-02-16 16:34:30 +02:00
|
|
|
{% if warning %}
|
|
|
|
<output name="warning" for="form-post-message">{{ warning }}</output>
|
|
|
|
{% endif %}
|
2023-12-06 00:44:38 +02:00
|
|
|
<textarea name="message" id="form-post-message" placeholder="{{ 'enter your message...' | trans }}">{{ message }}</textarea>
|
2023-12-18 06:42:46 +02:00
|
|
|
{% if sign == 'anon' or sign == '' %}
|
2023-12-06 11:30:08 +02:00
|
|
|
<input type="radio" name="sign" value="anon" id="form-post-sign-anon" checked="checked" />
|
2023-12-05 04:15:41 +02:00
|
|
|
{% else %}
|
2023-12-06 11:30:08 +02:00
|
|
|
<input type="radio" name="sign" value="anon" id="form-post-sign-anon" />
|
2023-12-05 04:15:41 +02:00
|
|
|
{% endif %}
|
2023-12-06 11:30:08 +02:00
|
|
|
<label for="form-post-sign-anon">
|
2023-12-06 04:21:27 +02:00
|
|
|
{{ 'anon' | trans }}
|
2023-12-05 04:15:41 +02:00
|
|
|
</label>
|
2023-12-18 05:51:45 +02:00
|
|
|
{% if username %}
|
|
|
|
{% if sign == 'username' %}
|
|
|
|
<input type="radio" name="sign" value="username" id="form-post-sign-username" checked="checked" />
|
|
|
|
{% else %}
|
|
|
|
<input type="radio" name="sign" value="username" id="form-post-sign-username" />
|
|
|
|
{% endif %}
|
|
|
|
<label for="form-post-sign-username">
|
|
|
|
@{{ username }}
|
|
|
|
</label>
|
|
|
|
|
|
|
|
|
<a href="{{ path('user_logout') }}">{{ 'logout' | trans }}</a>
|
2023-12-05 04:15:41 +02:00
|
|
|
{% else %}
|
2023-12-18 05:51:45 +02:00
|
|
|
<input type="radio" name="sign" value="username" id="form-post-sign-username" disabled="disabled" />
|
|
|
|
<a href="{{ path('user_login') }}">{{ 'login' | trans }}</a>
|
2023-12-05 04:15:41 +02:00
|
|
|
{% endif %}
|
|
|
|
<button type="submit">{{ 'send' | trans }}</button>
|
2024-02-15 23:15:00 +02:00
|
|
|
{% if cost %}
|
|
|
|
<span>{{ 'cost: %s KVA' | format(cost) | trans }}</span>
|
|
|
|
{% endif %}
|
2024-02-16 17:59:06 +02:00
|
|
|
<input type="hidden" name="token" value="{{ token }}" />
|
2023-12-05 04:15:41 +02:00
|
|
|
</form>
|
|
|
|
{% endif %}
|