2018-05-22 14:57:45 +02:00
|
|
|
{% load widget_tweaks %}
|
2018-06-12 14:35:23 +02:00
|
|
|
<form method="post" id="post-form" action="{% url "toot" %}" enctype="multipart/form-data">
|
2018-05-22 14:57:45 +02:00
|
|
|
{% csrf_token %}
|
|
|
|
|
2018-08-02 17:13:50 +02:00
|
|
|
<div>
|
|
|
|
{{ form.non_field_errors }}
|
|
|
|
<br>
|
|
|
|
</div>
|
|
|
|
|
2018-08-17 14:21:45 +02:00
|
|
|
<div class="field">
|
|
|
|
<label class="label"> {{ form.spoiler_text.label }}</label>
|
|
|
|
<div class="control">
|
|
|
|
{% render_field form.spoiler_text class+="input mousetrap" placeholder="Optional" %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-05-22 14:57:45 +02:00
|
|
|
<div class="field" >
|
|
|
|
<label class="label" >{{ form.status.label }}</label>
|
|
|
|
<div class="control">
|
2019-01-18 03:02:23 +01:00
|
|
|
<textarea name="status" cols="40" rows="3" class="textarea is-primary mousetrap"
|
|
|
|
required="" id="id_status"
|
|
|
|
ic-post-to="{% url "user_search" %}"
|
|
|
|
ic-trigger-on="keyup changed" ic-trigger-delay="500ms"
|
2019-01-18 14:03:38 +01:00
|
|
|
ic-target="#username_autocomplete">{% if form.status.value %}{{ form.status.value }}{% endif %}</textarea>
|
2019-01-18 03:02:23 +01:00
|
|
|
<div id="username_autocomplete"></div>
|
2018-05-22 14:57:45 +02:00
|
|
|
</div>
|
2018-09-07 22:28:33 +02:00
|
|
|
<div id="status_count"></div>
|
2018-05-22 14:57:45 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field has-addons">
|
2018-07-18 19:33:16 +02:00
|
|
|
<div class="control level is-mobile">
|
2019-04-07 01:57:19 +02:00
|
|
|
<a href="{% url "user" own_acct.acct %}" class="image avatar is-48x48 level-item">
|
|
|
|
<img src="{{ own_acct.avatar_static }}" alt="[{{ own_acct.acct }}]">
|
|
|
|
</a>
|
2018-07-18 19:33:16 +02:00
|
|
|
<input type="submit" class="button is-primary level-item"
|
2018-05-22 14:57:45 +02:00
|
|
|
name="toot" value="Toot">
|
2018-08-10 04:13:45 +02:00
|
|
|
<a href="{% url "emoji" %}" target="_blank" rel="noopener noreferrer"
|
|
|
|
class="level-item emoji-link" title="custom emoji reference">😊</a>
|
2018-09-05 17:25:10 +02:00
|
|
|
<a href="{% url "toot" %}"
|
|
|
|
ic-get-from="{% url "toot" %}"
|
|
|
|
ic-target="#post-form"
|
|
|
|
ic-select-from-response="#post-form"
|
2018-10-14 14:36:47 +02:00
|
|
|
ic-include="#id_status,#id_spoiler_text"
|
2018-09-05 17:25:10 +02:00
|
|
|
title="Complete toot form (media, visibility, etc"
|
2018-09-05 18:14:10 +02:00
|
|
|
class="fa fa-edit">
|
2018-09-05 17:25:10 +02:00
|
|
|
<span class="is-hidden">Complete toot form (media, visibility etc)</span>
|
|
|
|
</a>
|
2018-05-22 14:57:45 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-10-09 19:08:02 +02:00
|
|
|
{% if not preferences.theme.no_javascript %}
|
2018-09-07 22:28:33 +02:00
|
|
|
<script type="application/javascript">
|
|
|
|
Intercooler.ready(characterCountSetup);
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
2018-05-22 14:57:45 +02:00
|
|
|
</form>
|