Skip to content

Commit 2519944

Browse files
committed
Merge branch 'python_ds_click' of https://github.com/docusign/code-examples-python-private into python_ds_click
2 parents e2f4b4c + 3ae1c50 commit 2519944

15 files changed

Lines changed: 39 additions & 67 deletions

app/click/examples/eg001_create_clickwrap/controller.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,9 @@ def worker(args):
4040
display_name="Terms of Service",
4141
downloadable=True,
4242
format="modal",
43-
# has_accept=True,
4443
must_read=True,
4544
must_view=True,
4645
require_accept=True,
47-
# size="medium",
4846
document_display="document"
4947
)
5048

app/click/examples/eg005_create_new_clickwrap_version/controller.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ def worker(args):
4444
must_read=True,
4545
must_view=False,
4646
require_accept=False,
47-
# size="medium",
4847
document_display="document",
4948
send_to_email=False
5049
)
@@ -71,7 +70,6 @@ def worker(args):
7170
name=args.get("clickwrap_name"),
7271
require_reacceptance=True,
7372
status="active"
74-
# user_id=DS_CONFIG["signer_name"]
7573
)
7674

7775
# Step 5. Create a new clickwrap version using SDK
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{% block content %}
2+
3+
{% if show_doc %}
4+
<p><a target='_blank' href='{{ documentation | safe }}'>Documentation</a>
5+
about this example.</p>
6+
{% endif %}
7+
8+
{% endblock %}

app/click/templates/eg001_create_clickwrap.html

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,14 @@ <h4>1. Creating a clickwrap</h4>
33
<p>This example demonstrates how to use DocuSign Click to create a
44
clickwrap that you can embed in your website or app.</p>
55

6-
{% if show_doc %}
7-
<p><a target='_blank' href='{{ documentation | safe }}'>Documentation</a>
8-
about this example.</p>
9-
{% endif %}
6+
{% include 'documentation.html' %}
107

118
<p>API method used:
129
<a target='_blank'
1310
href="https://developers.docusign.com/docs/click-api/reference/accounts/clickwraps/createclickwrap/">ClickWraps::createClickwrap</a>
1411
</p>
1512

16-
<p>
17-
View source file <a target="_blank" href="{{ source_url | safe }}">{{
18-
source_file }}</a> on GitHub.
19-
</p>
13+
{% include 'github_source.html' %}
2014

2115
<form class="eg" action="" method="post" data-busy="form">
2216
<div class="form-group">

app/click/templates/eg002_activate_clickwrap.html

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,14 @@ <h4>2. Activating a clickwrap</h4>
55
clickwraps are inactive. You must activate your clickwrap before
66
you can use it.</p>
77

8-
{% if show_doc %}
9-
<p><a target='_blank' href='{{ documentation | safe }}'>Documentation</a>
10-
about this example.</p>
11-
{% endif %}
8+
{% include 'documentation.html' %}
129

1310
<p>API method used:
1411
<a target='_blank'
1512
href="https://developers.docusign.com/docs/click-api/reference/accounts/clickwraps/updateclickwrapversion">ClickWraps::updateClickwrapVersion</a>
1613
</p>
1714

18-
<p>
19-
View source file <a target="_blank" href="{{ source_url | safe }}">{{
20-
source_file }}</a> on GitHub.
21-
</p>
15+
{% include 'github_source.html' %}
2216

2317
{% if clickwrap_ok %}
2418
<p>The clickwrap you created via example 1 will be queried.</p>

app/click/templates/eg003_test_clickwrap.html

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,9 @@ <h4>3. Testing a clickwrap</h4>
55
behaves the way you want before you embed it in your website or app.
66
</p>
77

8-
{% if show_doc %}
9-
<p><a target='_blank' href='{{ documentation | safe }}'>Documentation</a>
10-
about this example.</p>
11-
{% endif %}
8+
{% include 'documentation.html' %}
129

13-
<p>
14-
View source file <a target="_blank" href="{{ source_url | safe }}">{{
15-
source_file }}</a> on GitHub.
16-
</p>
10+
{% include 'github_source.html' %}
1711

1812
{% if clickwrap_ok %}
1913
<p>The clickwrap you created and activated via examples 1 and 2 will be queried.</p>

app/click/templates/eg004_embed_clickwrap.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ <h4>4. Embedding a clickwrap</h4>
44
existing clickwrap in your website.
55
</p>
66

7-
<p>
8-
View source file <a target="_blank" href="{{ source_url | safe }}">{{
9-
source_file }}</a> on GitHub.
10-
</p>
7+
{% include 'documentation.html' %}
8+
9+
{% include 'github_source.html' %}
1110

1211
{% if clickwrap_ok %}
1312

app/click/templates/eg005_create_new_clickwrap_version.html

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,14 @@ <h4>5. Creating a new clickwrap version</h4>
55
previously accepted the clickwrap to accept the new version when they
66
return to your website.</p>
77

8-
{% if show_doc %}
9-
<p><a target='_blank' href='{{ documentation | safe }}'>Documentation</a>
10-
about this example.</p>
11-
{% endif %}
8+
{% include 'documentation.html' %}
129

1310
<p>API method used:
1411
<a target='_blank'
15-
href="https://developers.docusign.com/docs/click-api/reference/accounts/clickwraps/updateclickwrapversion">ClickWraps::updateClickwrapVersion</a>
12+
href="https://developers.docusign.com/docs/click-api/reference/accounts/clickwraps/createclickwrapversion/">ClickWraps::createClickwrapVersion</a>
1613
</p>
1714

18-
<p>
19-
View source file <a target="_blank" href="{{ source_url | safe }}">{{
20-
source_file }}</a> on GitHub.
21-
</p>
15+
{% include 'github_source.html' %}
2216

2317
{% if clickwrap_ok %}
2418
<p>The clickwrap you created via example 1 will be queried.</p>

app/click/templates/eg006_list_clickwraps.html

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,14 @@ <h4>6. Getting a list of clickwraps</h4>
33
<p>This example demonstrates how to use the Click API to get a list of
44
clickwraps associated with a specific DocuSign user.</p>
55

6-
{% if show_doc %}
7-
<p><a target='_blank' href='{{ documentation | safe }}'>Documentation</a>
8-
about this example.</p>
9-
{% endif %}
6+
{% include 'documentation.html' %}
107

118
<p>API method used:
129
<a target='_blank'
1310
href="https://developers.docusign.com/docs/click-api/reference/accounts/clickwraps/getclickwraps">ClickWraps::getClickwraps</a>
1411
</p>
1512

16-
<p>
17-
View source file <a target="_blank" href="{{ source_url | safe }}">{{ source_file }}</a> on GitHub.
18-
</p>
13+
{% include 'github_source.html' %}
1914

2015
<form class="eg" action="" method="post" data-busy="form">
2116
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>

app/click/templates/eg007_clickwrap_responses.html

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,14 @@ <h4>7. Getting clickwrap responses</h4>
33
<p>This example demonstrates how to use the Click API to get a list of
44
clickwraps associated with a specific DocuSign user.</p>
55

6-
{% if show_doc %}
7-
<p><a target='_blank' href='{{ documentation | safe }}'>Documentation</a>
8-
about this example.</p>
9-
{% endif %}
6+
{% include 'documentation.html' %}
107

118
<p>API method used:
129
<a target='_blank'
1310
href="https://developers.docusign.com/docs/click-api/reference/accounts/clickwraps/getclickwrapagreements">ClickWraps::getClickwrapAgreements</a>
1411
</p>
1512

16-
<p>
17-
View source file <a target="_blank" href="{{ source_url | safe }}">{{
18-
source_file }}</a> on GitHub.
19-
</p>
13+
{% include 'github_source.html' %}
2014

2115
{% if clickwrap_ok %}
2216
<p>The clickwrap you created via example 1 will be queried.<br/>

0 commit comments

Comments
 (0)