bookwyrm/bookwyrm/templates/compose.html
2024-08-23 16:42:39 -07:00

60 lines
1.8 KiB
HTML

{% extends 'layout.html' %}
{% load i18n %}
{% load utilities %}
{% block title %}
{% if draft.status_type == "Review" %}
{% trans "Edit review" %}
{% elif draft.status_type == "Quotation" %}
{% trans "Edit quote" %}
{% elif draft.status_type == "Comment" %}
{% trans "Edit comment" %}
{% else %}
{% trans "Edit status" %}
{% endif %}
{% endblock %}
{% block content %}
<header class="block content">
<h1>
{% if draft.status_type == "Review" %}
{% trans "Edit review" %}
{% elif draft.status_type == "Quotation" %}
{% trans "Edit quote" %}
{% elif draft.status_type == "Comment" %}
{% trans "Edit comment" %}
{% else %}
{% trans "Edit status" %}
{% endif %}
</h1>
</header>
{% with 0|uuid as uuid %}
<div class="box columns">
{% if book %}
<div class="column is-3 is-cover">
<div class="block">
<a href="{{ book.local_path }}">{% include 'snippets/book_cover.html' with book=book cover_class='is-w-auto-tablet is-h-l-mobile' %}</a>
</div>
<h3 class="title is-6">{% include 'snippets/book_titleby.html' with book=book %}</h3>
</div>
{% endif %}
<div class="column">
{% if draft.reply_parent %}
{% include 'snippets/status/status.html' with status=draft.reply_parent no_interact=True %}
{% else %}
<div class="block">
{% include "snippets/status/header.html" with status=draft %}
</div>
{% endif %}
{% if not draft %}
{% include 'snippets/create_status.html' %}
{% else %}
{% include 'snippets/create_status/status.html' with no_script=True %}
{% endif %}
</div>
</div>
{% endwith %}
{% endblock %}