Finalize styling for Task Order index page.
This commit is contained in:
parent
d994365460
commit
1165b60fce
@ -40,8 +40,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.col--grow {
|
&.col--grow {
|
||||||
flex: 1;
|
flex: 1 auto;
|
||||||
flex-grow: 1;
|
|
||||||
padding-right: $spacing-small;
|
padding-right: $spacing-small;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@ $footer-height: 5rem;
|
|||||||
$usa-banner-height: 2.8rem;
|
$usa-banner-height: 2.8rem;
|
||||||
$sidenav-expanded-width: 25rem;
|
$sidenav-expanded-width: 25rem;
|
||||||
$sidenav-collapsed-width: 10rem;
|
$sidenav-collapsed-width: 10rem;
|
||||||
|
$max-panel-width: 80rem;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* USWDS Variables
|
* USWDS Variables
|
||||||
|
@ -1,14 +1,11 @@
|
|||||||
.accordion {
|
.accordion {
|
||||||
|
@include shadow-panel;
|
||||||
|
|
||||||
&__header {
|
&__header {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
&__content {
|
||||||
margin: 0;
|
padding: 0 ($gap * 3) $gap;
|
||||||
list-style: none;
|
|
||||||
|
|
||||||
li {
|
|
||||||
background-color: $color-white;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -189,4 +189,28 @@
|
|||||||
.task-order__list {
|
.task-order__list {
|
||||||
margin-top: $gap;
|
margin-top: $gap;
|
||||||
margin-bottom: $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_tag="div",
|
||||||
content_classes="") %}
|
content_classes="") %}
|
||||||
<accordion v-cloak inline-template>
|
<accordion v-cloak inline-template>
|
||||||
<{{wrapper_tag}} class="{{ wrapper_classes }}">
|
<{{wrapper_tag}} class="usa-accordion accordion {{ wrapper_classes }}">
|
||||||
<{{heading_tag}} class="{{ heading_classes }}">
|
<{{heading_tag}} class="accordion__header {{ heading_classes }}">
|
||||||
<button
|
<button
|
||||||
v-on:click="toggle($event)"
|
v-on:click="toggle($event)"
|
||||||
class="usa-accordion-button"
|
class="usa-accordion-button"
|
||||||
@ -20,8 +20,8 @@
|
|||||||
</button>
|
</button>
|
||||||
</{{heading_tag}}>
|
</{{heading_tag}}>
|
||||||
<{{content_tag}}
|
<{{content_tag}}
|
||||||
id="{{ id }}"
|
id="{{ id }}"
|
||||||
class="usa-accordion-content {{ content_classes }}"
|
class="usa-accordion-content accordion__content {{ content_classes }}"
|
||||||
v-bind:aria-hidden="isVisible ? 'false' : 'true'">
|
v-bind:aria-hidden="isVisible ? 'false' : 'true'">
|
||||||
{{ caller() }}
|
{{ caller() }}
|
||||||
</{{content_tag}}>
|
</{{content_tag}}>
|
||||||
|
@ -15,13 +15,35 @@
|
|||||||
{% macro TaskOrderList(task_orders, status) %}
|
{% macro TaskOrderList(task_orders, status) %}
|
||||||
{% set status = "All Task Orders" %}
|
{% set status = "All Task Orders" %}
|
||||||
<section class="task-order__list">
|
<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 %}
|
{% for task_order in task_orders %}
|
||||||
<li class="">
|
<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 }}</a></h4>
|
<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>
|
||||||
<b>Total amount: </b>{{ task_order.total_contract_amount | dollars }}
|
<div class="row">
|
||||||
<b>Obligated amount: </b>{{ task_order.total_obligated_funds | dollars }}
|
<div class="col col--grow">
|
||||||
</li>
|
<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 %}
|
{% endfor %}
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
</section>
|
</section>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user