Skip to content

Commit

Permalink
Merge branch 'main' into wagtailcharts-test
Browse files Browse the repository at this point in the history
  • Loading branch information
willbarton authored Aug 22, 2024
2 parents 3e95b8c + a418aa1 commit 8c23e5f
Show file tree
Hide file tree
Showing 507 changed files with 9,965 additions and 10,384 deletions.
4 changes: 2 additions & 2 deletions cfgov/ask_cfpb/migrations/0008_add_footnotes.py

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion cfgov/form_explainer/migrations/0010_add_footnotes.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions cfgov/hmda/jinja2/hmda/hmda-explorer-controls.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
content-l__col-1">
<div class="o-form__group">
<fieldset class="o-form__fieldset">
<legend class="a-legend">
<legend class="h4">
Records included
</legend>
{% for radio in form.records %}
Expand All @@ -49,7 +49,7 @@
</div>
<div class="o-form__group">
<fieldset class="o-form__fieldset">
<legend class="a-legend">
<legend class="h4">
Variable descriptions
</legend>
{% for radio in form.field_descriptions %}
Expand Down
6 changes: 6 additions & 0 deletions cfgov/jobmanager/models/django.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ class Meta:
InlinePanel("major_cities", label="Major cities"),
]

def states_in_region(self):
return ", ".join(str(state) for state in self.states.all())

def major_city_names(self):
return "; ".join(str(city) for city in self.major_cities.all())


class State(models.Model):
name = models.CharField(max_length=255)
Expand Down
13 changes: 6 additions & 7 deletions cfgov/jobmanager/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,12 @@ class RegionViewSet(SnippetViewSet):
icon = "site"
menu_label = "Regions"

def states_in_region(self):
return ", ".join(str(state) for state in self.states.all())

def major_cities(self):
return "; ".join(str(city) for city in self.major_cities.all())

list_display = ["abbreviation", "name", states_in_region, major_cities]
list_display = [
"abbreviation",
"name",
"states_in_region",
"major_city_names",
]


class ServiceTypeViewSet(SnippetViewSet):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="college-costs__intro-segment u-js-only">
<div class="college-costs__intro-segment u-layout-grid u-js-only">
{% if return_user %}
<div class="wrapper">
<div class="content__main">
<div class="u-layout-grid__wrapper">
<div class="u-layout-grid__main">
<div class="m-notification
m-notification--visible">
{{ svg_icon('updating') }}
Expand All @@ -17,8 +17,8 @@
{% include_block block %}
{% endif %}
{%- endfor %}
<div class="wrapper">
<div class="content__main">
<div class="u-layout-grid__wrapper">
<div class="u-layout-grid__main">
{% for block in page.header -%}
{% if block.block_type != 'hero' %}
{{ render_block.render(block, loop.index) }}
Expand Down
Loading

0 comments on commit 8c23e5f

Please sign in to comment.