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