mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
More updates to checkboxes and radio buttons
This commit is contained in:
@@ -128,26 +128,20 @@ td.table-empty-message {
|
|||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
// .template-list-item-without-ancestors a.template-list-folder:first-of-type {
|
|
||||||
// background: url(../img/material-icons/folder.svg) no-repeat;
|
|
||||||
// }
|
|
||||||
|
|
||||||
.folder-heading a.folder-heading-folder,
|
.folder-heading a.folder-heading-folder,
|
||||||
.template-list-folder {
|
.template-list-folder {
|
||||||
background: url(../img/material-icons/folder.svg) no-repeat;
|
background: url(../img/material-icons/folder.svg) no-repeat;
|
||||||
padding-left: units(4);
|
padding-left: units(4);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: units(4);
|
background-position: 0;
|
||||||
&:hover {
|
|
||||||
background: url(../img/material-icons/folder.svg) no-repeat;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.folder-heading-folder {
|
.folder-heading-folder {
|
||||||
background: url(../img/material-icons/folder.svg) no-repeat;
|
background: url(../img/material-icons/folder_open.svg) no-repeat;
|
||||||
padding-left: units(4);
|
padding-left: units(4);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: units(4);
|
background-size: units(3) units(3);
|
||||||
|
background-position: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.message-name-separator:before, .folder-heading-separator:before {
|
.message-name-separator:before, .folder-heading-separator:before {
|
||||||
@@ -155,15 +149,10 @@ td.table-empty-message {
|
|||||||
margin: 0 units(0.5);
|
margin: 0 units(0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.folder-heading a.folder-heading-folder-truncated {
|
|
||||||
background-position: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.usa-template-list-template {
|
.usa-template-list-template {
|
||||||
background: url(../img/material-icons/description.svg) no-repeat;
|
background: url(../img/material-icons/description.svg) no-repeat;
|
||||||
padding-left: units(4);
|
padding-left: units(4);
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
height: units(4);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.template-list-item-hint {
|
.template-list-item-hint {
|
||||||
@@ -187,10 +176,8 @@ td.table-empty-message {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.js-stick-at-bottom-when-scrolling {
|
.js-stick-at-bottom-when-scrolling {
|
||||||
margin: 0 0 units(5);
|
|
||||||
padding: units(2) 0;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: flex-end;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
button {
|
button {
|
||||||
@@ -280,6 +267,9 @@ td.table-empty-message {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dashboard-table {
|
.dashboard-table {
|
||||||
|
table {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
.file-list-filename {
|
.file-list-filename {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
@@ -288,6 +278,13 @@ td.table-empty-message {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#template-list {
|
||||||
|
max-height: 500px;
|
||||||
|
overflow-y: auto;
|
||||||
|
padding-left: units(1);
|
||||||
|
margin: units(2) 0;
|
||||||
|
}
|
||||||
|
|
||||||
// Tabs
|
// Tabs
|
||||||
|
|
||||||
.tabs {
|
.tabs {
|
||||||
|
|||||||
@@ -41,8 +41,8 @@
|
|||||||
{% if is_collapsible %}
|
{% if is_collapsible %}
|
||||||
<div class="selection-summary" role="region" aria-live="polite"></div>
|
<div class="selection-summary" role="region" aria-live="polite"></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<fieldset id="{{ field.id }}" {% if inline %}class="inline"{% endif %}>
|
<fieldset id="{{ field.id }}" class="usa-fieldset" {% if inline %}class="inline"{% endif %}>
|
||||||
<legend class="{{ 'form-label' if not hide_legend else '' }}{% if legend_style != 'text' %} {{ legend_style }}{% 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 hide_legend %}<span class="usa-sr-only">{% endif %}
|
||||||
{{ field.label.text|safe }}
|
{{ field.label.text|safe }}
|
||||||
{% if hide_legend %}</span>{% endif %}
|
{% if hide_legend %}</span>{% endif %}
|
||||||
@@ -64,12 +64,12 @@
|
|||||||
|
|
||||||
{% macro select_input(option, disable=[], option_hints={}, data_target=None, as_list_item=False, input="radio") %}
|
{% macro select_input(option, disable=[], option_hints={}, data_target=None, as_list_item=False, input="radio") %}
|
||||||
{% if as_list_item %}
|
{% if as_list_item %}
|
||||||
<li class="multiple-choice" {% if data_target %}data-target="{{ data_target }}"{% endif %}>
|
<li class="multiple-choice test-one" {% if data_target %}data-target="{{ data_target }}"{% endif %}>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="multiple-choice" {% if data_target %}data-target="{{ data_target }}"{% endif %}>
|
<div class="usa-radio" {% if data_target %}data-target="{{ data_target }}"{% endif %}>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<input
|
<input
|
||||||
id="{{ option.id }}" name="{{ option.name }}" type="{{ input }}" value="{{ option.data }}"
|
id="{{ option.id }}" class="usa-radio__input" name="{{ option.name }}" type="{{ input }}" value="{{ option.data }}"
|
||||||
{% if option.data in disable %}
|
{% if option.data in disable %}
|
||||||
disabled
|
disabled
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -77,7 +77,7 @@
|
|||||||
checked
|
checked
|
||||||
{% endif %}
|
{% endif %}
|
||||||
>
|
>
|
||||||
<label class="block-label" for="{{ option.id }}">
|
<label class="usa-radio__label" for="{{ option.id }}">
|
||||||
{{ option.label.text }}
|
{{ option.label.text }}
|
||||||
{% if option_hints[option.data] %}
|
{% if option_hints[option.data] %}
|
||||||
<div class="block-label-hint">
|
<div class="block-label-hint">
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<fieldset class="usa-fieldset margin-y-5
|
<fieldset class="usa-fieldset
|
||||||
{%- if params.classes %} {{ params.classes }}{% endif %}"
|
{%- if params.classes %} {{ params.classes }}{% endif %}"
|
||||||
{%- if params.describedBy %} aria-describedby="{{ params.describedBy }}"{% endif %}
|
{%- if params.describedBy %} aria-describedby="{{ params.describedBy }}"{% endif %}
|
||||||
{%- for attribute, value in params.attributes %} {{ attribute }}="{{ value }}"{% endfor %}>
|
{%- for attribute, value in params.attributes %} {{ attribute }}="{{ value }}"{% endfor %}>
|
||||||
|
|||||||
@@ -57,13 +57,11 @@
|
|||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<span id="{{ item.id }}-item-hint" class="usa-checkbox__label-description template-list-item-hint">
|
||||||
|
{{ item.hint }}
|
||||||
|
</span>
|
||||||
{% endset %}
|
{% endset %}
|
||||||
|
|
||||||
{% set item_meta %}
|
|
||||||
<span id="{{ item.id }}-item-hint" class="usa-hint template-list-item-hint">
|
|
||||||
{{ item.hint }}
|
|
||||||
</span>
|
|
||||||
{% endset %}
|
|
||||||
|
|
||||||
{# create the item config now to include the label content -#}
|
{# create the item config now to include the label content -#}
|
||||||
{# TODO: "attributes": { "aria-describedby": item.id ~ "-hint" } needs to be added but govuk-frontend-jinja doesn't currently support this -#}
|
{# TODO: "attributes": { "aria-describedby": item.id ~ "-hint" } needs to be added but govuk-frontend-jinja doesn't currently support this -#}
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
<div class="govuk-grid-row">
|
<div class="govuk-grid-row">
|
||||||
<div class="{% if current_user.has_permissions('manage_templates') %} govuk-grid-column-five-sixths {% else %} govuk-grid-column-full {% endif %}">
|
<div class="{% if current_user.has_permissions('manage_templates') %} govuk-grid-column-five-sixths {% else %} govuk-grid-column-full {% endif %}">
|
||||||
<div class="usa-alert usa-alert--info usa-alert--slim margin-y-5">
|
<div class="usa-alert usa-alert--info usa-alert--slim">
|
||||||
<div class="usa-alert__body">
|
<div class="usa-alert__body">
|
||||||
<p class="usa-alert__text">
|
<p class="usa-alert__text">
|
||||||
Every message starts with a template. To send, choose or create a template.
|
Every message starts with a template. To send, choose or create a template.
|
||||||
|
|||||||
Reference in New Issue
Block a user