e.g. 3.10 Creating a Form View
This commit is contained in:
parent
379a4f1e46
commit
0a54588472
@ -145,6 +145,7 @@
|
|||||||
<Content Include="Scripts\jquery.validate.unobtrusive.js" />
|
<Content Include="Scripts\jquery.validate.unobtrusive.js" />
|
||||||
<Content Include="Scripts\jquery.validate.unobtrusive.min.js" />
|
<Content Include="Scripts\jquery.validate.unobtrusive.min.js" />
|
||||||
<Content Include="Scripts\modernizr-2.8.3.js" />
|
<Content Include="Scripts\modernizr-2.8.3.js" />
|
||||||
|
<Content Include="Views\Home\RsvpForm.cshtml" />
|
||||||
<Content Include="Web.config" />
|
<Content Include="Web.config" />
|
||||||
<Content Include="Web.Debug.config">
|
<Content Include="Web.Debug.config">
|
||||||
<DependentUpon>Web.config</DependentUpon>
|
<DependentUpon>Web.config</DependentUpon>
|
||||||
|
@ -0,0 +1,31 @@
|
|||||||
|
@model PartyInvites.Models.GuestResponse
|
||||||
|
|
||||||
|
@{
|
||||||
|
Layout = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>title</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
@using (Html.BeginForm())
|
||||||
|
{
|
||||||
|
<p>Your name: @Html.TextBoxFor(x => x.Name)</p>
|
||||||
|
<p>Your email: @Html.TextBoxFor(x => x.Email)</p>
|
||||||
|
<p>Your phone: @Html.TextBoxFor(x => x.Phone)</p>
|
||||||
|
<p>
|
||||||
|
Will you attend?
|
||||||
|
@Html.DropDownListFor(x => x.WillAttend, new[]
|
||||||
|
{
|
||||||
|
new SelectListItem() {Text = "Yes, I'll be there", Value = bool.TrueString},
|
||||||
|
new SelectListItem() {Text = "No, I can't come", Value = bool.FalseString}
|
||||||
|
}, "Choose an option")
|
||||||
|
</p>
|
||||||
|
<input type="submit" value="Submit RSVP"/>
|
||||||
|
|
||||||
|
}
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
x
Reference in New Issue
Block a user