|
1 |
| -{% if (ctx.component.type === "textfield" || ctx.component.type === "orgNr" || ctx.component.type === "bankAccount" || ctx.component.type === "htmlelement" || ctx.component.type === "radiopanel") { %} |
2 |
| - {{ctx.element}} |
3 |
| -{% } else { %} |
4 |
| - {% if (ctx.component.description && ctx.component.type !== "datagrid" && ctx.component.descriptionPosition === "above") { %} |
5 |
| - <div class="description" id="d-{{ctx.instance.id}}-{{ctx.component.key}}">{{ctx.t(ctx.component.description, { _userInput: true })}}</div> |
6 |
| - {% } %} |
7 |
| - |
8 |
| - {% if (!ctx.label.hidden && ctx.component.type !== "radio" && ctx.component.type !== "container" && ctx.component.type !== "alertstripe" && ctx.component.type !== "selectboxes" && ctx.component.type !== "navCheckbox" && ctx.component.type !== "datagrid" && ctx.component.type !== "navSkjemagruppe" && !ctx.component.isNavCheckboxPanel) { %} |
9 |
| - {{ ctx.labelMarkup }} |
10 |
| - {% } %} |
11 |
| - |
12 |
| - {% if (ctx.component.description && ctx.component.type !== "radio" && ctx.component.type !== "selectboxes" && ctx.component.type !== "datagrid" && !ctx.component.isNavCheckboxPanel && ctx.component.descriptionPosition !== "above" && (ctx.component.type !== "navCheckbox" || !ctx.component.descriptionPosition)) { %} |
13 |
| - <div class="description" id="d-{{ctx.instance.id}}-{{ctx.component.key}}">{{ctx.t(ctx.component.description, { _userInput: true })}}</div> |
14 |
| - {% } %} |
15 |
| - |
16 |
| - {{ctx.element}} |
17 |
| - |
18 |
| - {% if (ctx.component.description && ctx.component.type === "navCheckbox" && ctx.component.descriptionPosition === "below") { %} |
19 |
| - <div class="description" id="d-{{ctx.instance.id}}-{{ctx.component.key}}">{{ctx.t(ctx.component.description, { _userInput: true })}}</div> |
20 |
| - {% } %} |
21 |
| - |
| 1 | +{% if (ctx.component.type === "textfield" || ctx.component.type === "textarea" || ctx.component.type === "orgNr" || |
| 2 | +ctx.component.type === "bankAccount" || ctx.component.type === "htmlelement" || ctx.component.type === "radiopanel") { |
| 3 | +%} |
| 4 | +{{ ctx.element }} |
| 5 | +{% } else { %} {% if (ctx.component.description && ctx.component.type !== "datagrid" && |
| 6 | +ctx.component.descriptionPosition === "above") { %} |
| 7 | +<div class="description" id="d-{{ ctx.instance.id }}-{{ ctx.component.key }}"> |
| 8 | + {{ ctx.t(ctx.component.description, { _userInput: true }) }} |
| 9 | +</div> |
| 10 | +{% } %} {% if (!ctx.label.hidden && ctx.component.type !== "radio" && ctx.component.type !== "container" && |
| 11 | +ctx.component.type !== "alertstripe" && ctx.component.type !== "selectboxes" && ctx.component.type !== "navCheckbox" && |
| 12 | +ctx.component.type !== "datagrid" && ctx.component.type !== "navSkjemagruppe" && !ctx.component.isNavCheckboxPanel) { %} |
| 13 | +{{ ctx.labelMarkup }} |
| 14 | +{% } %} {% if (ctx.component.description && ctx.component.type !== "radio" && ctx.component.type !== "selectboxes" && |
| 15 | +ctx.component.type !== "datagrid" && !ctx.component.isNavCheckboxPanel && ctx.component.descriptionPosition !== "above" |
| 16 | +&& (ctx.component.type !== "navCheckbox" || !ctx.component.descriptionPosition)) { %} |
| 17 | +<div class="description" id="d-{{ ctx.instance.id }}-{{ ctx.component.key }}"> |
| 18 | + {{ ctx.t(ctx.component.description, { _userInput: true }) }} |
| 19 | +</div> |
22 | 20 | {% } %}
|
23 | 21 |
|
24 |
| -{% if (ctx.component.type !== "datagrid") { %} |
25 |
| - {{ctx.utils.additionalDescription(ctx)}} |
| 22 | +{{ ctx.element }} |
| 23 | + |
| 24 | +{% if (ctx.component.description && ctx.component.type === "navCheckbox" && ctx.component.descriptionPosition === |
| 25 | +"below") { %} |
| 26 | +<div class="description" id="d-{{ ctx.instance.id }}-{{ ctx.component.key }}"> |
| 27 | + {{ ctx.t(ctx.component.description, { _userInput: true }) }} |
| 28 | +</div> |
| 29 | +{% } %} {% } %} {% if (ctx.component.type !== "datagrid") { %} |
| 30 | +{{ ctx.utils.additionalDescription(ctx) }} |
26 | 31 | {% } %}
|
0 commit comments