From f3231116fbd886c2c286a7588aab8900a0e663b6 Mon Sep 17 00:00:00 2001 From: Eduardo Asenjo Date: Fri, 14 Jul 2023 20:55:17 +0100 Subject: [PATCH] feat: add layouts md template --- src/templates/layouts.md | 67 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 src/templates/layouts.md diff --git a/src/templates/layouts.md b/src/templates/layouts.md new file mode 100644 index 0000000..65856b2 --- /dev/null +++ b/src/templates/layouts.md @@ -0,0 +1,67 @@ + +# Layout - {{name}} + +- Full Name: {{fullName}} +- Name: {{name}} +- Exclude Buttons: {{Layout.excludeButtons}} + +{{#each Layout.layoutSections}} +### {{label}} +- Custom Label: {{customLabel}} +- Detail Heading: {{detailHeading}} +- Edit Heading: {{editHeading}} +- Label: {{label}} + +{{#if (eq style "OneColumn")}} +{{#if layoutColumns.layoutItems}} +| Field | +|-------------------| +{{#each (toArray layoutColumns.layoutItems)}} +| {{field}} | +{{/each}} +{{else}} +No layout columns specified. +{{/if}} +{{else if (eq style "CustomLinks")}} +{{#if layoutColumns}} +{{#each (toArray layoutColumns)}} +{{#if (eq . "")}} +{{else}} +- {{.}} +{{/if}} +{{/each}} +{{else}} +No custom links specified. +{{/if}} +{{else}} +{{#if (isArray (toArray layoutColumns.[0].layoutItems))}} +| Column 1 | Column 2 | +|-------------------|-----------| +{{#each (toArray layoutColumns.[0].layoutItems)}} +{{#with (lookup (toArray ../layoutColumns.[1].layoutItems) @index)}} +| {{../field}} ({{../behavior}}) | {{field}} ({{behavior}}) | +{{/with}} +{{/each}} +{{else}} +No layout columns specified. +{{/if}} +{{/if}} + +Style: {{style}} + +{{/each}} + + +## Related Lists + +- Fields: {{Layout.relatedLists.fields}} +- Related List: {{Layout.relatedLists.relatedList}} + + +## Summary Layout + +- Master Label: {{Layout.summaryLayout.masterLabel}} +- Size X: {{Layout.summaryLayout.sizeX}} +- Size Y: {{Layout.summaryLayout.sizeY}} +- Summary Layout Style: {{Layout.summaryLayout.summaryLayoutStyle}} +