{#- The dialogs of the documents' pages, on the Abilian Design System. Imported `with context`: they read `g.community`, `csrf` and `url_for`. On a folder's page, those that act on one item are filled from its row by `vite/src/documents/folder.js`; on a document's page, from the document. The move and change-owner dialogs act on the selection: on a document's page, the document alone. -#} {#- A dialog holding a form: a title, the fields, Cancel and the button that sends it. -#} {% macro form_dialog(id, title, submit, action="", value=none, attrs={}, form_id=none) -%} {%- endmacro %} {#- A name, checked for uniqueness in the folder as it is typed (`name-check.js`), and a description. -#} {% macro name_fields(prefix, title="", description="", title_class="", description_class="") %} {% set check_url = url_for(".check_valid_name", community_id=g.community.slug) %}