Skip to content

Commit 44e86dc

Browse files
Merge pull request #47 from docusign/DEVDOCS-6446
Edited text in Click Examples 1-6 and Home
2 parents c233c4e + 6b636ac commit 44e86dc

12 files changed

Lines changed: 50 additions & 54 deletions

File tree

app/api_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
EXAMPLES_API_TYPE ={'Rooms': False, 'ESignature': True, 'Click': False, 'Monitor': False, 'Admin': False}
1+
EXAMPLES_API_TYPE ={'Rooms': False, 'ESignature': False, 'Click': True, 'Monitor': False, 'Admin': False}

app/click/examples/eg001_create_clickwrap/views.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def create_clickwrap():
3232
clickwrap_id = results.clickwrap_id
3333
clickwrap_name = args['clickwrap_name']
3434
current_app.logger.info(
35-
f"""The clickwrap "{clickwrap_name}" has been created!"""
35+
f"""The clickwrap "{clickwrap_name}" has been created."""
3636
)
3737
except ApiException as err:
3838
return process_error(err)
@@ -45,8 +45,8 @@ def create_clickwrap():
4545
# 3. Render the response
4646
return render_template(
4747
"example_done.html",
48-
title="Creating a new clickwrap",
49-
h1="Creating a new clickwrap",
48+
title="Create a clickwrap",
49+
h1="Create a clickwrap",
5050
message=f"""The clickwrap "{args['clickwrap_name']}" has been created!""",
5151
json=json.dumps(json.dumps(results.to_dict(), default=str))
5252
)

app/click/examples/eg002_activate_clickwrap/views.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def activate_clickwrap():
3030
# 2. Call the worker method to create a new clickwrap
3131
results = Eg002Controller.worker(args)
3232
current_app.logger.info(
33-
f"""The clickwrap "{args['clickwrap_name']}" has been activated!"""
33+
f"""The clickwrap "{args['clickwrap_name']}" has been activated."""
3434
)
3535
except ApiException as err:
3636
return process_error(err)
@@ -41,8 +41,8 @@ def activate_clickwrap():
4141
# 3. Render the response
4242
return render_template(
4343
"example_done.html",
44-
title="Activating a clickwrap",
45-
h1="Activating a clickwrap",
44+
title="Activate a clickwrap",
45+
h1="Activate a clickwrap",
4646
message=f"""The clickwrap "{args['clickwrap_name']}" has been activated!""",
4747
json=json.dumps(json.dumps(results.to_dict(), default=str))
4848
)

app/click/examples/eg003_create_new_clickwrap_version/views.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,20 @@ def create_new_clickwrap_version():
2929
try:
3030
# 2. Call the worker method to create a new clickwrap version
3131
results = Eg003Controller.worker(args)
32+
results_dict = results.to_dict()
3233
current_app.logger.info(
33-
f"""The 2nd version of clickwrap "{args['clickwrap_name']}" has been created!"""
34+
f"""Version {results_dict['version_number']} of clickwrap "{results_dict['clickwrap_name']}" has been created."""
3435
)
3536
except ApiException as err:
3637
return process_error(err)
3738

3839
# 3. Render the response
3940
return render_template(
4041
"example_done.html",
41-
title="Creating a new clickwrap version",
42-
h1="Creating a new clickwrap version",
43-
message=f"""The 2nd version of clickwrap "{args['clickwrap_name']}" has been created!""",
44-
json=json.dumps(json.dumps(results.to_dict(), default=str))
42+
title="Create a new clickwrap version",
43+
h1="Create a new clickwrap version",
44+
message=f"""Version {results_dict['version_number']} of clickwrap "{results_dict['clickwrap_name']}" has been created.""",
45+
json=json.dumps(json.dumps(results_dict, default=str))
4546
)
4647

4748

app/click/examples/eg004_list_clickwraps/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def clickwrap_list():
3535
# 3. Render the response
3636
return render_template(
3737
"example_done.html",
38-
title="List clickwraps results",
39-
h1="List clickwraps results",
38+
title="Get a list of clickwraps",
39+
h1="Get a list of clickwraps",
4040
message="Results from the ClickWraps::getClickwraps method:",
4141
json=json.dumps(json.dumps(results.to_dict(), default=str))
4242
)

app/click/examples/eg005_clickwrap_responses/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def clickwrap_responses():
3535
# 3. Render the response
3636
return render_template(
3737
"example_done.html",
38-
title="Getting clickwrap responses",
39-
h1="Getting clickwrap responses",
38+
title="Get clickwrap responses",
39+
h1="Get clickwrap responses",
4040
message="Results from the ClickWraps::getClickwrapAgreements method:",
4141
json=json.dumps(json.dumps(results.to_dict(), default=str))
4242
)

app/click/templates/eg001_create_clickwrap.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
<div class="container" style="margin-top: 40px; margin-left: 300px">
44

5-
<h4>1. Creating a clickwrap</h4>
6-
<p>This example demonstrates how to use DocuSign Click to create a
7-
clickwrap that you can embed in your website or app.</p>
5+
<h4>1. Create a clickwrap</h4>
6+
<p>Creates a clickwrap that you can embed in your website or app.</p>
87

98
{% include 'documentation.html' %}
109

app/click/templates/eg002_activate_clickwrap.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
<div class="container" style="margin-top: 40px; margin-left: 300px">
44

5-
<h4>2. Activating a clickwrap</h4>
6-
<p>This example demonstrates how to use DocuSign Click to activate a new
7-
clickwrap that you have already created.<br/> By default, new
8-
clickwraps are inactive. You must activate your clickwrap before
9-
you can use it.</p>
5+
<h4>2. Activate a clickwrap</h4>
6+
<p>Activates a new clickwrap that you have already created. By default, new clickwraps are <br>
7+
inactive. You must activate your clickwrap before you can use it.</p>
108

119
{% include 'documentation.html' %}
1210

app/click/templates/eg003_create_new_clickwrap_version.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22

33
<div class="container" style="margin-top: 40px; margin-left: 300px">
44

5-
<h4>3. Creating a new clickwrap version</h4>
6-
<p>This example demonstrates how to use the Click API to create a new version
7-
of a clickwrap.<br/>You can specify whether you require users who have
8-
previously accepted the clickwrap to accept the new version when they
9-
return to your website.</p>
5+
<h4>3. Create a new clickwrap version</h4>
6+
<p>
7+
Creates a new version of a clickwrap.
8+
</p>
9+
<p>
10+
You can specify whether you require users who have previously accepted the clickwrap <br>
11+
to accept the new version when they return to your website.
12+
</p>
1013

1114
{% include 'documentation.html' %}
1215

app/click/templates/eg004_list_clickwraps.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
<div class="container" style="margin-top: 40px; margin-left: 300px">
44

5-
<h4>4. Getting a list of clickwraps</h4>
6-
<p>This example demonstrates how to use the Click API to get a list of
7-
clickwraps associated with a specific DocuSign user.</p>
5+
<h4>4. Get a list of clickwraps</h4>
6+
<p>Gets a list of clickwraps associated with a specific DocuSign user.</p>
87

98
{% include 'documentation.html' %}
109

0 commit comments

Comments
 (0)