Tweak the UI (make it use the new user API) and bugfixes

This commit is contained in:
Thomas Sileo
2018-06-03 11:41:18 +02:00
parent ef5b32a33c
commit 7db48800a2
5 changed files with 20 additions and 42 deletions

View File

@@ -5,7 +5,9 @@
<div id="container">
{% include "header.html" %}
<div id="new">
<form action="" method="POST">
<form action="/api/new_note" method="POST">
<input type="hidden" name="redirect" value="/">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
{% 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;">