We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fa6562 commit cc33bfbCopy full SHA for cc33bfb
src/moj/components/add-another/template.njk
@@ -2,6 +2,8 @@
2
{%- from "govuk/components/fieldset/macro.njk" import govukFieldset -%}
3
{%- from "govuk/components/button/macro.njk" import govukButton -%}
4
5
+{% set itemsHtml = params.itemsHtml if params.itemsHtml else caller() %}
6
+
7
{% set classNames = ["moj-add-another"] %}
8
{% if params.layout == 'inline' %}
9
{% set classNames = classNames.concat("moj-add-another--inline") %}
@@ -27,7 +29,7 @@
27
29
</template>
28
30
31
<div class="moj-add-another__items">
- {{ caller() | safe }}
32
+ {{ itemsHtml | safe }}
33
</div>
34
35
<div class="moj-button-action">
0 commit comments