{% extends "base.html" %}
{% load static i18n %}

{% block content %}
  <main id="subreddit--page" class="main">
    {% if subreddit.error %}
      {% trans "Failed to retrieve posts" as title %}
      {% include "components/textbox/textbox.html" with title=title body=subreddit.error class="text-section--error" only %}
    {% endif %}

    {% url "news:collection:rules" as cancel_url %}
    {% include "components/form/form.html" with form=form title="Update subreddit" cancel_url=cancel_url confirm_text="Save subreddit" %}
  </main>
{% endblock %}
