Skip to content

Commit 53db00f

Browse files
authored
Merge pull request #192 from docusign/feature/added-text-to-manifest
Changed text in Web Forms example
2 parents e21ae6e + dc22cbe commit 53db00f

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

Quick_ACG/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ public static IWebHostBuilder CreateWebHostBuilder(string[] args)
2828
{
2929
path = Path.GetFullPath(@"..\\launcher-csharp\\appsettings.json");
3030
}
31-
31+
3232

3333
config.AddJsonFile(path,
34-
optional: false,
35-
reloadOnChange: true);
34+
optional: false,
35+
reloadOnChange: true);
3636
});
3737
return builder;
3838
}

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ steps:
107107
command: build
108108
repository: 'launcher-automation-csharp'
109109
dockerfile: '$(Build.SourcesDirectory)/code-examples-csharp-private/Dockerfile'
110-
buildContext: '$(Build.SourcesDirectory)/code-examples-csharp-private '
110+
buildContext: '$(Build.SourcesDirectory)/code-examples-csharp-private'
111111
tags: |
112112
latest
113113

launcher-csharp/Views/Home/Index.cshtml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,12 @@
3030
<input type="text" class="form-control" id="code_example_search" placeholder="Search for code example">
3131
</div>
3232

33-
3433
<div id="api_json_data" class="hidden">@ViewBag.APIData</div>
3534
<div id="cfr11_data" class="hidden">@ViewBag.CFRPart11</div>
3635

3736
<div id="filtered_code_examples" class="container" style="margin-top: 10px; padding-left: 0px;">
3837
@foreach(var api in ViewBag.APITexts)
3938
{
40-
4139
var linkToCodeExample = ((ApIs) api).Name.ToLower() == ExamplesApiType.ESignature.ToString().ToLower() ? ExamplesApiType.ESignature.ToKeywordString()
4240
: ((ApIs) api).Name.ToLower() == ExamplesApiType.Click.ToString().ToLower() ? ExamplesApiType.Click.ToKeywordString()
4341
: ((ApIs) api).Name.ToLower() == ExamplesApiType.Monitor.ToString().ToLower() ? ExamplesApiType.Monitor.ToKeywordString()

launcher-csharp/WebForms/Controllers/CreateAndEmbedForm.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ public ActionResult EmbedForm()
117117
accountId,
118118
formId);
119119

120+
this.ViewBag.Description = this.CodeExampleText.AdditionalPages
121+
.First(x => x.Name == "webforms_heading").ResultsPageText;
120122
this.ViewBag.InstanceToken = form.InstanceToken;
121123
this.ViewBag.Url = form.FormUrl;
122124
this.ViewBag.IntegrationKey = this.configuration["DocuSign:ClientId"];

launcher-csharp/WebForms/Views/CreateAndEmbedForm/Embed.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<body>
1212
<div id="app">
1313
<div id="webform-customer-app-area">
14-
<h5 id="webforms-heading">The web form has been embedded below using the Docusign JS library.</h5>
14+
<h5 id="webforms-heading">@Html.Raw(ViewBag.Description)</h5>
1515
<div id="docusign" class="webform-iframe-container">
1616
<p>Web Form will render here</p>
1717
</div>

manifest/CodeExamplesManifest.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,6 +1922,10 @@
19221922
{
19231923
"Name":"create_web_form",
19241924
"ResultsPageText":"Go to your Docusign account to create the Web Form. Go to 'Templates' in your developer account, select 'Start,' select 'Web Forms,' and choose 'Upload Web Form.' Upload the JSON config file 'web-form-config.json' found under the {0} folder of this project. You will need to activate the web form before proceeding. Press Continue after doing so."
1925+
},
1926+
{
1927+
"Name":"webforms_heading",
1928+
"ResultsPageText": "The webform has been embedded below using the Docusign JS library."
19251929
}
19261930
]
19271931
}

0 commit comments

Comments
 (0)