Finalize styling for Task Order index page.
This commit is contained in:
parent
d994365460
commit
1165b60fce
@ -40,8 +40,7 @@
|
||||
}
|
||||
|
||||
&.col--grow {
|
||||
flex: 1;
|
||||
flex-grow: 1;
|
||||
flex: 1 auto;
|
||||
padding-right: $spacing-small;
|
||||
}
|
||||
|
||||
|
@ -16,6 +16,7 @@ $footer-height: 5rem;
|
||||
$usa-banner-height: 2.8rem;
|
||||
$sidenav-expanded-width: 25rem;
|
||||
$sidenav-collapsed-width: 10rem;
|
||||
$max-panel-width: 80rem;
|
||||
|
||||
/*
|
||||
* USWDS Variables
|
||||
|
@ -1,14 +1,11 @@
|
||||
.accordion {
|
||||
@include shadow-panel;
|
||||
|
||||
&__header {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
|
||||
li {
|
||||
background-color: $color-white;
|
||||
}
|
||||
&__content {
|
||||
padding: 0 ($gap * 3) $gap;
|
||||
}
|
||||
}
|
||||
|
@ -189,4 +189,28 @@
|
||||
.task-order__list {
|
||||
margin-top: $gap;
|
||||
margin-bottom: $gap;
|
||||
max-width: $max-panel-width;
|
||||
|
||||
&--item {
|
||||
border-bottom: 1px solid $color-gray-lightest;
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
padding-bottom: $gap;
|
||||
}
|
||||
|
||||
.col {
|
||||
padding-right: $gap * 2;
|
||||
}
|
||||
|
||||
h4 {
|
||||
margin: $gap * 2 0 $gap;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 1rem;
|
||||
color: $color-gray;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -8,8 +8,8 @@
|
||||
content_tag="div",
|
||||
content_classes="") %}
|
||||
<accordion v-cloak inline-template>
|
||||
<{{wrapper_tag}} class="{{ wrapper_classes }}">
|
||||
<{{heading_tag}} class="{{ heading_classes }}">
|
||||
<{{wrapper_tag}} class="usa-accordion accordion {{ wrapper_classes }}">
|
||||
<{{heading_tag}} class="accordion__header {{ heading_classes }}">
|
||||
<button
|
||||
v-on:click="toggle($event)"
|
||||
class="usa-accordion-button"
|
||||
@ -21,7 +21,7 @@
|
||||
</{{heading_tag}}>
|
||||
<{{content_tag}}
|
||||
id="{{ id }}"
|
||||
class="usa-accordion-content {{ content_classes }}"
|
||||
class="usa-accordion-content accordion__content {{ content_classes }}"
|
||||
v-bind:aria-hidden="isVisible ? 'false' : 'true'">
|
||||
{{ caller() }}
|
||||
</{{content_tag}}>
|
||||
|
@ -15,13 +15,35 @@
|
||||
{% macro TaskOrderList(task_orders, status) %}
|
||||
{% set status = "All Task Orders" %}
|
||||
<section class="task-order__list">
|
||||
{% call Accordion(title=status, id=status, heading_tag="h4", content_tag="ul") %}
|
||||
{% call Accordion(title=status, id=status, heading_tag="h4") %}
|
||||
{% for task_order in task_orders %}
|
||||
<li class="">
|
||||
<h4><a href="{{ url_for('task_orders.review_task_order', task_order_id=task_order.id) }}">Task Order #{{ task_order.number }}</a></h4>
|
||||
<b>Total amount: </b>{{ task_order.total_contract_amount | dollars }}
|
||||
<b>Obligated amount: </b>{{ task_order.total_obligated_funds | dollars }}
|
||||
</li>
|
||||
<div class="task-order__list--item">
|
||||
<h4><a href="{{ url_for('task_orders.review_task_order', task_order_id=task_order.id) }}">Task Order #{{ task_order.number }} {{ Icon("caret_right", classes="icon--tiny icon--blue" ) }}</a></h4>
|
||||
<div class="row">
|
||||
<div class="col col--grow">
|
||||
<h5>
|
||||
Current Period of Performance
|
||||
</h5>
|
||||
<p>
|
||||
{{ task_order.start_date | formattedDate(formatter="%b %d, %Y") }}
|
||||
-
|
||||
{{ task_order.end_date | formattedDate(formatter="%b %d, %Y") }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="col col--grow">
|
||||
<h5>Total Value</h5>
|
||||
<p>{{ task_order.total_contract_amount | dollars }}</p>
|
||||
</div>
|
||||
<div class="col col--grow">
|
||||
<h5>Total Obligated</h5>
|
||||
<p>{{ task_order.total_obligated_funds | dollars }}</p>
|
||||
</div>
|
||||
<div class="col col--grow">
|
||||
<h5>Total Expended</h5>
|
||||
<p>$0</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endcall %}
|
||||
</section>
|
||||
|
Loading…
x
Reference in New Issue
Block a user