mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-10 10:03:21 -04:00
move vendored uk components to templates
This commit is contained in:
17
app/templates/components/uk_components/fieldset/template.njk
Normal file
17
app/templates/components/uk_components/fieldset/template.njk
Normal file
@@ -0,0 +1,17 @@
|
||||
<fieldset class="govuk-fieldset
|
||||
{%- if params.classes %} {{ params.classes }}{% endif %}"
|
||||
{%- if params.describedBy %} aria-describedby="{{ params.describedBy }}"{% endif %}
|
||||
{%- for attribute, value in params.attributes %} {{ attribute }}="{{ value }}"{% endfor %}>
|
||||
{% if params.legend.html or params.legend.text %}
|
||||
<legend class="govuk-fieldset__legend {%- if params.legend.classes %} {{ params.legend.classes }}{% endif %}">
|
||||
{% if params.legend.isPageHeading %}
|
||||
<h1 class="govuk-fieldset__heading">
|
||||
{{ params.legend.html | safe if params.legend.html else params.legend.text }}
|
||||
</h1>
|
||||
{% else %}
|
||||
{{ params.legend.html | safe if params.legend.html else params.legend.text }}
|
||||
{% endif %}
|
||||
</legend>
|
||||
{% endif %}
|
||||
{{ caller() if caller }} {#- if statement allows usage of `call` to be optional -#}
|
||||
</fieldset>
|
||||
Reference in New Issue
Block a user