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:
Chris Hill-Scott
2016-03-14 09:13:28 +00:00
parent 9d2fbca557
commit e1e86e4df5
2 changed files with 8 additions and 2 deletions

View File

@@ -9,8 +9,14 @@
padding: 10px 0;
&-label {
padding-top: 19px;
float: left;
&.error {
padding-top: 5px;
}
}
&-fields {

View File

@@ -1,6 +1,6 @@
{% macro yes_no(field, current_value=None) %}
<fieldset class='yes-no {% if field.errors %} error{% endif %}'>
<legend class='yes-no-label'>
<fieldset class='yes-no'>
<legend class='yes-no-label{% if field.errors %} error{% endif %}'>
{{ field.label }}
{% if field.errors %}
<span class="error-message">