microblog.pub/templates/new.html

21 lines
642 B
HTML
Raw Normal View History

2018-05-18 18:41:41 +00:00
{% extends "layout.html" %}
{% import 'utils.html' as utils %}
2018-05-21 19:03:21 +00:00
{% block title %}New - {{ config.NAME }}{% endblock %}
2018-05-18 18:41:41 +00:00
{% block content %}
<div id="container">
{% include "header.html" %}
<div id="new">
<form action="/api/new_note" method="POST">
<input type="hidden" name="redirect" value="/">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
2018-05-18 18:41:41 +00:00
{% if reply %}<input type="hidden" name="reply" value="{{reply}}">{% endif %}
<textarea name="content" rows="10" cols="50" autofocus="autofocus">{{ content }}</textarea>
<div style="margin-top:20px;">
<input type="submit" value="post">
</div>
</form>
</div>
</div>
{% endblock %}