Format LOA fields

This commit is contained in:
leigh-mil 2019-06-12 15:58:35 -04:00
parent 1caf8b8d21
commit daec01eba0
2 changed files with 44 additions and 9 deletions

View File

@ -77,6 +77,25 @@
.usa-alert {
margin: 1.5em 0;
}
.task-order__loa-fieldset {
.usa-input {
margin: 0;
}
input {
margin: $gap 0;
max-width: unset;
}
input:first-child {
margin-top: 0;
}
input:last-child {
margin-bottom: 0;
}
}
}
.row.row__form-fields {

View File

@ -13,8 +13,7 @@
{% macro LOAInput() %}
<div v-for="loa in loas">
<textinput :name="'clins-' + clinIndex + '-loas-' + loaIndex(loa)" inline-template>
<div>
<div class="usa-input usa-input--validation--anything">
<masked-input
v-on:input='onInput'
v-on:blur='onBlur'
@ -70,12 +69,21 @@
</div>
</div>
<div>Line of accounting (43 characters)</div>
{% for loa in fields.loas %}
{{ TextInput(loa, showLabel=False) }}
{% endfor %}
<div class="usa-input">
<fieldset class="usa-input__choices task-order__loa-fieldset">
<legend>
<div class="usa-input__title">
Line of accounting (43 characters)
</div>
</legend>
{% for loa in fields.loas %}
{{ TextInput(loa, showLabel=False) }}
{% endfor %}
{{ LOAInput() }}
</fieldset>
</div>
{{ LOAInput() }}
{{ DatePicker(fields.start_date) }}
{{ DatePicker(fields.end_date) }}
{{ TextInput(fields.obligated_amount, validation='dollars') }}
@ -190,8 +198,16 @@
</div>
</div>
<div>Line of accounting (43 characters)</div>
{{ LOAInput() }}
<div class="usa-input">
<fieldset class="usa-input__choices task-order__loa-fieldset">
<legend>
<div class="usa-input__title">
Line of accounting (43 characters)
</div>
</legend>
{{ LOAInput() }}
</fieldset>
</div>
<date-selector :name-tag="'clins-' + clinIndex + '-start_date'" inline-template>
<fieldset class="usa-input date-picker" v-bind:class="{ 'usa-input--success': isDateValid }">