diff --git a/cfgov/regulations3k/fixtures/parts.json b/cfgov/regulations3k/fixtures/parts.json index 092080af79f..6c9922f34cb 100644 --- a/cfgov/regulations3k/fixtures/parts.json +++ b/cfgov/regulations3k/fixtures/parts.json @@ -4,7 +4,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1002", - "letter_code": "B", + "short_name": "Regulation B", "title": "Equal Credit Opportunity Act" }, "model": "regulations3k.part", @@ -15,7 +15,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1003", - "letter_code": "C", + "short_name": "Regulation C", "title": "Home Mortgage Disclosure" }, "model": "regulations3k.part", @@ -26,7 +26,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1004", - "letter_code": "D", + "short_name": "Regulation D", "title": "Alternative Mortgage Transaction Parity" }, "model": "regulations3k.part", @@ -37,7 +37,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1005", - "letter_code": "E", + "short_name": "Regulation E", "title": "Electronic Fund Transfers" }, "model": "regulations3k.part", @@ -48,7 +48,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1010", - "letter_code": "J", + "short_name": "Regulation J", "title": "Land Registration" }, "model": "regulations3k.part", @@ -59,7 +59,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1011", - "letter_code": "K", + "short_name": "Regulation K", "title": "Purchasers' Revocation Rights, Sales Practices And Standards" }, "model": "regulations3k.part", @@ -70,7 +70,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1012", - "letter_code": "L", + "short_name": "Regulation L", "title": "Special Rules Of Practice" }, "model": "regulations3k.part", @@ -81,7 +81,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1013", - "letter_code": "M", + "short_name": "Regulation M", "title": "Consumer Leasing" }, "model": "regulations3k.part", @@ -92,7 +92,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1024", - "letter_code": "X", + "short_name": "Regulation X", "title": "Real Estate Settlement Procedures Act" }, "model": "regulations3k.part", @@ -103,7 +103,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1026", - "letter_code": "Z", + "short_name": "Regulation Z", "title": "Truth In Lending" }, "model": "regulations3k.part", @@ -114,7 +114,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1030", - "letter_code": "DD", + "short_name": "Regulation DD", "title": "Truth In Savings" }, "model": "regulations3k.part", diff --git a/cfgov/regulations3k/fixtures/regdata.json b/cfgov/regulations3k/fixtures/regdata.json index bc49fc187bf..6d790af3688 100644 --- a/cfgov/regulations3k/fixtures/regdata.json +++ b/cfgov/regulations3k/fixtures/regdata.json @@ -4,7 +4,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1002", - "letter_code": "B", + "short_name": "Regulation B", "title": "Equal Credit Opportunity Act" }, "model": "regulations3k.part", @@ -15,7 +15,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1003", - "letter_code": "C", + "short_name": "Regulation C", "title": "Home Mortgage Disclosure" }, "model": "regulations3k.part", @@ -26,7 +26,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1004", - "letter_code": "D", + "short_name": "Regulation D", "title": "Alternative Mortgage Transaction Parity" }, "model": "regulations3k.part", @@ -37,7 +37,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1005", - "letter_code": "E", + "short_name": "Regulation E", "title": "Electronic Fund Transfers" }, "model": "regulations3k.part", @@ -48,7 +48,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1010", - "letter_code": "J", + "short_name": "Regulation J", "title": "Land Registration" }, "model": "regulations3k.part", @@ -59,7 +59,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1011", - "letter_code": "K", + "short_name": "Regulation K", "title": "Purchasers' Revocation Rights, Sales Practices And Standards" }, "model": "regulations3k.part", @@ -70,7 +70,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1012", - "letter_code": "L", + "short_name": "Regulation L", "title": "Special Rules Of Practice" }, "model": "regulations3k.part", @@ -81,7 +81,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1013", - "letter_code": "M", + "short_name": "Regulation M", "title": "Consumer Leasing" }, "model": "regulations3k.part", @@ -92,7 +92,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1024", - "letter_code": "X", + "short_name": "Regulation X", "title": "Real Estate Settlement Procedures Act" }, "model": "regulations3k.part", @@ -103,7 +103,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1026", - "letter_code": "Z", + "short_name": "Regulation Z", "title": "Truth In Lending" }, "model": "regulations3k.part", @@ -114,7 +114,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1030", - "letter_code": "DD", + "short_name": "Regulation DD", "title": "Truth In Savings" }, "model": "regulations3k.part", diff --git a/cfgov/regulations3k/fixtures/test_parts.json b/cfgov/regulations3k/fixtures/test_parts.json index 5b4aff395cb..a34d9673bc4 100644 --- a/cfgov/regulations3k/fixtures/test_parts.json +++ b/cfgov/regulations3k/fixtures/test_parts.json @@ -1 +1 @@ -[{"fields": {"cfr_title_number": "12", "chapter": "X", "part_number": "1004", "letter_code": "D", "title": "Alternative Mortgage Transaction Parity"}, "model": "regulations3k.part", "pk": 3}, {"fields": {"cfr_title_number": "12", "chapter": "X", "part_number": "1005", "letter_code": "E", "title": "Electronic Fund Transfers"}, "model": "regulations3k.part", "pk": 4}, {"fields": {"cfr_title_number": "12", "chapter": "X", "part_number": "1010", "letter_code": "J", "title": "Land Registration"}, "model": "regulations3k.part", "pk": 5}, {"fields": {"cfr_title_number": "12", "chapter": "X", "part_number": "1011", "letter_code": "K", "title": "Purchasers' Revocation Rights, Sales Practices And Standards"}, "model": "regulations3k.part", "pk": 6}, {"fields": {"cfr_title_number": "12", "chapter": "X", "part_number": "1012", "letter_code": "L", "title": "Special Rules Of Practice"}, "model": "regulations3k.part", "pk": 7}, {"fields": {"cfr_title_number": "12", "chapter": "X", "part_number": "1013", "letter_code": "M", "title": "Consumer Leasing"}, "model": "regulations3k.part", "pk": 8}, {"fields": {"cfr_title_number": "12", "chapter": "X", "part_number": "1024", "letter_code": "X", "title": "Real Estate Settlement Procedures Act"}, "model": "regulations3k.part", "pk": 9}, {"fields": {"cfr_title_number": "12", "chapter": "X", "part_number": "1030", "letter_code": "DD", "title": "Truth In Savings"}, "model": "regulations3k.part", "pk": 11}, {"fields": {"cfr_title_number": "12", "chapter": "X", "part_number": "1003", "letter_code": "C", "title": "Home Mortgage Disclosure"}, "model": "regulations3k.part", "pk": 1003}, {"fields": {"cfr_title_number": "12", "chapter": "X", "part_number": "1026", "letter_code": "Z", "title": "Truth In Lending"}, "model": "regulations3k.part", "pk": 1026}] +[{"fields": {"cfr_title_number": "12", "chapter": "X", "part_number": "1004", "short_name": "Regulation D", "title": "Alternative Mortgage Transaction Parity"}, "model": "regulations3k.part", "pk": 3}, {"fields": {"cfr_title_number": "12", "chapter": "X", "part_number": "1005", "short_name": "Regulation E", "title": "Electronic Fund Transfers"}, "model": "regulations3k.part", "pk": 4}, {"fields": {"cfr_title_number": "12", "chapter": "X", "part_number": "1010", "short_name": "Regulation J", "title": "Land Registration"}, "model": "regulations3k.part", "pk": 5}, {"fields": {"cfr_title_number": "12", "chapter": "X", "part_number": "1011", "short_name": "Regulation K", "title": "Purchasers' Revocation Rights, Sales Practices And Standards"}, "model": "regulations3k.part", "pk": 6}, {"fields": {"cfr_title_number": "12", "chapter": "X", "part_number": "1012", "short_name": "Regulation L", "title": "Special Rules Of Practice"}, "model": "regulations3k.part", "pk": 7}, {"fields": {"cfr_title_number": "12", "chapter": "X", "part_number": "1013", "short_name": "Regulation M", "title": "Consumer Leasing"}, "model": "regulations3k.part", "pk": 8}, {"fields": {"cfr_title_number": "12", "chapter": "X", "part_number": "1024", "short_name": "Regulation X", "title": "Real Estate Settlement Procedures Act"}, "model": "regulations3k.part", "pk": 9}, {"fields": {"cfr_title_number": "12", "chapter": "X", "part_number": "1030", "short_name": "Regulation DD", "title": "Truth In Savings"}, "model": "regulations3k.part", "pk": 11}, {"fields": {"cfr_title_number": "12", "chapter": "X", "part_number": "1003", "short_name": "Regulation C", "title": "Home Mortgage Disclosure"}, "model": "regulations3k.part", "pk": 1003}, {"fields": {"cfr_title_number": "12", "chapter": "X", "part_number": "1026", "short_name": "Regulation Z", "title": "Truth In Lending"}, "model": "regulations3k.part", "pk": 1026}] diff --git a/cfgov/regulations3k/fixtures/tree_limb.json b/cfgov/regulations3k/fixtures/tree_limb.json index 303de24259e..72d0b212920 100644 --- a/cfgov/regulations3k/fixtures/tree_limb.json +++ b/cfgov/regulations3k/fixtures/tree_limb.json @@ -4,7 +4,7 @@ "cfr_title_number": "12", "chapter": "X", "part_number": "1002", - "letter_code": "B", + "short_name": "Regulation B", "title": "Equal Credit Opportunity Act" }, "model": "regulations3k.part", diff --git a/cfgov/regulations3k/jinja2/regulations3k/browse-regulation.html b/cfgov/regulations3k/jinja2/regulations3k/browse-regulation.html index b29c49c6bc8..649b14d813d 100644 --- a/cfgov/regulations3k/jinja2/regulations3k/browse-regulation.html +++ b/cfgov/regulations3k/jinja2/regulations3k/browse-regulation.html @@ -92,7 +92,7 @@

{{section.title}}

- Regulation {{regulation.letter_code}} + {{ regulation.short_name }}
diff --git a/cfgov/regulations3k/jinja2/regulations3k/search-regulations-results.html b/cfgov/regulations3k/jinja2/regulations3k/search-regulations-results.html index 2ecbb3666d0..39a4fb64e02 100644 --- a/cfgov/regulations3k/jinja2/regulations3k/search-regulations-results.html +++ b/cfgov/regulations3k/jinja2/regulations3k/search-regulations-results.html @@ -28,6 +28,7 @@

No results match your filters.

{% for reg in page.results.all_regs %} {% if reg.selected %} {%- set reg_name = '(Regulation ' ~ reg.letter_code ~ ')' -%} + {%- set reg_name = '(' ~ reg.short_name | regs_hide_on_mobile ~ ')' -%} {{ tag.render({ 'label': reg.id ~ ' ' ~ reg_name | safe, 'value': reg.id, diff --git a/cfgov/regulations3k/jinja2/regulations3k/search-regulations.html b/cfgov/regulations3k/jinja2/regulations3k/search-regulations.html index 9f69b18c7c2..5cb22b11f0a 100644 --- a/cfgov/regulations3k/jinja2/regulations3k/search-regulations.html +++ b/cfgov/regulations3k/jinja2/regulations3k/search-regulations.html @@ -104,6 +104,7 @@

Refine results