Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c085a32

Browse files
committedMar 15, 2016
Add fees for consular services in marriage abroad
Replace duplicated content for “Affirmation for freedom to marry in English”, and “Affirmation for freedom to marry in any other language” by moving content to the `consular_fees_table_items` and rendering this partial in place.
1 parent e675778 commit c085a32

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed
 

‎lib/smart_answer_flows/marriage-abroad/outcomes/_consular_fees_table_items.govspeak.erb

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
Affidavit for marriage | £55
1414
<% when :affirmation_for_marriage %>
1515
Affirmation for marriage | £55
16+
<% when :affirmation_for_freedom_to_marry_in_english %>
17+
Affirmation for freedom to marry in English | £55
18+
<% when :affirmation_for_freedom_to_marry_in_other_language %>
19+
Affirmation for freedom to marry in any other language | £70
1620
<% when :affidavit_or_affirmation_for_marriage %>
1721
Affidavit or affirmation for marriage | £55
1822
<% end %>

‎lib/smart_answer_flows/marriage-abroad/outcomes/os_affirmation/_fees.govspeak.erb

+14-12
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@
3030
} %>
3131

3232
<% elsif %w(philippines united-arab-emirates).include?(calculator.ceremony_country) %>
33-
##Fees
34-
35-
Service | Fee
36-
-|-
37-
Affirmation for freedom to marry in English | £55
38-
Affirmation for freedom to marry in any other language | £70
33+
<%= render partial: 'consular_fees_table.govspeak.erb',
34+
locals: {
35+
services: [
36+
:affirmation_for_freedom_to_marry_in_english,
37+
:affirmation_for_freedom_to_marry_in_other_language,
38+
]
39+
} %>
3940

4041

4142
<% elsif calculator.ceremony_country == 'qatar' %>
@@ -72,12 +73,13 @@
7273
Affirmation or affidavit for freedom to marry | £55
7374

7475
<% else %>
75-
##Fees
76-
77-
Service | Fee
78-
-|-
79-
Affirmation for freedom to marry in English | £55
80-
Affirmation for freedom to marry in any other language | £70
76+
<%= render partial: 'consular_fees_table.govspeak.erb',
77+
locals: {
78+
services: [
79+
:affirmation_for_freedom_to_marry_in_english,
80+
:affirmation_for_freedom_to_marry_in_other_language,
81+
]
82+
} %>
8183

8284

8385
<% end %>

0 commit comments

Comments
 (0)
Please sign in to comment.