18 lines
1.5 KiB
HTML
18 lines
1.5 KiB
HTML
{% 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 %}
|