KevaChat is distributed chat platform for open, uncensored and privacy respectable communication with permanent data storage in blockchain.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.6 KiB

{% if enabled %}
<form name="post" action="{{ path('room_post', { mode : mode, namespace : namespace }) }}" method="post">
{% 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>
{% if sign == 'anon' or sign == '' %}
12 months ago
<input type="radio" name="sign" value="anon" id="form-post-sign-anon" checked="checked" />
{% else %}
12 months ago
<input type="radio" name="sign" value="anon" id="form-post-sign-anon" />
{% endif %}
12 months ago
<label for="form-post-sign-anon">
{{ 'anon' | trans }}
</label>
{% 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>
{% else %}
<input type="radio" name="sign" value="username" id="form-post-sign-username" disabled="disabled" />
<a href="{{ path('user_login') }}">{{ 'login' | trans }}</a>
{% endif %}
<button type="submit">{{ 'send' | trans }}</button>
{% if cost %}
<span>{{ 'cost: %s KVA' | format(cost) | trans }}</span>
{% endif %}
</form>
{% endif %}