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