|
|
@ -4,7 +4,7 @@ |
|
|
|
<output name="error" for="form-post-message">{{ error }}</output> |
|
|
|
<output name="error" for="form-post-message">{{ error }}</output> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
<textarea name="message" id="form-post-message" placeholder="{{ 'enter your message...' | trans }}">{{ message }}</textarea> |
|
|
|
<textarea name="message" id="form-post-message" placeholder="{{ 'enter your message...' | trans }}">{{ message }}</textarea> |
|
|
|
{% if sign == 'anon' or sign != 'ip' %} |
|
|
|
{% if sign == 'anon' or sign != 'username' %} |
|
|
|
<input type="radio" name="sign" value="anon" id="form-post-sign-anon" checked="checked" /> |
|
|
|
<input type="radio" name="sign" value="anon" id="form-post-sign-anon" checked="checked" /> |
|
|
|
{% else %} |
|
|
|
{% else %} |
|
|
|
<input type="radio" name="sign" value="anon" id="form-post-sign-anon" /> |
|
|
|
<input type="radio" name="sign" value="anon" id="form-post-sign-anon" /> |
|
|
@ -12,14 +12,21 @@ |
|
|
|
<label for="form-post-sign-anon"> |
|
|
|
<label for="form-post-sign-anon"> |
|
|
|
{{ 'anon' | trans }} |
|
|
|
{{ 'anon' | trans }} |
|
|
|
</label> |
|
|
|
</label> |
|
|
|
{% if sign == 'ip' %} |
|
|
|
{% if username %} |
|
|
|
<input type="radio" name="sign" value="ip" id="form-post-sign-ip" checked="checked" /> |
|
|
|
{% 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 %} |
|
|
|
{% else %} |
|
|
|
<input type="radio" name="sign" value="ip" id="form-post-sign-ip" /> |
|
|
|
<input type="radio" name="sign" value="username" id="form-post-sign-username" disabled="disabled" /> |
|
|
|
|
|
|
|
<a href="{{ path('user_login') }}">{{ 'login' | trans }}</a> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
<label for="form-post-sign-ip"> |
|
|
|
|
|
|
|
@{{ ip }} |
|
|
|
|
|
|
|
</label> |
|
|
|
|
|
|
|
<button type="submit">{{ 'send' | trans }}</button> |
|
|
|
<button type="submit">{{ 'send' | trans }}</button> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |