Merge pull request #3416 from bookwyrm-social/edit-status-header

Sets edit status header to indicate status type
This commit is contained in:
Mouse Reeve 2024-08-27 14:37:26 -07:00 committed by GitHub
commit 3555ef9d2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,10 +2,31 @@
{% load i18n %} {% load i18n %}
{% load utilities %} {% load utilities %}
{% block title %}{% trans "Edit status" %}{% endblock %} {% 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 %} {% block content %}
<header class="block content"> <header class="block content">
<h1>{% trans "Edit status" %}</h1> <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> </header>
{% with 0|uuid as uuid %} {% with 0|uuid as uuid %}