{% extends "base.html" %} {% set is_edit = obj is not none and item_id is defined %} {% set action_label = "Edit" if is_edit else "Add" %} {% block title %}{{ action_label }} {{ ma.model.__name__ }} — {{ admin.title }}{% endblock %} {% block breadcrumb %} {{ admin.title }} {{ ma.verbose_name_plural }} {% endblock %} {% block content %}