mirror of
https://github.com/rudollee/LearningMVC.git
synced 2026-08-11 16:32:55 +00:00
Primitive Commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<link href="~/Content/bootstrap.css" rel="stylesheet" />
|
||||
<link href="~/Content/bootstrap-theme.css" rel="stylesheet" />
|
||||
<title>Index</title>
|
||||
<style>
|
||||
.btn a {color: white; text-decoration: none;}
|
||||
body{ background-color: #f1f1f1;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="text-center">
|
||||
@*@ViewBag.Greeting World (from the view)*@
|
||||
<h2>We're going to have an exciting party.<br /></h2>
|
||||
<h3>And you are invited</h3>
|
||||
<div class="btn btn-success">
|
||||
@Html.ActionLink("RSVP Now", "RsvpForm")
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,61 @@
|
||||
@model PartyInvites.Models.GuestResponse
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<link href="~/Content/bootstrap.css" rel="stylesheet" />
|
||||
<link href="~/Content/bootstrap-theme.css" rel="stylesheet" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<link rel="stylesheet" type="text/css" href="~/Content/styles.css" />
|
||||
<title>RsvpForm</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="panel panel-success">
|
||||
<div class="panel-heading text-center">
|
||||
<h4>RSVP</h4>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
@using (Html.BeginForm())
|
||||
{
|
||||
@Html.ValidationSummary()
|
||||
<div class="form-group">
|
||||
<label>Your name:</label>
|
||||
@Html.TextBoxFor(x => x.Name, new { @class = "form-control" })
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Your email</label>
|
||||
@Html.TextBoxFor(x => x.Email, new { @class = "form-control" })
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Your email: </label>
|
||||
@Html.TextBoxFor(x => x.Email, new { @class = "form-control" })
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Your phone:</label>
|
||||
@Html.TextBoxFor(x => x.Phone, new { @class = "form-control" })
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Will you attend?</label>
|
||||
@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", new { @class = "form-control" })
|
||||
</div>
|
||||
|
||||
<div class="text-center">
|
||||
<input class="btn btn-success" type="submit" value="Submit RSVP" />
|
||||
</div>
|
||||
|
||||
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,36 @@
|
||||
@model PartyInvites.Models.GuestResponse
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<link href="~/Content/bootstrap.css" rel="stylesheet" />
|
||||
<link href="~/Content/bootstrap-theme.css" rel="stylesheet" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>Thanks</title>
|
||||
<style>
|
||||
body {
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="text-center">
|
||||
<h1>Thank you, @Model.Name!</h1>
|
||||
<div class="lead">
|
||||
@if (Model.WillAttend == true)
|
||||
{
|
||||
@:It's great that you're coming. The drinks are already in the fridge!
|
||||
}
|
||||
else
|
||||
{
|
||||
@:Sorry to hear that you cant't make it, but thanks for letting us know.
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user