Files

18 lines
1.5 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% extends 'base.html' %}{% load static slx_brand %}
{% block title %}Write a review · SLUMP X LAND{% endblock %}
{% block scripts %}<script defer src="{% static 'review-pages.js' %}"></script>{% endblock %}
{% block content %}
<main class="section article">
<p class="kicker">{% if series_review %}{{ "SLUMP X LAND"|slx_brand }} · Series review{% else %}Chapter #{{ chapter.number|stringformat:"03d" }} · {{ chapter.title|slx_brand }}{% endif %}</p>
<h1>{% if existing %}Edit your review{% else %}Write a review{% endif %}</h1>
<p>{% if series_review %}Choose your favorite chapter and an optional page from it.{% else %}Choose an optional page from this chapter.{% endif %} Reviews and edits go to moderation before appearing publicly.</p>
{% if existing %}<p>Current status: <strong>{{ existing.get_status_display }}</strong>.</p>{% endif %}
<form method="post" class="account-form review-form" data-review-form{% if series_review %} data-page-endpoint="{% url 'slx-review-pages' 0 %}"{% endif %}>
{% csrf_token %}{{ form.as_p }}
<figure data-review-preview hidden><img alt="Selected chapter page" loading="lazy"><figcaption></figcaption></figure>
<p data-review-page-status role="status"></p><button type="submit" class="cta">Submit review</button>
</form>
{% if series_review %}<noscript><p>To choose artwork, first open the <a href="{% url 'chapters' %}">chapter archive</a>, then use that chapter’s series review link.</p></noscript>{% endif %}
{{ page_choices|json_script:'review-page-data' }}
</main>{% endblock %}