Tweaked a few more issues

This commit is contained in:
alexjanousekGSA
2025-07-31 09:24:44 -04:00
parent ab7b262c01
commit 6942a2843d
11 changed files with 18 additions and 21 deletions

View File

@@ -39,7 +39,7 @@
' {{{sharedAttributes}}}' +
'/>' +
'{{#button}}' +
'<button type="button" class="usa-button usa-button--secondary input-list__button--remove">' +
'<button type="button" class="usa-button usa-button--unstyled input-list__button--remove">' +
'Remove<span class="usa-sr-only"> {{listItemName}} number {{number}}</span>' +
'</button>' +
'{{/button}}' +

View File

@@ -12,12 +12,12 @@
{% macro select_list(options, child_map, disable=[], option_hints={}, input="radio", indent_level=0) %}
{% for option in options %}
{% if child_map[option.data] %}
<div class="{% if indent_level > 0 %}margin-left-{{ indent_level + 2 }}{% endif %}">
<div class="{% if indent_level == 1 %}margin-left-3{% elif indent_level == 2 %}margin-left-4{% elif indent_level >= 3 %}margin-left-5{% endif %}">
{{ select_input(option, disable, option_hints, as_list_item=False, input=input) }}
</div>
{{ select_list(child_map[option.data], child_map, disable, option_hints, input=input, indent_level=indent_level + 1) }}
{% else %}
<div class="{% if indent_level > 0 %}margin-left-{{ indent_level + 2 }}{% endif %}">
<div class="{% if indent_level == 1 %}margin-left-3{% elif indent_level == 2 %}margin-left-4{% elif indent_level >= 3 %}margin-left-5{% endif %}">
{{ select_input(option, disable, option_hints, as_list_item=False, input=input) }}
</div>
{% endif %}
@@ -45,11 +45,7 @@
<fieldset id="{{ field.id }}" class="usa-fieldset" {% if inline %}class="inline"{% endif %}>
<legend class="{{ 'usa-legend' if not hide_legend else '' }}{% if legend_style != 'text' %} {{ legend_style }}{% endif %}">
{% if hide_legend %}<span class="usa-sr-only">{% endif %}
{% if legend_style == 'usa-legend--large' %}
<h1>{{ field.label.text|safe }}</h1>
{% else %}
{{ field.label.text|safe }}
{% endif %}
{{ field.label.text|safe }}
{% if hide_legend %}</span>{% endif %}
{% if hint %}
<span class="form-hint">

View File

@@ -20,15 +20,17 @@
{% call form_wrapper() %}
{{ form.key_name }}
{% if current_service.trial_mode %}
{{ radios(
form.key_type,
disable=['normal'],
option_hints={'normal': 'Not available because your service is in <a class="usa-link" href="/features/trial-mode">trial mode</a>'|safe}
) }}
{% else %}
{{ radios(form.key_type) }}
{% endif %}
<div class="margin-top-5">
{% if current_service.trial_mode %}
{{ radios(
form.key_type,
disable=['normal'],
option_hints={'normal': 'Not available because your service is in <a class="usa-link" href="/features/trial-mode">trial mode</a>'|safe}
) }}
{% else %}
{{ radios(form.key_type) }}
{% endif %}
</div>
{{ page_footer('Continue') }}
{% endcall %}

View File

@@ -16,12 +16,11 @@
<div class="grid-row">
{% call form_wrapper() %}
{{ radios(form.sender, legend_style='usa-legend--large', option_hints=option_hints) }}
{{ radios(form.sender, option_hints=option_hints) }}
<div class="grid-col-9">
{{ page_footer('Continue') }}
</div>
{% endcall %}
</div>
</div>
{% endblock %}

View File

@@ -18,10 +18,10 @@
<div class="grid-row">
{% call form_wrapper() %}
{{ radios(form.sender, legend_style='usa-legend--large') }}
{{ radios(form.sender) }}
<div class="grid-col-9">
{{ page_footer('Continue') }}
</div>
</div>
{% endcall %}
</div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 325 KiB

After

Width:  |  Height:  |  Size: 325 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB

After

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB

After

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB

After

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 KiB

After

Width:  |  Height:  |  Size: 114 KiB