Skip to content

Commit ddd34ac

Browse files
committed
Amends made in review.
1 parent 0c1c1fa commit ddd34ac

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

src/Umbraco.Cms.Integrations.Crm.Hubspot/App_Plugins/UmbracoCms.Integrations/Crm/Hubspot/Render/HubspotForm.cshtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/shell.js"></script>
55
<script>
66
hbspt.forms.create({
7+
region: "eu1",
78
portalId: "@Model.PortalId",
89
formId: "@Model.Id"
910
});

src/Umbraco.Cms.Integrations.Crm.Hubspot/App_Plugins/UmbracoCms.Integrations/Crm/Hubspot/package.manifest

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
11
{
2-
//"propertyEditors": [
3-
// {
4-
// "alias": "Umbraco.Cms.Integrations.Crm.Hubspot.FormPicker",
5-
// "name": "Hubspot Form Picker",
6-
// "isParameterEditor": true,
7-
// "group": "Pickers",
8-
// "icon": "icon-handshake",
9-
// "editor": {
10-
// "view": "~/App_Plugins/UmbracoCms.Integrations/Crm/Hubspot/views/formpicker.html"
11-
// }
12-
// }
13-
//],
142
"javascript": [
153
"~/App_Plugins/UmbracoCms.Integrations/Crm/Hubspot/js/formpicker.controller.js",
164
"~/App_Plugins/UmbracoCms.Integrations/Crm/Hubspot/js/settings.controller.js",

src/Umbraco.Cms.Integrations.Crm.Hubspot/Helpers/HtmlHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public static class HubspotHtmlExtensions
99
{
1010
public static IHtmlString RenderHubspotForm(this HtmlHelper htmlHelper, HubspotFormViewModel hubspotFormViewModel)
1111
{
12-
return htmlHelper.Partial("~/App_Plugins/Our.Umbraco.Hubspot/Render/HubspotForm.cshtml", hubspotFormViewModel);
12+
return htmlHelper.Partial("~/App_Plugins/UmbracoCms.Integrations/Crm/Hubspot/Render/HubspotForm.cshtml", hubspotFormViewModel);
1313
}
1414
}
1515
}

src/Umbraco.Cms.Integrations.Crm.Hubspot/readme.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,16 @@ TBC.
3939

4040
### Front-end rendering
4141

42-
TBC.
42+
A strongly typed model will be generated by the property value converter, and an HTML helper is available, to easily render the form on the front-end.
43+
44+
Ensure your template has a reference to the following using statement:
45+
46+
```
47+
@using Umbraco.Cms.Integrations.Crm.Hubspot.Helpers;
48+
```
49+
50+
And render the form using (assuming a property based on the created data type, with alias `hubSpotForm` has been created):
51+
52+
```
53+
@Html.RenderHubspotForm(Model.HubspotForm)
54+
```

0 commit comments

Comments
 (0)