-
-
-
- You can adjust some of the offer amounts
- in the tool using some of the strategies
- outlined above. For instance, you can
- try reducing the amount of federal or
- private loans to see how it affects your
- overall debt and you can try reducing
- your out-of-school expenses.
-
-
- Changing amounts in this tool has no
- effect on what financial aid is
- actually being offered. If you want to
- move forward with different amounts,
- you will need to contact your school’s
- financial aid representative to have
- your financial aid package updated.
-
-
- Useful resources for new
- college students
-
-
- ’s annual costs,
+ graduation rates, and post-college
+ earnings.
+
+
+ Questions to ask
+ your college
+
+
+
FAFSA®
+
Apply for federal, state, and school
+ financial aid.
+
+
+
diff --git a/cfgov/tccp/jinja2/tccp/card.html b/cfgov/tccp/jinja2/tccp/card.html
index 94053448f02..40c608048cc 100644
--- a/cfgov/tccp/jinja2/tccp/card.html
+++ b/cfgov/tccp/jinja2/tccp/card.html
@@ -16,11 +16,12 @@
{% block content_main %}
-
{{ card.institution_name }} {{ card.product_name }}
+
{{ card.institution_name }}
+
{{ card.product_name }}
{{ data_published(card.report_date) }}
-
Availability
+
Application requirements
- Location
-
@@ -76,7 +77,7 @@
Availability
-
- Secured card
+ Down payment required?
-
{{ "Yes" if card.secured_card else "No" }}
@@ -690,27 +691,56 @@
Rewards and perks
{% endif %}
-
- {% if flag_enabled("TCCP_DEBUG_DETAILS") %}
-
All fields
-
-
-
-
- Field |
- Value |
-
-
-
- {% for field in card._meta.fields %}
-
- {{ field.name }} |
- {{ card.__getattribute__(field.name) }} |
-
- {% endfor %}
-
-
- {% endif %}
+
Fine print
+
+ - Grace period
+ -
+ {{ card.grace_period ~ ' days until interest begins to accrue on
+ purchases' if grace_period_offered else 'None, interest begins
+ accruing on purchases immediately'
+ }}
+
+ - Minimum finance charge
+ -
+ {{ '$' ~ '%.2f' | format(card.minimum_finance_charge_dollars | float)
+ if card.minimum_finance_charge else 'None'
+ }}
+
+ - Balance computation method
+ -
+ {{ card.balance_computation_method | join(', ') if 'Other' is not in
+ card.balance_computation_method else
+ card.balance_computation_method_details
+ }}
+
+
+
Contact information
+
+ {% if card.website_for_consumer %}
+ - Website
+ -
+ {# Some issuers submitted more than one URL for a card. In all
+ of those instances, the URLs are separated with a space, so
+ we'll only turn the submitted URL into a link if it doesn't
+ have a space in it for now. TODO: maybe split multiple URLs
+ up.
+ #}
+ {% if ' ' is not in card.website_for_consumer %}
+
+ {{- card.website_for_consumer -}}
+
+ {% else %}
+ {{ card.website_for_consumer }}
+ {% endif %}
+
+ {% endif %}
+ {% if card.telephone_number_for_consumers %}
+ - Phone
+ -
+ {{ card.telephone_number_for_consumers }}
+
+ {% endif %}
+
{% endblock content_main %}
diff --git a/cfgov/tccp/jinja2/tccp/cards.html b/cfgov/tccp/jinja2/tccp/cards.html
index e52faf25604..4ed45ec43b4 100644
--- a/cfgov/tccp/jinja2/tccp/cards.html
+++ b/cfgov/tccp/jinja2/tccp/cards.html
@@ -1,10 +1,6 @@
{% extends "v1/layouts/layout-full.html" %}
-{% from 'tccp/includes/data_published.html' import data_published %}
-{% from 'tccp/includes/fields.html' import apr, apr_range %}
{% from 'tccp/includes/filter_form.html' import filter_form with context %}
-{% import 'v1/includes/molecules/breadcrumbs.html' as breadcrumbs with context %}
-{% import 'v1/includes/molecules/notification.html' as notification %}
{% from 'v1/includes/organisms/expandable.html' import expandable with context %}
{% block title -%}
@@ -67,97 +63,13 @@
{{ situation.title }}
{% endcall %}
-{%- set purchase_apr_adjectives = ["less", "average", "more"] %}
-
-
-
- {% if count -%}
- {{- notification.render(
- 'success',
- true,
- count ~ ' result' ~ count | pluralize()
- ) -}}
- {%- else -%}
- {{- notification.render(
- 'warning',
- true,
- 'There are no results for your search.'
- ) -}}
- {%- endif %}
-
-
-
Key
-
- {% for adjective in purchase_apr_adjectives %}
-
-
- {%- for i in range(loop.index) -%}
- {{ svg_icon("dollar-round") }}
- {%- endfor -%}
-
- Pay {{ adjective ~ (" than average" if adjective != "average") }} interest
-
-
- {% endfor %}
-
-
-
- {% if stats_all.first_report_date -%}
- {{ data_published(stats_all.first_report_date) }}
- {%- endif %}
-
-
- {%- macro card_name_cell(card) -%}
-
- {{ card.institution_name }}
- {{ card.product_name }}
-
- {%- endmacro -%}
-
- {%- macro purchase_apr_cell(card) -%}
- {%- set adjective = purchase_apr_adjectives[
- card.purchase_apr_for_tier_rating
- ] -%}
-
- {{- apr(card.purchase_apr_for_tier) -}}
-
-
- {%- for i in range(card.purchase_apr_for_tier_rating + 1) %}
- {{ svg_icon("dollar-round") }}
- {% endfor -%}
-
- Pay {{ adjective }} interest
-
- {%- endmacro -%}
-
- {%- set card_columns = [
- {'heading': 'Credit card'},
- {'heading': 'Purchase APR'},
- {'heading': 'Account fee'},
- {'heading': 'Balance transfer APR'},
- {'heading': 'Offers rewards'},
- ] %}
- {%- set card_rows = [] %}
- {%- for card in results %}
- {% do card_rows.append( [
- card_name_cell(card) | safe,
- purchase_apr_cell(card) | safe,
- (card.periodic_fee_type | join(', ')) if card.periodic_fee_type else 'None',
- apr(card.transfer_apr_for_tier) if card.transfer_apr_for_tier is not none else apr_range(card.transfer_apr_min, card.transfer_apr_max),
- (card.rewards | join(', ')) if card.rewards else 'None'
- ] ) %}
- {% endfor %}
- {%- with value = {
- 'data': {
- 'columns': card_columns,
- 'rows': card_rows
- },
- 'options': ['directory_table']
- } %}
- {% include 'v1/includes/organisms/tables/base.html' %}
- {% endwith %}
+
+ {% include "tccp/includes/card_list.html" %}
+
{% endblock content_main %}
diff --git a/cfgov/tccp/jinja2/tccp/includes/card_list.html b/cfgov/tccp/jinja2/tccp/includes/card_list.html
new file mode 100644
index 00000000000..f4195595ae0
--- /dev/null
+++ b/cfgov/tccp/jinja2/tccp/includes/card_list.html
@@ -0,0 +1,92 @@
+{% from 'tccp/includes/data_published.html' import data_published %}
+{% from 'tccp/includes/fields.html' import apr, apr_range %}
+{% import 'v1/includes/molecules/breadcrumbs.html' as breadcrumbs with context %}
+{% import 'v1/includes/molecules/notification.html' as notification %}
+
+{% if count -%}
+{{- notification.render(
+ 'success',
+ true,
+ count ~ ' result' ~ count | pluralize()
+) -}}
+{%- else -%}
+{{- notification.render(
+ 'warning',
+ true,
+ 'There are no results for your search.'
+) -}}
+{%- endif %}
+
+{%- set purchase_apr_adjectives = ["less", "average", "more"] %}
+
+
+
Key
+
+ {% for adjective in purchase_apr_adjectives %}
+
+
-
+ {%- for i in range(loop.index) -%}
+ {{ svg_icon("dollar-round") }}
+ {%- endfor -%}
+
+ -
+ Pay {{ adjective ~ (" than average" if adjective != "average") }} interest
+
+
+ {% endfor %}
+
+
+
+{% if stats_all.first_report_date -%}
+{{ data_published(stats_all.first_report_date) }}
+{%- endif %}
+
+{%- macro card_name_cell(card) -%}
+
+ {{ card.institution_name }}
+ {{ card.product_name }}
+
+{%- endmacro -%}
+
+{%- macro purchase_apr_cell(card) -%}
+ {%- set adjective = purchase_apr_adjectives[
+ card.purchase_apr_for_tier_rating
+ ] -%}
+
+ {{- apr(card.purchase_apr_for_tier) -}}
+
+
+ {%- for i in range(card.purchase_apr_for_tier_rating + 1) %}
+ {{ svg_icon("dollar-round") }}
+ {% endfor -%}
+
+ Pay {{ adjective }} interest
+
+{%- endmacro -%}
+
+{%- set card_columns = [
+ {'heading': 'Credit card'},
+ {'heading': 'Purchase APR'},
+ {'heading': 'Account fee'},
+ {'heading': 'Balance transfer APR'},
+ {'heading': 'Offers rewards'},
+] %}
+{%- set card_rows = [] %}
+{%- for card in results %}
+ {% do card_rows.append( [
+ card_name_cell(card) | safe,
+ purchase_apr_cell(card) | safe,
+ (card.periodic_fee_type | join(', ')) if card.periodic_fee_type else 'None',
+ apr(card.transfer_apr_for_tier) if card.transfer_apr_for_tier is not none else apr_range(card.transfer_apr_min, card.transfer_apr_max),
+ (card.rewards | join(', ')) if card.rewards else 'None'
+ ] ) %}
+{% endfor %}
+{%- with value = {
+ 'data': {
+ 'columns': card_columns,
+ 'rows': card_rows
+ },
+ 'options': ['directory_table']
+} %}
+ {% include 'v1/includes/organisms/tables/base.html' %}
+{% endwith %}
diff --git a/cfgov/tccp/jinja2/tccp/includes/filter_form.html b/cfgov/tccp/jinja2/tccp/includes/filter_form.html
index 3fa381bd4ec..5a0f1c0c7a4 100644
--- a/cfgov/tccp/jinja2/tccp/includes/filter_form.html
+++ b/cfgov/tccp/jinja2/tccp/includes/filter_form.html
@@ -61,7 +61,14 @@
{%- macro filter_form(form) -%}
-
-