microblog.pub/templates/new.html

28 lines
889 B
HTML
Raw Normal View History

2018-05-18 13:41:41 -05:00
{% extends "layout.html" %}
{% import 'utils.html' as utils %}
2018-05-21 14:03:21 -05:00
{% block title %}New - {{ config.NAME }}{% endblock %}
2018-05-18 13:41:41 -05:00
{% block content %}
<div id="container">
{% include "header.html" %}
<div id="new">
2018-06-03 14:28:06 -05:00
{% if thread %}
<h3 style="padding-bottom: 30px">Replying to {{ content }}</h3>
{{ utils.display_thread(thread) }}
{% else %}
<h3 style="padding-bottom:20px;">New note</h3>
{% endif %}
<form action="/api/new_note" method="POST" enctype="multipart/form-data">
<input type="hidden" name="redirect" value="/">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
2018-05-18 13:41:41 -05:00
{% if reply %}<input type="hidden" name="reply" value="{{reply}}">{% endif %}
<textarea name="content" rows="10" cols="50" autofocus="autofocus">{{ content }}</textarea>
<input type="file" name="file">
2018-05-18 13:41:41 -05:00
<div style="margin-top:20px;">
<input type="submit" value="post">
</div>
</form>
</div>
</div>
{% endblock %}