mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 18:38:26 -04:00
16 lines
543 B
Plaintext
16 lines
543 B
Plaintext
{% if params.html or params.text %}
|
|
{% set labelHtml %}
|
|
<label class="usa-label{%- if params.classes %} {{ params.classes }}{% endif %}"
|
|
{%- for attribute, value in params.attributes %} {{attribute}}="{{value}}"{% endfor %}
|
|
{%- if params.text %} for="{{ params.text | slugify }}"{% endif %}>
|
|
{{ params.html | safe if params.html else params.text }}
|
|
</label>
|
|
{% endset %}
|
|
|
|
{% if params.isPageHeading %}
|
|
<h1 class="usa-radio__label-wrapper">{{ labelHtml | safe | indent(2) }}</h1>
|
|
{% else %}
|
|
{{ labelHtml | safe }}
|
|
{% endif %}
|
|
{% endif %}
|