{% extends 'admin/model/list.html' %} {% import 'admin/_group_fold.html' as group_fold %} {# Global Custom Attributes: the rules grouped by the attributes they set. Grouping is only a view: the rules keep running in the order of their sort value. Every row shows its place in that order (#n), and a group whose rules are interleaved with the rules of other groups says so. Rows are moved by drag and drop on the handle, or with the arrow keys while the handle has the focus. Every rule stands in exactly one group: the set of attributes it sets, so a rule with several attributes forms a box of that combination (key: the sorted names joined with " + "). A rule of one attribute dropped into another group of one attribute sets that group's attribute instead, after a confirmation. A move into or out of a box of several attributes is refused, those rules change their attributes in the rule itself. A group folds away with its heading (Expand all / Collapse all for every group), which groups are folded is kept per group key in the browser. A rule moved with the arrow keys into a folded group unfolds it, so the moved row stays in sight. Grouped only on the default order (by sort value) and when every rule fits on one page, an explicit sort or the plain list switch shows the normal table. #} {% block model_menu_bar_after_filters %} {{ super() }}