Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

#156 Added "Not Provided" for fields with missing information. #158

Merged
merged 4 commits into from
Jul 30, 2019
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions app/views/partners/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<% @not_provided = 'Not Provided' %>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think we need this variable assignment anymore.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're absolutely right, sorry I missed that. I've fixed it.

<div class="app-title">
<div>
<% if @partner.partner_status == "Recertification Required" %>
Expand Down Expand Up @@ -207,48 +208,48 @@

<h6>Ethnic Composition of Those Served</h6>
<dt>African American</dt>
<dd><%= @partner.population_black %></dd>
<dd><%= @partner.population_black || t(:not_provided) %></dd>

<dt>Caucasian</dt>
<dd><%= @partner.population_white %></dd>
<dd><%= @partner.population_white || t(:not_provided) %></dd>

<dt>Hispanic</dt>
<dd><%= @partner.population_hispanic %></dd>
<dd><%= @partner.population_hispanic || t(:not_provided) %></dd>

<dt>Asian</dt>
<dd><%= @partner.population_asian %></dd>
<dd><%= @partner.population_asian || t(:not_provided) %></dd>

<dt>American Indian</dt>
<dd><%= @partner.population_american_indian %></dd>
<dd><%= @partner.population_american_indian || t(:not_provided) %></dd>

<dt>Pacific Islander</dt>
<dd><%= @partner.population_island %></dd>
<dd><%= @partner.population_island || t(:not_provided) %></dd>

<dt>Multi-racial</dt>
<dd><%= @partner.population_multi_racial %></dd>
<dd><%= @partner.population_multi_racial || t(:not_provided) %></dd>

<dt>Other</dt>
<dd><%= @partner.population_other %></dd>
<dd><%= @partner.population_other || t(:not_provided) %></dd>

<dt>Zip Codes Served</dt>
<dd><%= @partner.zips_served %></dd>

<h6>Poverty Information of Those Served</h6>
<dt>At FPL or below</dt>
<dd><%= @partner.at_fpl_or_below %></dd>
<dd><%= @partner.at_fpl_or_below || t(:not_provided) %></dd>

<dt>Above 1-2 times FPL</dt>
<dd><%= @partner.above_1_2_times_fpl %></dd>
<dd><%= @partner.above_1_2_times_fpl || t(:not_provided) %></dd>

<dt>Greater than 2 times FPL</dt>
<dd><%= @partner.greater_2_times_fpl %></dd>
<dd><%= @partner.greater_2_times_fpl || t(:not_provided) %></dd>

<dt>Poverty Unknown</dt>
<dd><%= @partner.poverty_unknown %></dd>
<dd><%= @partner.poverty_unknown || t(:not_provided) %></dd>

<h6>Ages Served</h6>
<dt>Ages</dt>
<dd><%= @partner.ages_served %></dd>
<dd><%= @partner.ages_served || t(:not_provided) %></dd>
</dl>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
# available at http://guides.rubyonrails.org/i18n.html.

en:
not_provided: "Not Provided"
hello: "Hello world"
:true: 'Yes'
:false: 'No'