2023-12-05 02:15:41 +00:00
|
|
|
{% if enabled %}
|
|
|
|
<form name="post" action="{{ path('room_post', { namespace : namespace }) }}" method="post">
|
2023-12-05 22:44:38 +00:00
|
|
|
{% if error %}
|
|
|
|
<output name="error" for="form-post-message">{{ error }}</output>
|
|
|
|
{% endif %}
|
|
|
|
<textarea name="message" id="form-post-message" placeholder="{{ 'enter your message...' | trans }}">{{ message }}</textarea>
|
2023-12-06 02:21:27 +00:00
|
|
|
{% if user == 'anon' or user != 'ip' %}
|
|
|
|
<input type="radio" name="user" value="anon" id="form-post-user-anon" checked="checked" />
|
2023-12-05 02:15:41 +00:00
|
|
|
{% else %}
|
2023-12-06 02:21:27 +00:00
|
|
|
<input type="radio" name="user" value="anon" id="form-post-user-anon" />
|
2023-12-05 02:15:41 +00:00
|
|
|
{% endif %}
|
2023-12-06 02:21:27 +00:00
|
|
|
<label for="form-post-user-anon">
|
|
|
|
{{ 'anon' | trans }}
|
2023-12-05 02:15:41 +00:00
|
|
|
</label>
|
|
|
|
{% if user == 'ip' %}
|
|
|
|
<input type="radio" name="user" value="ip" id="form-post-user-ip" checked="checked" />
|
|
|
|
{% else %}
|
|
|
|
<input type="radio" name="user" value="ip" id="form-post-user-ip" />
|
|
|
|
{% endif %}
|
|
|
|
<label for="form-post-user-ip">
|
|
|
|
@{{ ip }}
|
|
|
|
</label>
|
|
|
|
<button type="submit">{{ 'send' | trans }}</button>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|