-
Notifications
You must be signed in to change notification settings - Fork 22
/
registrant_pdf.html.haml
311 lines (301 loc) · 16.1 KB
/
registrant_pdf.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
%div.page#page_1
#logo= image_tag(@logo_image_path)
%h1.title= I18n.t('pdf.nvra.page1.title').to_s.html_safe
%h2.subtitle= I18n.t('pdf.nvra.page1.subtitle' ).to_s.html_safe
%p.top_paragraph= I18n.t('pdf.nvra.page1.top_paragraph' ).to_s.html_safe
%table#instructions_table
%tr
%td.instructions_block{:rowspan=>3}
%h4= I18n.t('pdf.nvra.page1.instructions_block.title' ).to_s.html_safe
%p= I18n.t('pdf.nvra.page1.instructions_block.subtitle' ).to_s.html_safe
%ol
%li= I18n.t('pdf.nvra.page1.instructions_block.step1' ).to_s.html_safe
%li
= I18n.t('pdf.nvra.page1.instructions_block.step2' ).to_s.html_safe
.mailer
.instructions= I18n.t('pdf.nvra.page1.instructions_block.step2mailer' ).to_s.html_safe
.image= wicked_pdf_image_tag("pdf/mailer.png")
%li= I18n.t('pdf.nvra.page1.instructions_block.step3' ).to_s.html_safe
%li= I18n.t('pdf.nvra.page1.instructions_block.step4' ).to_s.html_safe
%li= I18n.t('pdf.nvra.page1.instructions_block.step5' ).to_s.html_safe
%td.submit_block
- if !@registrant.home_state_pdf_instructions.blank? && false
.state_instructions
%p= @registrant.home_state_pdf_instructions.to_s.html_safe
%h4.title= I18n.t('pdf.nvra.page1.submit_block.title' ).to_s.html_safe
%p#registrar_address= @registrant.state_registrar_address.to_s.html_safe
%tr
%td.deadline_block
%h4.title= I18n.t('pdf.nvra.page1.deadline_block.title' ).to_s.html_safe
%p= @registrant.registration_deadline.to_s.html_safe
%tr
%td.other_block
%h4.title= I18n.t('pdf.nvra.page1.other_block', :instructions_url=>@registrant_instructions_link).to_s.html_safe
%h3.bottom_title= I18n.t('pdf.nvra.page1.bottom_block.title' ).to_s.html_safe
%p= I18n.t('pdf.nvra.page1.bottom_block.paragraph1' ).to_s.html_safe
%p= I18n.t('pdf.nvra.page1.bottom_block.paragraph2' ).to_s.html_safe
%p= I18n.t('pdf.nvra.page1.bottom_block.paragraph3' ).to_s.html_safe
%p= I18n.t('pdf.nvra.page1.bottom_block.paragraph4' ).to_s.html_safe
.page#page_2
%h1.title= form_prompt('pdf.nvra.page2.title' ).to_s.html_safe
%h2.subtitle= form_prompt('pdf.nvra.page2.subtitle' ).to_s.html_safe
%table.form
%tr#topblock{:class=>"#{non_english? ? 'smaller_prompts' : ''}"}
%td.items
.item1#us_citizen
= form_prompt('pdf.nvra.page2.topblock.item1' ).to_s.html_safe
%span.value= @registrant.yes_no_us_citizen?
.item2#will_be_18_by_election
= form_prompt('pdf.nvra.page2.topblock.item2' ).to_s.html_safe
%span.value= @registrant.yes_no_will_be_18_by_election?
.item3= form_prompt('pdf.nvra.page2.topblock.item3' ).to_s.html_safe
.item4= form_prompt('pdf.nvra.page2.topblock.item4' ).to_s.html_safe
%td.fouo= form_prompt('pdf.nvra.page2.topblock.fouo' ).to_s.html_safe
%table.form
%tr#block1
%td.block_number 1
%td.box1#name_title
.label= form_prompt('pdf.nvra.page2.block1.box1_label' ).to_s.html_safe
.value.checkboxes
.checkbox-col
.checkbox{:class=>checked?(:mr, :name_title) ? 'checkbox-checked' : ''}
= checkbox(:mr, :name_title)
%span= I18n.t("txt.registration.titles.mr", :locale=>:en)
.checkbox{:class=>checked?(:mrs, :name_title) ? 'checkbox-checked' : ''}
= checkbox(:mrs, :name_title)
%span= I18n.t("txt.registration.titles.mrs", :locale=>:en)
.checkbox-col
.checkbox{:class=>checked?(:miss, :name_title) ? 'checkbox-checked' : ''}
= checkbox(:miss, :name_title)
%span= I18n.t("txt.registration.titles.miss", :locale=>:en)
.checkbox{:class=>checked?(:ms, :name_title) ? 'checkbox-checked' : ''}
= checkbox(:ms, :name_title)
%span= I18n.t("txt.registration.titles.ms", :locale=>:en)
%td.box2#name_last
.label= form_prompt('pdf.nvra.page2.block1.box2_label' ).to_s.html_safe
.value= (@registrant.last_name).to_s.html_safe
%td.box3#name_first
.label= form_prompt('pdf.nvra.page2.block1.box3_label' ).to_s.html_safe
.value= (@registrant.first_name).to_s.html_safe
%td.box4#name_middle
.label= form_prompt('pdf.nvra.page2.block1.box4_label' ).to_s.html_safe
.value= (@registrant.middle_name).to_s.html_safe
%td.box5#name_suffix
.label= form_prompt('pdf.nvra.page2.block1.box5_label' ).to_s.html_safe
.value.checkboxes.suffix-checkboxes
.checkbox-col
.checkbox{:class=>checked?(:jr, :name_suffix) ? 'checkbox-checked' : ''}
= checkbox(:jr, :name_suffix)
%span= I18n.t("txt.registration.suffixes.jr", :locale=>:en)
.checkbox{:class=>checked?(:sr, :name_suffix) ? 'checkbox-checked' : ''}
= checkbox(:sr, :name_suffix)
%span= I18n.t("txt.registration.suffixes.sr", :locale=>:en)
.checkbox-col
.checkbox{:class=>checked?(:ii, :name_suffix) ? 'checkbox-checked' : ''}
= checkbox(:ii, :name_suffix)
%span= I18n.t("txt.registration.suffixes.ii", :locale=>:en)
.checkbox{:class=>checked?(:iii, :name_suffix) ? 'checkbox-checked' : ''}
= checkbox(:iii, :name_suffix)
%span= I18n.t("txt.registration.suffixes.iii", :locale=>:en)
.checkbox{:class=>checked?(:iv, :name_suffix) ? 'checkbox-checked' : ''}
= checkbox(:iv, :name_suffix)
%span= I18n.t("txt.registration.suffixes.iv", :locale=>:en)
%table.form
%tr#block2
%td.block_number 2
%td.box1#home_address_street
.label= form_prompt('pdf.nvra.page2.block2.box1_label' ).to_s.html_safe
.value= (@registrant.home_address).to_s.html_safe
%td.box2#home_address_unit
.label= form_prompt('pdf.nvra.page2.block2.box2_label' ).to_s.html_safe
.value= (@registrant.home_unit).to_s.html_safe
%td.box3#home_address_city
.label= form_prompt('pdf.nvra.page2.block2.box3_label' ).to_s.html_safe
.value= @registrant.home_city.to_s.html_safe
%td.box4#home_address_state
.label= form_prompt('pdf.nvra.page2.block2.box4_label' ).to_s.html_safe
.value= @registrant.home_state_id
%td.box5#home_address_zip_code
.label= form_prompt('pdf.nvra.page2.block2.box5_label' ).to_s.html_safe
.value= @registrant.home_zip_code.to_s.html_safe
%tr#block3
%td.block_number 3
%td.box1#mailing_address_street{:colspan=>2}
.label= form_prompt('pdf.nvra.page2.block3.box1_label' ).to_s.html_safe
.value= ("#{@registrant.mailing_address} #{@registrant.mailing_unit}").to_s.html_safe
%td.box2#mailing_address_city
.label= form_prompt('pdf.nvra.page2.block3.box2_label' ).to_s.html_safe
.value= @registrant.mailing_city.to_s.html_safe
%td.box3#mailing_address_state
.label= form_prompt('pdf.nvra.page2.block3.box3_label' ).to_s.html_safe
.value= @registrant.mailing_state_id.to_s.html_safe
%td.box4#mailing_address_zip_code
.label= form_prompt('pdf.nvra.page2.block3.box4_label' ).to_s.html_safe
.value= @registrant.mailing_zip_code.to_s.html_safe
#table_float_wrapper
%table.form#table_block4_7
%tr#block4
%td.block4.block_number 4
%td.block4.box1#date_of_birth
%table.inner_form
%tr
%td.label= form_prompt('pdf.nvra.page2.block4.box1_label' ).to_s.html_safe
%td.item2
.value= @registrant.pdf_date_of_birth_month + ' /'
.label=form_prompt('pdf.nvra.page2.block4.item2' ).to_s.html_safe
%td.item3
.value= @registrant.pdf_date_of_birth_day + ' /'
.label=form_prompt('pdf.nvra.page2.block4.item3' ).to_s.html_safe
%td.item4
.value= @registrant.pdf_date_of_birth_year
.label=form_prompt('pdf.nvra.page2.block4.item4' ).to_s.html_safe
%td.block5.block_number 5
%td.block5.box1#phone_number
.label= form_prompt('pdf.nvra.page2.block5' ).to_s.html_safe
.value= @registrant.phone
%tr#block7
%td.block7.block_number 7
%td.block7.box1#party
.label= form_prompt('pdf.nvra.page2.block7.box1_label' ).to_s.html_safe
.sublabel= form_prompt('pdf.nvra.page2.block7.box1_sublabel' ).to_s.html_safe
.value
= @registrant.english_party_name
- if non_english? && !@registrant.party.blank?
.translated_value= "/ #{@registrant.party}"
%td.block8.block_number 8
%td.block8.box1#race
.label= form_prompt('pdf.nvra.page2.block8.box1_label' ).to_s.html_safe
.sublabel= form_prompt('pdf.nvra.page2.block8.box1_sublabel' ).to_s.html_safe
.value
= @registrant.pdf_english_race
%table.form#table_block6
%tr#block4
%td.block6.block_number 6
%td.block6.box1#id_number
.label= form_prompt('pdf.nvra.page2.block6.box1_label' ).to_s.html_safe
.sublabel= form_prompt('pdf.nvra.page2.block6.box1_sublabel' ).to_s.html_safe
.value= @registrant.state_id_number
%table.form
%tr#block9
%td.block_number 9
%td.box1
.affirmation_header= form_prompt('pdf.nvra.page2.block9.affirmation_header' ).to_s.html_safe
%ul.affirmations
%li.affirmation_1= form_prompt('pdf.nvra.page2.block9.affirmation_1' ).to_s.html_safe
%li.affirmation_2= form_prompt('pdf.nvra.page2.block9.affirmation_2' ).to_s.html_safe
%li.affirmation_3= form_prompt('pdf.nvra.page2.block9.affirmation_3' ).to_s.html_safe
%td.box2
.signature_box= wicked_pdf_image_tag("pdf/signature_box.png")
.please_sign= form_prompt('pdf.nvra.page2.block9.please_sign' ).to_s.html_safe
.signature_date
.date= form_prompt('pdf.nvra.page2.block9.date' ).to_s.html_safe
.date_box= wicked_pdf_image_tag("pdf/date_box.png")
.month= form_prompt('pdf.nvra.page2.block9.month' ).to_s.html_safe
.day= form_prompt('pdf.nvra.page2.block9.day' ).to_s.html_safe
.year= form_prompt('pdf.nvra.page2.block9.year' ).to_s.html_safe
%h4.top_half_footer
= form_prompt('pdf.nvra.page2.top_half_footer' ).to_s.html_safe
.bottom_half
.pdf_barcode= @registrant.pdf_barcode
%h3.bottom_half_title
= form_prompt('pdf.nvra.page2.bottom_half_title' ).to_s.html_safe
%p.block_title.blockA= form_prompt('pdf.nvra.page2.blockA.title' ).to_s.html_safe
%table.form
%tr#blockA
%td.block_number A
%td.box1#prev_name_title
.label= form_prompt('pdf.nvra.page2.blockA.box1_label' ).to_s.html_safe
.value.checkboxes
.checkbox-col
.checkbox{:class=>checked?(:mr, :prev_name_title) ? 'checkbox-checked' : ''}
= checkbox(:mr, :prev_name_title)
%span= I18n.t("txt.registration.titles.mr", :locale=>:en)
.checkbox{:class=>checked?(:mrs, :prev_name_title) ? 'checkbox-checked' : ''}
= checkbox(:mrs, :prev_name_title)
%span= I18n.t("txt.registration.titles.mrs", :locale=>:en)
.checkbox-col
.checkbox{:class=>checked?(:miss, :prev_name_title) ? 'checkbox-checked' : ''}
= checkbox(:miss, :prev_name_title)
%span= I18n.t("txt.registration.titles.miss", :locale=>:en)
.checkbox{:class=>checked?(:ms, :prev_name_title) ? 'checkbox-checked' : ''}
= checkbox(:ms, :prev_name_title)
%span= I18n.t("txt.registration.titles.ms", :locale=>:en)
%td.box2#prev_name_last
.label= form_prompt('pdf.nvra.page2.blockA.box2_label' ).to_s.html_safe
.value= @registrant.prev_last_name.to_s.html_safe
%td.box3#prev_name_first
.label= form_prompt('pdf.nvra.page2.blockA.box3_label' ).to_s.html_safe
.value= @registrant.prev_first_name.to_s.html_safe
%td.box4#prev_name_middle
.label= form_prompt('pdf.nvra.page2.blockA.box4_label' ).to_s.html_safe
.value= @registrant.prev_middle_name.to_s.html_safe
%td.box5#prev_name_suffix
.label= form_prompt('pdf.nvra.page2.blockA.box5_label' ).to_s.html_safe
.value.checkboxes.suffix-checkboxes
.checkbox-col
.checkbox{:class=>checked?(:jr, :prev_name_suffix) ? 'checkbox-checked' : ''}
= checkbox(:jr, :prev_name_suffix)
%span= I18n.t("txt.registration.suffixes.jr", :locale=>:en)
.checkbox{:class=>checked?(:sr, :prev_name_suffix) ? 'checkbox-checked' : ''}
= checkbox(:sr, :prev_name_suffix)
%span= I18n.t("txt.registration.suffixes.sr", :locale=>:en)
.checkbox-col
.checkbox{:class=>checked?(:ii, :prev_name_suffix) ? 'checkbox-checked' : ''}
= checkbox(:ii, :prev_name_suffix)
%span= I18n.t("txt.registration.suffixes.ii", :locale=>:en)
.checkbox{:class=>checked?(:iii, :prev_name_suffix) ? 'checkbox-checked' : ''}
= checkbox(:iii, :prev_name_suffix)
%span= I18n.t("txt.registration.suffixes.iii", :locale=>:en)
.checkbox{:class=>checked?(:iv, :prev_name_suffix) ? 'checkbox-checked' : ''}
= checkbox(:iv, :prev_name_suffix)
%span= I18n.t("txt.registration.suffixes.iv", :locale=>:en)
%p.block_title.blockB= form_prompt('pdf.nvra.page2.blockB.title' ).to_s.html_safe
%table.form
%tr#blockB
%td.block_number B
%td.box1#prev_address_street
.label= form_prompt('pdf.nvra.page2.blockB.box1_label' ).to_s.html_safe
.value= (@registrant.prev_address).to_s.html_safe
%td.box2#prev_address_unit
.label= form_prompt('pdf.nvra.page2.blockB.box2_label' ).to_s.html_safe
.value= @registrant.prev_unit.to_s.html_safe
%td.box3#prev_address_city
.label= form_prompt('pdf.nvra.page2.blockB.box3_label' ).to_s.html_safe
.value= @registrant.prev_city.to_s.html_safe
%td.box4#prev_address_state
.label= form_prompt('pdf.nvra.page2.blockB.box4_label' ).to_s.html_safe
.value= @registrant.prev_state_id
%td.box5#prev_address_zip_code
.label= form_prompt('pdf.nvra.page2.blockB.box5_label' ).to_s.html_safe
.value= @registrant.prev_zip_code.to_s.html_safe
%p.block_title.blockC= form_prompt('pdf.nvra.page2.blockC.title' ).to_s.html_safe
%table.form
%tr#blockC
%td.block_number C
%td.box1
.address_map_wrapper
.address_map= wicked_pdf_image_tag("pdf/address_map.png")
%ul.instructions
%li= form_prompt('pdf.nvra.page2.blockC.instructions.bullet1' ).to_s.html_safe
%li= form_prompt('pdf.nvra.page2.blockC.instructions.bullet2' ).to_s.html_safe
%li= form_prompt('pdf.nvra.page2.blockC.instructions.bullet3' ).to_s.html_safe
.example.label= I18n.t('pdf.nvra.page2.blockC.example.title' ).to_s.html_safe
.example.store= form_prompt('pdf.nvra.page2.blockC.example.grocery_store' ).to_s.html_safe
.example.school= form_prompt('pdf.nvra.page2.blockC.example.public_school' ).to_s.html_safe
.example.street1= I18n.t('pdf.nvra.page2.blockC.example.street1', :locale=>:en).to_s.html_safe
.example.street2= I18n.t('pdf.nvra.page2.blockC.example.street2', :locale=>:en).to_s.html_safe
.north= form_prompt('pdf.nvra.page2.blockC.north' ).to_s.html_safe
%p.block_title.blockD= form_prompt('pdf.nvra.page2.blockD.title' ).to_s.html_safe
%table.form
%tr#blockD
%td.block_number D
%td.box1
.value
%h4.bottom_half_footer
= form_prompt('pdf.nvra.page2.bottom_half_footer' ).to_s.html_safe
.page#page_3
#page_3_wrapper
#page_3_background= wicked_pdf_image_tag("pdf/page_3.png")
%h1= form_prompt('pdf.nvra.page3.fouo' ).to_s.html_safe
#address
.line.line1= @registrant.state_registrar_address.to_s.html_safe