|
17 | 17 |
|
18 | 18 | <% include ../../partials/gitSource %> |
19 | 19 |
|
20 | | -<% if (clickwrapOk) { %> |
21 | 20 |
|
22 | | - <p> |
23 | | - First, test your clickwrap: |
24 | | - </p> |
25 | | - |
26 | | - <ul> |
27 | | - <li>Log in to your developer account and select the <strong>Manage</strong> page. |
28 | | - <li>Select the <strong>Clickwraps</strong> tab. |
29 | | - <li> |
30 | | - In the list of active clickwraps, locate the one you want to test, then click |
31 | | - the dropdown arrow to the right of <strong>COPY CODE</strong> and select <strong>Test Clickwrap</strong>. |
32 | | - </li> |
33 | | - <li>In the Test Clickwrap dialog box, click <strong>TEST CLICKWRAP</strong>. |
34 | | - <li>In the Test Your Clickwrap browser page, in the <strong>Unique ID</strong> field enter any string, then click <strong>Test Clickwrap</strong>. |
35 | | - <li>Review your displayed clickwrap and click <strong>I AGREE</strong> (or the equivalent button you configured) to complete the test. |
36 | | - </ul> |
37 | | - |
38 | | - <p> |
39 | | - Then enter the same string you used to test your clickwrap in the field below. |
| 21 | +<% if (clickwrapsData.clickwraps.length == 0) { %> |
| 22 | + <p>Problem: You do not have clickwraps to activate. Go to example#1 and create one: |
| 23 | + <a href="eg001">create clickwrap</a><br/>Thank you. |
40 | 24 | </p> |
| 25 | + <form class="eg" action="eg001" method="get"> |
| 26 | + <button type="submit" class="btn btn-docu">Continue</button> |
| 27 | + </form> |
| 28 | +<% } else { %> |
| 29 | + <p>Please choose a clickwrap</p> |
41 | 30 |
|
42 | | - <form class="eg" action="" method="post" data-busy="form"> |
| 31 | + <form class="eg" action="" method="post" data-busy="form-download"> |
43 | 32 | <div class="form-group"> |
44 | | - <label for="clientUserId">Unique ID</label> |
45 | | - <input type="text" class="form-control" id="clientUserId" |
46 | | - name="clientUserId" required> |
| 33 | + <label for="clickwrapId">Clickwrap</label> |
| 34 | + <select class="custom-select" id="clickwrapId" |
| 35 | + name="clickwrapId"> |
| 36 | + <% for(var i=0; i < clickwrapsData.clickwraps.length; i++) { %> |
| 37 | + <option value="<%=clickwrapsData.clickwraps[i].clickwrapId%>"><%= clickwrapsData.clickwraps[i].clickwrapName %></option> |
| 38 | + <% } %> |
| 39 | + </select> |
47 | 40 | </div> |
48 | 41 | <input type="hidden" name="_csrf" value="<%- csrfToken %>"> |
49 | | - <button type="submit" class="btn btn-docu">Continue</button> |
50 | | - </form> |
51 | | -<% } else { %> |
52 | | - <p>Problem: please first create a clickwrap using |
53 | | - <a href="eg001">example 1.</a><br/>Thank you. |
54 | | - </p> |
55 | | - <form class="eg" action="eg001" method="get"> |
56 | | - <button type="submit" class="btn btn-docu">Continue</button> |
| 42 | + <button type="submit" class="btn btn-docu">Submit</button> |
57 | 43 | </form> |
58 | 44 | <% } %> |
59 | 45 |
|
|
0 commit comments