microblog/app/templates/admin_new.html

31 lines
951 B
HTML
Raw Normal View History

2022-06-22 18:11:22 +00:00
{%- import "utils.html" as utils with context -%}
{% extends "layout.html" %}
{% block content %}
2022-06-24 09:33:05 +00:00
{% if in_reply_to_object %}
2022-06-26 09:09:43 +00:00
<p>In reply to:</p>
2022-06-24 09:33:05 +00:00
{{ utils.display_object(in_reply_to_object) }}
{% endif %}
2022-06-22 18:11:22 +00:00
<form action="{{ request.url_for("admin_actions_new") }}" enctype="multipart/form-data" method="POST">
{{ utils.embed_csrf_token() }}
{{ utils.embed_redirect_url() }}
<p>
<select name="visibility">
{% for (k, v) in visibility_enum %}
<option value="{{ k }}">{{ v }}</option>
{% endfor %}
</select>
</p>
<textarea name="content" rows="10" cols="50" autofocus="autofocus" designMode="on" style="font-size:1.2em;width:95%;">{{ content }}</textarea>
2022-06-24 09:33:05 +00:00
<input type="hidden" name="in_reply_to" value="{{ request.query_params.in_reply_to }}">
2022-06-26 09:09:43 +00:00
<p>
<input name="files" type="file" multiple>
</p>
<p>
<input type="submit" value="Publish">
</p>
2022-06-22 18:11:22 +00:00
</form>
{% endblock %}