@@ -14,47 +14,30 @@ <h4>5. Get clickwrap responses</h4>
1414
1515{% include 'github_source.html' %}
1616
17- {% if clickwrap_ok %}
18-
19- < p >
20- First, test your clickwrap:
21- </ p >
22-
23- < ul >
24- < li > Log in to your developer account and select the < strong > Manage</ strong > page.
25- < li > Select the < strong > Clickwraps</ strong > tab.
26- < li >
27- In the list of active clickwraps, locate the one you want to test, then click
28- the dropdown arrow to the right of < strong > COPY CODE</ strong > and select < strong > Test Clickwrap</ strong > .
29- </ li >
30- < li > In the Test Clickwrap dialog box, click < strong > TEST CLICKWRAP</ strong > .
31- < li > In the Test Your Clickwrap browser page, in the < strong > Unique ID</ strong > field, enter any string, then click < strong > Test Clickwrap</ strong > .
32- < li > Review your displayed clickwrap and click < strong > I AGREE</ strong > (or the equivalent button you configured) to complete the test.
33- </ ul >
34-
35- < p >
36- Then enter the same string you used to test your clickwrap in the field below.
17+ {% if clickwraps_data['clickwraps'] is undefined %}
18+ < p class ="">
19+ Problem: You do not have clickwraps to activate. Go to example#1 and create one: < a
20+ href ="{{ app_url ~ 'index.php?page=' }}ceg001 "> create clickwrap.</ a > < br />
3721</ p >
22+ {% else %}
23+ < p > Please choose a clickwrap</ p >
3824
39- < form class ="eg " action ="" method ="post " data-busy ="form ">
25+ < form class ="eg " action ="" method ="post " data-busy ="form-download ">
4026 < div class ="form-group ">
41- < label for ="client_user_id "> Unique ID</ label >
42- < input type ="text " class ="form-control " id ="client_user_id "
43- name ="client_user_id " required >
27+ < label for ="clickwrap_id "> Clickwrap</ label >
28+ < select class ="custom-select " id ="clickwrap_id "
29+ name ="clickwrap_id ">
30+ {% for clickwrap in clickwraps_data['clickwraps'] %}
31+ < option value ="{{ clickwrap['clickwrap_id'] }} "> {{ clickwrap['clickwrap_name'] }}</ option >
32+ {% endfor %}
33+ </ select >
4434 </ div >
4535 < input type ="hidden " name ="csrf_token " value ="{{ csrf_token() }} "/>
46- < button type ="submit " class ="btn btn-docu "> Continue</ button >
47- </ form >
48-
49- {% else %}
50- < p > Problem: please first create a clickwrap using < a href ="eg001 "> example
51- 1.</ a > < br /> Thank you.</ p >
52-
53- < form class ="eg " action ="eg001 " method ="get ">
54- < button type ="submit " class ="btn btn-docu "> Continue</ button >
36+ < button type ="submit " class ="btn btn-docu "> Submit</ button >
5537</ form >
5638{% endif %}
5739
40+
5841</ div >
5942
6043{% endblock %}
0 commit comments