|
1 |
| -<div class="state-rep-lookup"> |
| 1 | +<div class="address-lookup"> |
2 | 2 | <p>Enter your address below and we'll help you email your representatives (US addresses only).</p>
|
3 |
| - <div class="address-lookup"> |
4 |
| - <%= form_tag(tools_state_reps_path, method: :post, remote: true, class: "form state-rep-lookup") do %> |
5 |
| - <%= hidden_field_tag :email_campaign_id, @actionPage.email_campaign.id %> |
| 3 | + <%= form_tag(tools_state_reps_path, method: :post, remote: true, class: "form state-rep-lookup") do %> |
| 4 | + <%= hidden_field_tag :email_campaign_id, @actionPage.email_campaign.id %> |
6 | 5 |
|
7 |
| - <fieldset id="lookup-address"> |
8 |
| - <h3> |
9 |
| - <span class="customize-message-popover" data-toggle="tooltip" data-trigger="hover">? |
10 |
| - <span class="tooltiptext">We'll use your address to find your state representatives.</span> |
11 |
| - </span> |
12 |
| - Look up your state representatives |
13 |
| - </h3> |
14 |
| - <div id="errors"></div> |
| 6 | + <fieldset id="lookup-address"> |
| 7 | + <h3> |
| 8 | + <span class="customize-message-popover" data-toggle="tooltip" data-trigger="hover">? |
| 9 | + <span class="tooltiptext">We'll use your address to find your state representatives.</span> |
| 10 | + </span> |
| 11 | + Look up your state representatives |
| 12 | + </h3> |
| 13 | + <div id="errors"></div> |
15 | 14 |
|
16 |
| - <div class="form-group"> |
17 |
| - <%= text_field_tag :street_address, (current_user && current_user.street_address), |
18 |
| - placeholder: "Street Address", "aria-label": "Street Address", |
19 |
| - required: true, class: "form-control" %> |
20 |
| - </div> |
| 15 | + <div class="form-group"> |
| 16 | + <%= text_field_tag :street_address, (current_user && current_user.street_address), |
| 17 | + placeholder: "Street Address", "aria-label": "Street Address", |
| 18 | + required: true, class: "form-control" %> |
| 19 | + </div> |
21 | 20 |
|
22 |
| - <div class="form-group"> |
23 |
| - <%= text_field_tag :zipcode, (current_user && current_user.zipcode), |
24 |
| - placeholder: "Zip Code", "aria-label": "Zip Code", required: true, |
25 |
| - class: "form-control", title: "Must be 5 numeric numbers", |
26 |
| - pattern: "\\d{5}", maxlength: 5 %> |
27 |
| - </div> |
| 21 | + <div class="form-group"> |
| 22 | + <%= text_field_tag :zipcode, (current_user && current_user.zipcode), |
| 23 | + placeholder: "Zip Code", "aria-label": "Zip Code", required: true, |
| 24 | + class: "form-control", title: "Must be 5 numeric numbers", |
| 25 | + pattern: "\\d{5}", maxlength: 5 %> |
| 26 | + </div> |
28 | 27 |
|
29 |
| - <div class="form-errors info-circle error hidden"></div> |
| 28 | + <div class="form-errors info-circle error hidden"></div> |
30 | 29 |
|
31 |
| - <p class="privacy-notice">Uses <a href="https://developers.google.com/terms/api-services-user-data-policy" target="_blank">Google</a>'s APIs ( |
| 30 | + <p class="privacy-notice">Uses <a href="https://developers.google.com/terms/api-services-user-data-policy" target="_blank">Google</a>'s APIs ( |
32 | 31 | <span class="privacy-notice-popover" data-toggle="tooltip" data-trigger="hover">why?
|
33 | 32 | <!-- Attribution Guidelines: https://developers.google.com/civic-information/docs/data_guidelines?hl=en#data-availability -->
|
34 | 33 | <span class="tooltiptext">Representative information powered by the Civic Information API.</span>
|
35 | 34 | </span>).
|
36 |
| - </p> |
37 |
| - </fieldset> |
38 |
| - <input type="submit" class="eff-button" value="Find your reps"> |
39 |
| - <%= render "tools/loading" -%> |
40 |
| - </div> |
41 |
| -<% end %> |
| 35 | + </p> |
| 36 | + </fieldset> |
| 37 | + <input type="submit" class="eff-button" value="Find your reps"> |
| 38 | + <%= render "tools/loading" -%> |
| 39 | + <% end %> |
42 | 40 | </div>
|
43 |
| -<div class="state-reps"></div> |
0 commit comments