-
Notifications
You must be signed in to change notification settings - Fork 42
/
FormEditorNoScript.cshtml
34 lines (29 loc) · 1.05 KB
/
FormEditorNoScript.cshtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
Layout = null;
@* if the content being rendered does not contain the form property, pass the applicable content like this *@
// ViewBag.FormContent = myInstanceOfIPublishedContent;
@* if your form property is not called "form" on the content type, pass the property name like this *@
// ViewBag.FormName = "myForm";
@* if you want to load submission data for an existing form submission, specify the row ID (GUID) like this *@
// ViewBag.FormRowId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
}
<!DOCTYPE html>
<html>
<head>
<title>@Model.Content.Name</title>
<link rel="stylesheet" href="http://getbootstrap.com/dist/css/bootstrap.min.css"/>
@* add some styles for Form Editor *@
<style>
/* required field indicator on the field labels */
div.form-group.required > label:after {
content: ' *';
color: #a94442;
}
</style>
</head>
<body>
@* render the form with the NoScript partial *@
@Html.Partial("FormEditor/NoScript", Umbraco.AssignedContentItem)
</body>
</html>