{{#if ruleEditing}}
{{else}}
{{#if @root.document.sourceId}}
{{/if}}
{{#each rules.elements}}
{{#with (lookup @root.rules.labels @index)}}{{label}}{{/with}}
{{{template}}}

{{/each}}
{{localize "PF2E.ItemNewRuleElement"}}
{{/if}}