|
2 | 2 |
|
3 | 3 | <%- include("../../partials/exampleInfo") %> |
4 | 4 |
|
| 5 | +<% var form_index = 0 %> |
| 6 | +<% var candidate_email_index = 0 %> |
| 7 | +<% var candidate_name_index = 1 %> |
| 8 | +<% var manager_name_index = 2 %> |
| 9 | +<% var job_title_index = 3 %> |
| 10 | +<% var salary_index = 4 %> |
| 11 | +<% var start_date_index = 5 %> |
| 12 | +<% var rsus_index = 6 %> |
| 13 | + |
5 | 14 | <form class="eg" action="" method="post" data-busy="form"> |
6 | | - <% if(example.Forms && example.Forms[0].FormName) { %> |
7 | | - <%- example.Forms[0].FormName %> |
| 15 | + <% if(example.Forms && example.Forms[form_index].FormName) { %> |
| 16 | + <%- example.Forms[form_index].FormName %> |
8 | 17 | <% } %> |
9 | 18 |
|
10 | 19 | <div class="form-group"> |
11 | | - <label for="candidate_email"><%= example.Forms[0].Inputs[0].InputName %></label> |
| 20 | + <label for="candidate_email"><%= example.Forms[form_index].Inputs[candidate_email_index].InputName %></label> |
12 | 21 | <input type="email" class="form-control" id="candidate_email" name="candidate_email" |
13 | | - aria-describedby="emailHelp" placeholder="<%= example.Forms[0].Inputs[0].InputPlaceholder %>" required> |
| 22 | + aria-describedby="emailHelp" placeholder="<%= example.Forms[form_index].Inputs[candidate_email_index].InputPlaceholder %>" required> |
14 | 23 | <small id="emailHelp" class="form-text text-muted"><%= locals.manifest.SupportingTexts.HelpingTexts.EmailWontBeShared %></small> |
15 | 24 | </div> |
16 | 25 | <div class="form-group"> |
17 | | - <label for="candidate_name"><%= example.Forms[0].Inputs[1].InputName %></label> |
18 | | - <input type="text" class="form-control" id="candidate_name" placeholder="<%= example.Forms[0].Inputs[1].InputPlaceholder %>" name="candidate_name" |
| 26 | + <label for="candidate_name"><%= example.Forms[form_index].Inputs[candidate_name_index].InputName %></label> |
| 27 | + <input type="text" class="form-control" id="candidate_name" placeholder="<%= example.Forms[form_index].Inputs[candidate_name_index].InputPlaceholder %>" name="candidate_name" |
19 | 28 | required> |
20 | 29 | </div> |
21 | 30 | <div class="form-group"> |
22 | | - <label for="manager_name"><%= example.Forms[0].Inputs[2].InputName %></label> |
| 31 | + <label for="manager_name"><%= example.Forms[form_index].Inputs[manager_name_index].InputName %></label> |
23 | 32 | <input type="text" class="form-control" id="manager_name" name="manager_name" |
24 | | - aria-describedby="emailHelp" placeholder="<%= example.Forms[0].Inputs[2].InputPlaceholder %>" required> |
| 33 | + aria-describedby="emailHelp" placeholder="<%= example.Forms[form_index].Inputs[manager_name_index].InputPlaceholder %>" required> |
25 | 34 | </div> |
26 | 35 | <div class="form-group"> |
27 | | - <label for="job_title"><%= example.Forms[0].Inputs[3].InputName %></label> |
| 36 | + <label for="job_title"><%= example.Forms[form_index].Inputs[job_title_index].InputName %></label> |
28 | 37 | <select class="form-control" id="job_title" name="job_title"> |
29 | 38 | <option value="Software Engineer">Software Engineer</option> |
30 | 39 | <option value="Account Executive">Account Executive</option> |
31 | 40 | </select> |
32 | 41 | </div> |
33 | 42 | <div class="form-group"> |
34 | | - <label for="salary"><%= example.Forms[0].Inputs[4].InputName %></label> |
35 | | - <input type="text" class="form-control" id="salary" placeholder="<%= example.Forms[0].Inputs[4].InputPlaceholder %>" name="salary" |
| 43 | + <label for="salary"><%= example.Forms[form_index].Inputs[salary_index].InputName %></label> |
| 44 | + <input type="text" class="form-control" id="salary" placeholder="<%= example.Forms[form_index].Inputs[salary_index].InputPlaceholder %>" name="salary" |
36 | 45 | required> |
| 46 | + </div> |
| 47 | + <div class="form-group"> |
| 48 | + <label for="rsus"><%= example.Forms[form_index].Inputs[rsus_index].InputName %></label> |
| 49 | + <input type="number" class="form-control" id="rsus" placeholder="<%= example.Forms[form_index].Inputs[rsus_index].InputPlaceholder %>" name="rsus" |
| 50 | + min="0" required> |
37 | 51 | </div> |
38 | 52 | <div class="form-group"> |
39 | | - <label for="start_date"><%= example.Forms[0].Inputs[5].InputName %></label> |
40 | | - <input type="date" class="form-control" id="start_date" placeholder="<%= example.Forms[0].Inputs[5].InputPlaceholder %>" name="start_date" |
| 53 | + <label for="start_date"><%= example.Forms[form_index].Inputs[start_date_index].InputName %></label> |
| 54 | + <input type="date" class="form-control" id="start_date" placeholder="<%= example.Forms[form_index].Inputs[start_date_index].InputPlaceholder %>" name="start_date" |
41 | 55 | required> |
42 | 56 | </div> |
43 | 57 |
|
|
0 commit comments