diff --git a/bookwyrm/templates/settings/automod/rules.html b/bookwyrm/templates/settings/automod/rules.html index 78b88eba..5585dfde 100644 --- a/bookwyrm/templates/settings/automod/rules.html +++ b/bookwyrm/templates/settings/automod/rules.html @@ -33,63 +33,98 @@ {% endif %} -
- +
+

{% trans "Add Rule" %}

+
{% csrf_token %} -
- - - - - - - - - - - + +
+
+
+ + {{ form.string_match }} + {% include 'snippets/form_errors.html' with errors_list=form.string_match.errors id="desc_string_match" %} +
+
+ +
+
+ +
+ +
+ +
+
+
+ +
+ +
- {% for rule in rules %} - - - - - - - {% endfor %} -
- - - - - - -
- {{ form.string_match }} - {% include 'snippets/form_errors.html' with errors_list=form.string_match.errors id="desc_string_match" %} - - {{ form.flag_users }} - - {{ form.flag_statuses }} - - -
- {{ rule.string_match }} - - {{ rule.flag_users|yesno }} - - {{ rule.flag_statuses|yesno }} - -
- {% csrf_token %} - -
-
+
+ + +
+

{% trans "Current Rules" %}

+
+ + + {% trans "Show rules" %} ({{ rules.count }}) + + + + +
+ + + + + + + + {% for rule in rules %} + + + + + + + {% endfor %} +
+ + + + + + +
+ {{ rule.string_match }} + + {{ rule.flag_users|yesno }} + + {{ rule.flag_statuses|yesno }} + +
+ {% csrf_token %} +
+ +
+
+
+
+
{% endblock %}