2
0
mirror of https://github.com/jfmcbrayer/brutaldon synced 2024-12-27 07:42:24 +01:00
brutaldon-interfaccia-web-m.../brutaldon/templates/main/post_minimal_partial.html
Jason McBrayer 8fa5da1409 Do a better job of validating post length
This still doesn't correctly handle the shorter "effective lengths" for handles
and URLs. And it doesn't handle different per-server toot lengths. But it does
catch posts that become too long because the length of the CW is counted as part
of the length of the post body, and gives a validation error rather than
throwing an exception.
2018-08-02 11:13:50 -04:00

30 lines
905 B
HTML

{% load widget_tweaks %}
<form method="post" id="post-form" action="{% url "toot" %}" enctype="multipart/form-data">
{% csrf_token %}
<div>
{{ form.non_field_errors }}
<br>
</div>
<div class="field" >
<label class="label" >{{ form.status.label }}</label>
<div class="control">
{% render_field form.status class+="textarea is-primary mousetrap" rows="4" %}
</div>
</div>
<div class="field has-addons">
<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"
name="toot" value="Toot">
</div>
</div>
<div class="field">
<a href="{% url "toot" %}">
Complete toot form (media, etc)
</a>
</div>
</form>