2018-04-30 14:58:10 +02:00
|
|
|
{% load widget_tweaks %}
|
|
|
|
|
2018-04-30 20:31:59 +02:00
|
|
|
{% if reply %}
|
2018-05-01 20:44:56 +02:00
|
|
|
<form method="post" action="{% url "reply" toot.id %}" enctype="multipart/form-data">
|
2018-04-30 20:31:59 +02:00
|
|
|
{% else %}
|
2018-05-01 20:44:56 +02:00
|
|
|
<form method="post" action="{% url "toot" %}" enctype="multipart/form-data">
|
2018-04-30 20:31:59 +02:00
|
|
|
{% endif %}
|
2018-04-30 14:58:10 +02:00
|
|
|
{% csrf_token %}
|
|
|
|
|
2018-04-30 23:59:30 +02:00
|
|
|
<div class="field">
|
|
|
|
<label class="label"> {{ form.spoiler_text.label }}</label>
|
|
|
|
<div class="control">
|
|
|
|
{% render_field form.spoiler_text class+="input" placeholder="Optional" %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-04-30 14:58:10 +02:00
|
|
|
<div class="field" >
|
|
|
|
<label class="label" >{{ form.status.label }}</label>
|
|
|
|
<div class="control">
|
|
|
|
{% render_field form.status class+="textarea is-primary" rows="4" %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<label class="label" > {{ form.visibility.label }}</label>
|
2018-04-30 23:59:30 +02:00
|
|
|
<div class="control has-icons-left">
|
2018-04-30 14:58:10 +02:00
|
|
|
<div class="select">
|
|
|
|
{% render_field form.visibility class+="select"%}
|
|
|
|
<span class="icon is-small is-left" >
|
|
|
|
<i class="fa address-card"></i>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-05-01 20:44:56 +02:00
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<label class="label"> {{ form.media_file_1.label }}</label>
|
|
|
|
<div class="content">
|
|
|
|
{% render_field form.media_file_1 %}
|
|
|
|
</div>
|
|
|
|
<div class="control">
|
|
|
|
{% render_field form.media_text_1 class+="input" placeholder="Describe attachment" %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
{{ form.errors }}
|
|
|
|
</div>
|
|
|
|
|
2018-04-30 23:59:30 +02:00
|
|
|
<div class="field">
|
|
|
|
<div class="control">
|
|
|
|
<input type="submit" class="button is-primary"
|
|
|
|
name="toot" value="Toot">
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-30 14:58:10 +02:00
|
|
|
</form>
|