{% extends "base.html" %} {% block title %}{% if category %}Edit{% else %}Add{% endif %} Category — Admin — {{ config.BBS_NAME }}{% endblock %} {% block content %}

{% if category %} Edit: {{ category.name }} {% else %} Add Category{% endif %}

Back
{{ form.hidden_tag() }} {% if form.errors %}
Fix errors below:
{% endif %}
{{ form.name.label(class="form-label") }} {{ form.name(class="form-control", placeholder="Space") }}
{{ form.slug.label(class="form-label") }} {{ form.slug(class="form-control", placeholder="space") }} Lowercase, no spaces. Used to tag games. Example: space, rpg
{{ form.sort_order.label(class="form-label") }} {{ form.sort_order(class="form-control") }} Lower numbers appear first in menus.
{{ form.as_submenu(class="form-check-input") }} {{ form.as_submenu.label(class="form-check-label") }}
Off: this category's games are listed inline on the door menu, same as today. On: the door menu shows one line for this whole category, and picking it opens a second menu listing just its games -- useful once a category has a lot of doors.
{{ form.submit(class="btn btn-primary") }} Cancel
{% if not category %} {% endif %} {% endblock %}