Merge pull request #145 from dod-ccpo/ui/request-form
UI/request form labels
This commit is contained in:
commit
0d2a8faad4
@ -62,7 +62,7 @@ class RequestForm(ValidatedForm):
|
|||||||
)
|
)
|
||||||
|
|
||||||
engineering_assessment = RadioField(
|
engineering_assessment = RadioField(
|
||||||
description="Have you completed an engineering assessment of your software systems for cloud readiness?",
|
"Have you completed an engineering assessment of your software systems for cloud readiness?",
|
||||||
choices=[("yes", "Yes"), ("no", "No"), ("in_progress", "In Progress")],
|
choices=[("yes", "Yes"), ("no", "No"), ("in_progress", "In Progress")],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -65,20 +65,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
padding: 0 0 $gap 0;
|
padding: 0 0 $gap/2 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@include h4;
|
@include h4;
|
||||||
@include line-max;
|
@include line-max;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.usa-input__help {
|
|
||||||
display: block;
|
|
||||||
@include h5;
|
|
||||||
font-weight: normal;
|
|
||||||
padding-top: $gap / 2;
|
|
||||||
@include line-max;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 100%;
|
left: 100%;
|
||||||
@ -88,6 +80,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.usa-input__help {
|
||||||
|
display: block;
|
||||||
|
@include h4;
|
||||||
|
font-weight: normal;
|
||||||
|
padding: $gap/2 0;
|
||||||
|
@include line-max;
|
||||||
|
}
|
||||||
|
|
||||||
input,
|
input,
|
||||||
textarea,
|
textarea,
|
||||||
select {
|
select {
|
||||||
@ -100,9 +100,14 @@
|
|||||||
padding: 0 0 $gap 0;
|
padding: 0 0 $gap 0;
|
||||||
@include h4;
|
@include h4;
|
||||||
|
|
||||||
|
label {
|
||||||
|
font-weight: $font-bold;
|
||||||
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
|
@ -20,6 +20,7 @@ h1, h2, h3, h4, h5, h6 {
|
|||||||
|
|
||||||
+ .subtitle * {
|
+ .subtitle * {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
color: $color-gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
{% from "components/icon.html" import Icon %}
|
{% from "components/icon.html" import Icon %}
|
||||||
|
|
||||||
{% macro OptionsInput(field, inline=False) -%}
|
{% macro OptionsInput(field, inline=False) -%}
|
||||||
<div class='usa-input {% if errors %}usa-input--error{% endif %}'>
|
<div class='usa-input {% if field.errors %}usa-input--error{% endif %}'>
|
||||||
|
|
||||||
<fieldset class="usa-input__choices {% if inline %}usa-input__choices--inline{% endif %}">
|
<fieldset class="usa-input__choices {% if inline %}usa-input__choices--inline{% endif %}">
|
||||||
<legend>
|
<legend>
|
||||||
{{ field.label }}
|
{{ field.label | striptags}}
|
||||||
|
|
||||||
{% if field.description %}
|
{% if field.description %}
|
||||||
<span class='usa-input__help'>{{ field.description | safe }}</span>
|
<span class='usa-input__help'>{{ field.description | safe }}</span>
|
||||||
@ -26,4 +26,7 @@
|
|||||||
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
|
{% from "components/icon.html" import Icon %}
|
||||||
|
|
||||||
{% macro TextInput(field, placeholder='') -%}
|
{% macro TextInput(field, placeholder='') -%}
|
||||||
<div class='usa-input {% if errors %}usa-input--error{% endif %}'>
|
<div class='usa-input {% if field.errors %}usa-input--error{% endif %}'>
|
||||||
<label for={{field.name}}>
|
<label for={{field.name}}>
|
||||||
{{ field.label }}
|
{{ field.label }}
|
||||||
|
|
||||||
@ -7,9 +9,7 @@
|
|||||||
<span class='usa-input__help'>{{ field.description | safe }}</span>
|
<span class='usa-input__help'>{{ field.description | safe }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if errors %}
|
{% if field.errors %}{{ Icon('alert') }}{% endif %}
|
||||||
{{ Icon('alert') }}
|
|
||||||
{% endif %}
|
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
{{ field(placeholder=placeholder) | safe }}
|
{{ field(placeholder=placeholder) | safe }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user