import type Form from "./Form.js";
import Title from "./Title.js";
export default function FormTemplate(this: Form) {
return (
{this.hasHeader &&
}
{ this.hasGroupItems ? groupedItemsLayout.call(this) : standaloneItemsLayout.call(this) }
);
}
function groupedItemsLayout(this: Form) {
return ;
}
function standaloneItemsLayout(this: Form) {
return (
this.accessibleMode === "Edit" ?
{ standaloneItemsLayoutContent.call(this) }
:
{ standaloneItemsLayoutContent.call(this) }
);
}
function standaloneItemsLayoutContent(this: Form) {
return this.itemsInfo.map(itemInfo => {
const item = itemInfo.item;
return (
);
});
}