{#- One part of a form's layout: a field, or the fields a row, a column, a fieldset, a panel inside another or a set of tabs holds. `rows` maps a path to its form row, and `wrong` lists the paths with a mistake. -#} {% macro part(piece, rows, wrong) -%} {%- if piece.kind == "field" -%} {%- set row = rows[piece.path] -%} {%- set hide_label = not piece.show_label -%} {% include "adminsite/_field.html" %} {%- elif piece.kind == "row" -%} {#- Side by side once there is room, one under the other on a phone. -#}
{{ piece.description }}
{% endif -%}