Move to-sidebar into a macro

This commit is contained in:
Montana 2019-06-04 09:56:17 -04:00
parent 7beb51c85f
commit 582ddb865d
2 changed files with 18 additions and 11 deletions

View File

@ -0,0 +1,16 @@
{% macro TOSidebar() -%}
<div class="col to-sidebar">
<div class="h4">Total obligated funds</div>
<div class="h3">$500,000</div>
<div>This is the funding allocated to cloud services. It may be 100% or a portion of the total task order budget.</div>
<hr>
<div class="h4">Total contract amount</div>
<div class="h3">$800,000</div>
<div>This is the value of all funds obligated for this contract, including -- but not limited to -- funds obligated for the cloud.</div>
</div>
{%- endmacro %}

View File

@ -1,6 +1,7 @@
{% extends 'portfolios/base.html' %}
{% from "components/icon.html" import Icon %}
{% from "components/to_sidebar.html" import TOSidebar %}
{% block content %}
@ -82,18 +83,8 @@
<div class="h4">{{ Icon('ok',classes="icon-validation") }}document</div>
</div>
<div class="col to-sidebar">
<div class="h4">Total obligated funds</div>
<div class="h3">$500,000</div>
<div>This is the funding allocated to cloud services. It may be 100% or a portion of the total task order budget.</div>
{{ TOSidebar() }}
<hr>
<div class="h4">Total contract amount</div>
<div class="h3">$800,000</div>
<div>This is the value of all funds obligated for this contract, including -- but not limited to -- funds obligated for the cloud.</div>
</div>
</div>
</div>