{# @description A dialog that rises from the foot of a phone's screen and sits in the middle of a wider one: a grab bar, a head (art, icon, title and the line under it), a body that scrolls, and a foot. Pressing Escape, tapping outside it or its closing button closes it and changes nothing. Open it with an mvp.sheet.trigger or by dispatching mvp-sheet-open on the window with the sheet's id. #} {# @prop id:text | required | description:"The sheet's id, unique on the page. A trigger names it in its for prop." #} {# @prop title:text | required | description:"What the sheet is about, shown in its head. It is the dialog's accessible name." #} {# @prop lead:text | description:"The line under the title." #} {# @prop icon:text | description:"Optional. An icon's name, drawn before the title." #} {# @prop full:boolean | description:"Open at the full height of the screen instead of the resting height." #} {# @prop fixed:boolean | description:"Keep the sheet at its resting height. It still closes when dragged down." #} {# @prop wide:boolean | description:"Give the centred dialog the wide size. A phone is unaffected." #} {# @prop class:text | description:"Extra classes added to the dialog." #} {# @slot

What the sheet holds.

— The body: a mvp.sheet.menu, mvp.sheet.view panels, a short form. It scrolls when it is taller than the box. #} {# @slot:art — Optional. Small art drawn before the title and hidden from assistive technology. #} {# @slot:description Text that describes the sheet. — Optional. Becomes the dialog's accessible description. #} {# @slot:actions — Optional. The buttons in the foot, in place of the default closing button. A button that only closes the sheet is type="button". #} {% load i18n %} {% if description.strip %}{% firstof id|add:"-description" as described_by %}{% endif %} {% if fixed %} {% else %} {% endif %}
{% if art.strip %}{% endif %}

{% if icon %}

{% if lead %}{{ lead }}{% endif %}
{% if description.strip %}
{{ description }}
{% endif %}
{{ slot }}
{% if actions.strip %} {{ actions }} {% else %} {% endif %}