mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Fix error message spacing on yes/no pattern
Error messages were added to the yes/no fields on the invite user page in:
4c323a9a99
This commit fixes the margins and padding on these fields so they look
consistent with how we do validation errors elsewhere.
t
This commit is contained in:
@@ -9,8 +9,14 @@
|
|||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
|
|
||||||
&-label {
|
&-label {
|
||||||
|
|
||||||
padding-top: 19px;
|
padding-top: 19px;
|
||||||
float: left;
|
float: left;
|
||||||
|
|
||||||
|
&.error {
|
||||||
|
padding-top: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&-fields {
|
&-fields {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{% macro yes_no(field, current_value=None) %}
|
{% macro yes_no(field, current_value=None) %}
|
||||||
<fieldset class='yes-no {% if field.errors %} error{% endif %}'>
|
<fieldset class='yes-no'>
|
||||||
<legend class='yes-no-label'>
|
<legend class='yes-no-label{% if field.errors %} error{% endif %}'>
|
||||||
{{ field.label }}
|
{{ field.label }}
|
||||||
{% if field.errors %}
|
{% if field.errors %}
|
||||||
<span class="error-message">
|
<span class="error-message">
|
||||||
|
|||||||
Reference in New Issue
Block a user