|
1 | 1 | <%= content_for(:page_title, t(".page_title")) %> |
| 2 | +<section class="section contact-us"> |
| 3 | + <div class="contact-header"> |
| 4 | + <h1><%= t(".section_title") %></h1> |
| 5 | + <p class="text-lg"><%= t(".section_subtitle") %></p> |
| 6 | + </div> |
| 7 | + <%= form_with( |
| 8 | + scope: :opportunity, |
| 9 | + url: {action: :create}, |
| 10 | + method: :post |
| 11 | + ) do |f| %> |
| 12 | + <div class="form-header"> |
| 13 | + <h4>Please fill out your contact info</h4> |
| 14 | + <p>We'll be in touch as soon as possible</p> |
| 15 | + </div> |
2 | 16 |
|
3 | | -<%= form_with( |
4 | | - scope: :opportunity, |
5 | | - url: {action: :create}, |
6 | | - method: :post |
7 | | -) do |f| %> |
8 | | - <%= f.label :contact_first_name do %> |
9 | | - <span><%= t(".attributes.contact_first_name") %></span> |
10 | | - <%= f.text_field( |
11 | | - :contact_first_name, |
12 | | - autocomplete: "given-name", |
13 | | - placeholder: t(".attributes.contact_first_name") |
14 | | - ) %> |
15 | | - <% end %> |
| 17 | + <div class="input-group"> |
| 18 | + <%= f.label :contact_first_name do %> |
| 19 | + <span><%= t(".attributes.contact_first_name") %></span> |
| 20 | + <%= f.text_field( |
| 21 | + :contact_first_name, |
| 22 | + autocomplete: "given-name", |
| 23 | + placeholder: t(".attributes.contact_first_name") |
| 24 | + ) %> |
| 25 | + <% end %> |
16 | 26 |
|
17 | | - <%= f.label :contact_last_name do %> |
18 | | - <span><%= t(".attributes.contact_last_name") %></span> |
19 | | - <%= f.text_field( |
20 | | - :contact_last_name, |
21 | | - autocomplete: "family-name", |
22 | | - placeholder: t(".attributes.contact_last_name") |
23 | | - ) %> |
24 | | - <% end %> |
| 27 | + <%= f.label :contact_last_name do %> |
| 28 | + <span><%= t(".attributes.contact_last_name") %></span> |
| 29 | + <%= f.text_field( |
| 30 | + :contact_last_name, |
| 31 | + autocomplete: "family-name", |
| 32 | + placeholder: t(".attributes.contact_last_name") |
| 33 | + ) %> |
| 34 | + <% end %> |
| 35 | + </div> |
25 | 36 |
|
26 | | - <%= f.label :email do %> |
27 | | - <span><%= t(".attributes.email") %></span> |
28 | | - <%= f.email_field( |
29 | | - :email, |
30 | | - autocomplete: "email", |
31 | | - placeholder: t(".attributes.email") |
32 | | - ) %> |
33 | | - <% end %> |
| 37 | + <%= f.label :email do %> |
| 38 | + <span><%= t(".attributes.email") %></span> |
| 39 | + <%= f.email_field( |
| 40 | + :email, |
| 41 | + autocomplete: "email", |
| 42 | + placeholder: t(".attributes.email") |
| 43 | + ) %> |
| 44 | + <% end %> |
34 | 45 |
|
35 | | - <%= f.label :company_name do %> |
36 | | - <span><%= t(".attributes.company_name") %></span> |
37 | | - <%= f.text_field( |
38 | | - :company_name, |
39 | | - autocomplete: "organization", |
40 | | - placeholder: t(".attributes.company_name") |
41 | | - ) %> |
42 | | - <% end %> |
| 46 | + <%= f.label :company_name do %> |
| 47 | + <span><%= t(".attributes.company_name") %></span> |
| 48 | + <%= f.text_field( |
| 49 | + :company_name, |
| 50 | + autocomplete: "organization", |
| 51 | + placeholder: t(".attributes.company_name") |
| 52 | + ) %> |
| 53 | + <% end %> |
43 | 54 |
|
44 | | - <%= f.label :contact_job_title do %> |
45 | | - <span><%= t(".attributes.contact_job_title") %></span> |
46 | | - <%= f.text_field( |
47 | | - :contact_job_title, |
48 | | - autocomplete: "organization-title", |
49 | | - placeholder: t(".attributes.contact_job_title") |
50 | | - ) %> |
51 | | - <% end %> |
| 55 | + <%= f.label :contact_job_title do %> |
| 56 | + <span><%= t(".attributes.contact_job_title") %></span> |
| 57 | + <%= f.text_field( |
| 58 | + :contact_job_title, |
| 59 | + autocomplete: "organization-title", |
| 60 | + placeholder: t(".attributes.contact_job_title") |
| 61 | + ) %> |
| 62 | + <% end %> |
52 | 63 |
|
53 | | - <%= f.submit t(".submit") %> |
54 | | -<% end %> |
| 64 | + <%= f.submit t(".submit"), class: "button button--primary"%> |
| 65 | + <% end %> |
| 66 | +</section> |
0 commit comments