{% extends "base.html" %}
{% block title %}{% if s %}Edit {{ s.name }}{% else %}New search{% endif %}{% endblock %}
{% block body_class %}is-task{% endblock %}
{% macro sec(id, ic, title, sub) -%}
{{ sub }}{{ title }}
{{ ui.icon(ic) }}{{ title }}{{ summary }}{{ ui.icon("chevron-right") }}
{% if s %}Changes apply from the next check. Listings you already got are not sent again.{% else %}Paste a search from Vinted, or build one here. The first check skips what's already there, so only new listings alert you.{% endif %}
{{ "One thing needs" if E|length == 1 else E|length ~ " things need" }} fixing before this can be saved. {{ "It's" if E|length == 1 else "They're" }} marked below.