22 lines
866 B
HTML
22 lines
866 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block body %}
|
|
<h1>Send a message to {{ username }}</h1>
|
|
<div id="error">{{ error }}</div>
|
|
<hr>
|
|
<form method="POST">
|
|
{% csrf_token %}
|
|
<p><textarea class="auto-size" name="message" id="message" required maxlength="10000" placeholder="Your message"></textarea></p>
|
|
{% if self_username %}
|
|
Logged in as <b>{{ self_username }}</b>
|
|
<div>
|
|
<input name="anonymous" id="anonymous" type="checkbox">
|
|
<label data-fake-checkbox for="anonymous">Don't attach your username</label>
|
|
</div>
|
|
{% else %}
|
|
Not logged in.
|
|
{% if config.new_users %}<a href="{{ config.services.auth.url.pub }}/signup/">Sign up</a>{% else %}<a href="{{ config.services.auth.url.pub }}/login/">Log in</a>{% endif %}?
|
|
{% endif %}
|
|
<p><input type="submit" value="Send message"></p>
|
|
</form>
|
|
{% endblock %}
|