{% extends "wagtailadmin/base.html" %}{% load i18n static commentail_tags %} {% block titletag %}{% trans "Import CSV" %}{% endblock %} {% block extra_css %}{{ block.super }}{% endblock %} {% block extra_js %}{{ block.super }}{% endblock %} {% block content %}{% trans "Import CSV" as import_title %}{% include "wagtailadmin/shared/header.html" with title=import_title icon="upload" classname="commentail-admin-heading" %}
← {% trans "Moderation rules" %}
{% if form.errors %} {% endif %}

{% trans "Use UTF-8 CSV with comma or semicolon separators and the headers phrase, action, enabled." %}

{% trans "Actions: review or reject. Enabled: 1/0 or true/false." %}

phrase,action,enabled
spam,review,1
unwanted phrase,reject,1

{% trans "New phrases are added; exact existing phrases update their action and enabled state. Other rules remain unchanged. If any row is invalid, nothing is saved." %}

{% trans "Export includes all project rules. Formula-like phrases are prefixed with an apostrophe for spreadsheets; importing restores the original text." %}

{% csrf_token %}{{ form.non_field_errors }}{% for field in form %}{% include "wagtailadmin/shared/field.html" with field=field only %}{% endfor %}
{% endblock %}