From 23e06d36f21eb10414ac2e2b02cd86fae2b2b82d Mon Sep 17 00:00:00 2001 From: Eric Beahan Date: Wed, 19 Aug 2020 15:57:51 -0500 Subject: [PATCH] add comments at the end of conditional clauses --- scripts/templates/field_details.j2 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/templates/field_details.j2 b/scripts/templates/field_details.j2 index 2b18177603..0b1bb6e224 100644 --- a/scripts/templates/field_details.j2 +++ b/scripts/templates/field_details.j2 @@ -33,8 +33,8 @@ Multi-fields: * {{ mf['flat_name'] }} (type: {{ mf ['type'] }}) -{% endfor %} -{% endif %} +{% endfor %}{# for mf #} +{% endif %}{# if 'multi_fields' #} {% if 'array' in field['normalize'] -%} Note: this field should contain an array of values. @@ -52,15 +52,15 @@ To learn more about when to use which value, visit the page example: `{{ field['example'] }}` -{%- endif %} +{%- endif %}{# if 'allowed_values' elif 'example' #} {# `Level` column -#} | {{ field['level'] }} // =============================================================== -{% endif -%} -{% endfor -%} +{% endif %}{# if 'original_fieldset' -#} +{% endfor %}{# for 'field' -#} |===== @@ -81,8 +81,8 @@ Note also that the `{{ fieldset['name'] }}` fields may be used directly at the r Note also that the `{{ fieldset['name'] }}` fields are not expected to be used directly at the root of the events. -{% endif -%} -{% endif %} +{% endif %}{# if 'top_level' -#} +{% endif %}{# if 'reusable' #} {% if 'nestings' in fieldset -%} @@ -109,5 +109,5 @@ Note also that the `{{ fieldset['name'] }}` fields are not expected to be used d |===== -{% endif %} -{%- endif %} +{% endif %}{# if 'nestings' #} +{%- endif %}{# if 'nestings' or 'reusable' in fieldset #}