mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Update template.njk
Experimenting with setting the "for"
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
{% set labelHtml %}
|
{% set labelHtml %}
|
||||||
<label class="usa-label{%- if params.classes %} {{ params.classes }}{% endif %}"
|
<label class="usa-label{%- if params.classes %} {{ params.classes }}{% endif %}"
|
||||||
{%- for attribute, value in params.attributes %} {{attribute}}="{{value}}"{% endfor %}
|
{%- for attribute, value in params.attributes %} {{attribute}}="{{value}}"{% endfor %}
|
||||||
{%- if params.for %} for="{{ params.for }}"{% endif %}>
|
{%- if params.text %} for="{{ params.text | slugify }}"{% endif %}>
|
||||||
{{ params.html | safe if params.html else params.text }}
|
{{ params.html | safe if params.html else params.text }}
|
||||||
</label>
|
</label>
|
||||||
{% endset %}
|
{% endset %}
|
||||||
|
|||||||
Reference in New Issue
Block a user