71 lines
2.6 KiB
HTML
71 lines
2.6 KiB
HTML
{% load static %}
|
|
{% load i18n %}
|
|
{% load l10n %}
|
|
{% load humanize %}
|
|
{% load mastodon %}
|
|
{% load thumb %}
|
|
<dialog open
|
|
class="mark-editor"
|
|
_="on close_dialog add .closing then wait for animationend then remove me">
|
|
<article>
|
|
<header>
|
|
<link to="#"
|
|
aria-label="Close"
|
|
class="close"
|
|
_="on click trigger close_dialog" />
|
|
<strong>{% trans 'Note' %} - {{ item.display_title }}</strong>
|
|
</header>
|
|
<div>
|
|
<form action="{% url 'journal:note' item.uuid %}" method="post">
|
|
{% csrf_token %}
|
|
<input type="hidden" name="uuid" value="{{ note.uuid|default:'' }}">
|
|
<textarea name="content" cols="40" rows="10" placeholder="" id="id_content">{{ note.content|default:'' }}</textarea>
|
|
<div class="grid">
|
|
<div>
|
|
<fieldset>
|
|
<input type="radio"
|
|
name="visibility"
|
|
value="0"
|
|
required=""
|
|
id="id_visibility_0"
|
|
{% if note.visibility == 0 or not note %}checked{% endif %}>
|
|
<label for="id_visibility_0">{% trans "Public" %}</label>
|
|
<input type="radio"
|
|
name="visibility"
|
|
value="1"
|
|
required=""
|
|
id="id_visibility_1"
|
|
{% if note.visibility == 1 %}checked{% endif %}>
|
|
<label for="id_visibility_1">{% trans "Followers Only" %}</label>
|
|
<input type="radio"
|
|
name="visibility"
|
|
value="2"
|
|
required=""
|
|
id="id_visibility_2"
|
|
{% if note.visibility == 2 %}checked{% endif %}>
|
|
<label for="id_visibility_2">{% trans "Mentioned Only" %}</label>
|
|
</fieldset>
|
|
</div>
|
|
<div>
|
|
<fieldset>
|
|
{% if request.user.mastodon_acct %}
|
|
<label for="id_share_to_mastodon">
|
|
<input role="switch"
|
|
type="checkbox"
|
|
name="share_to_mastodon"
|
|
id="id_share_to_mastodon"
|
|
value="1"
|
|
{% if request.user.preference.mastodon_default_repost %}checked{% endif %}>
|
|
{% trans "Repost to timeline" %}
|
|
</label>
|
|
{% endif %}
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<input type="submit" class="button float-right" value="{% trans "Save" %}">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</article>
|
|
</dialog>
|