Skip to content

Commit ca4ff29

Browse files
AaronWDSdependabot[bot]InbarGazit
authored
Devdocs 9667 (#98)
* Bump twig/twig from 3.3.8 to 3.4.3 in /Quick_ACG Bumps [twig/twig](https://github.com/twigphp/Twig) from 3.3.8 to 3.4.3. - [Release notes](https://github.com/twigphp/Twig/releases) - [Changelog](https://github.com/twigphp/Twig/blob/3.x/CHANGELOG) - [Commits](twigphp/Twig@v3.3.8...v3.4.3) --- updated-dependencies: - dependency-name: twig/twig dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Bump twig/twig from 3.3.8 to 3.4.3 Bumps [twig/twig](https://github.com/twigphp/Twig) from 3.3.8 to 3.4.3. - [Release notes](https://github.com/twigphp/Twig/releases) - [Changelog](https://github.com/twigphp/Twig/blob/3.x/CHANGELOG) - [Commits](twigphp/Twig@v3.3.8...v3.4.3) --- updated-dependencies: - dependency-name: twig/twig dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * README.md updates * check in * more changes to test * updated redirect method, now WAD * variable renaming and changing the string shown * add in a line break --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Inbar Gazit <[email protected]>
1 parent 03a9ebe commit ca4ff29

File tree

7 files changed

+39
-23
lines changed

7 files changed

+39
-23
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"docusign/admin-client": "^1.1.0",
2424
"docusign/click-client": "^1.2.2",
2525
"docusign/esign-client": "^6.13.0-rc",
26-
"docusign/rooms-client": "^2.0.0",
26+
"docusign/rooms-client": "^2.1.0-rc",
2727
"docusign/monitor-client": "^1.1.0",
2828
"twig/twig": "^3.4.3",
2929
"league/oauth2-client": "^2.6.1",

composer.lock

Lines changed: 11 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Controllers/Examples/Rooms/EG006CreateExternalFormFillSession.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ function createController(): void
4040
$this->checkDsToken();
4141
$room_id = $this->args['room_id'];
4242
$form_id = $this->args['form_id'];
43-
43+
$this->args['x_frame_allowed_url'] = "http://localhost:8080";
44+
4445
if ($room_id && !$form_id) {
4546
$room = CreateExternalFormFillSessionService::getRoom(
4647
$room_id,
@@ -88,10 +89,14 @@ function ($f) {
8889
);
8990

9091
if ($createExternalFormResponse) {
91-
$createExternalFormResponse = json_decode((string)$createExternalFormResponse, true);
92+
$createExternalFormJSON = json_decode((string)$createExternalFormResponse, true);
93+
9294
$this->clientService->showDoneTemplateFromManifest(
9395
$this->codeExampleText,
94-
json_encode(json_encode($createExternalFormResponse))
96+
"",
97+
"Results from the Forms::CreateExternalFormFillSession: <br/><code>".stripslashes($createExternalFormResponse)."</code>",
98+
$createExternalFormJSON['url'],
99+
95100
);
96101
}
97102
}

src/Services/RoomsApiClientService.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,10 @@ public function needToReAuth($eg): void
8686
* @param $message string
8787
* @return void
8888
*/
89-
public function showDoneTemplateFromManifest(array $codeExampleText, $results = null, string $message = null): void
89+
public function showDoneTemplateFromManifest(array $codeExampleText, $results = null, string $message = null, $url = null): void
9090
{
91+
92+
9193
if ($message == null) {
9294
$message = $codeExampleText["ResultsPageText"];
9395
}
@@ -96,6 +98,7 @@ public function showDoneTemplateFromManifest(array $codeExampleText, $results =
9698
'title' => $codeExampleText["ExampleName"],
9799
'h1' => $codeExampleText["ExampleName"],
98100
'message' => $message,
101+
'url' => $url,
99102
'json' => $results,
100103
'common_texts' => ManifestService::getCommonTexts()
101104
]);

src/Services/RouterService.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ class RouterService implements IRouterService
182182
*/
183183
public function __construct()
184184
{
185+
if(!isset($_SESSION['api_type'])){
186+
// first time loading server and session is null causes problems for manifestService
187+
$_SESSION['api_type'] = "eSign";
188+
}
189+
185190
// To ignore the Notice instead of Isset on missing POST vars
186191
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED);
187192

templates/example_done.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{% extends "base.html" %} {% block content %}
22

3+
34
<h2>{{ h1 }}</h2>
45
<p>{{ message | raw }}</p>
56

@@ -9,10 +10,16 @@ <h2>{{ h1 }}</h2>
910
<p>
1011
<pre class="json-display"><code id="json-display"></code></pre>
1112
</p>
13+
1214
{% endif %}
1315

1416

1517

18+
{% if url %}
19+
<iframe width="1000" height="800" src="{{ url }}"></iframe>
20+
21+
{% endif %}
22+
1623

1724
{% if import_id == "refreshPage" %}
1825

templates/rooms/eg006_create_external_form_fill_session.html

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ <h4>{{ code_example_text['ExampleName'] | raw }}</h4>
4343

4444
{% if rooms %}
4545
<form class="eg" action="" method="post" data-busy="form">
46-
<p>
47-
{{ code_example_text['Forms'][form2Number]['FormName'] | raw }}
48-
</p>
49-
5046
<div class="form-group">
5147
<label for="room_id">
5248
{{ code_example_text['Forms'][form2Number]['Inputs'][documentsInputNumber]['InputName'] | raw }}
@@ -63,13 +59,10 @@ <h4>{{ code_example_text['ExampleName'] | raw }}</h4>
6359
</form>
6460
{% elseif room_name and forms %}
6561
<form class="eg" action="" method="post" data-busy="form">
66-
<p>
67-
{{ code_example_text['Forms'][formNumber]['FormName'] | raw }}
68-
</p>
62+
63+
<label for="room_name">{{ code_example_text['Forms'][formNumber]['FormName'] | raw }}</label>
6964

70-
<label for="room_name">
71-
Room name
72-
</label>
65+
7366
<input type="text"
7467
class="form-control"
7568
id="room_name"

0 commit comments

Comments
 (0)