-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAddtoHouse.cshtml
39 lines (32 loc) · 1.17 KB
/
AddtoHouse.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
35
36
37
38
39
@model sg_budgeter.Models.InviteViewModel
@{
ViewBag.Title = "AddttoHouseHold";
}
<h2>Create</h2>
@using (Html.BeginForm("AddtoHouse", "HouseHolds", new { id = Model.Id }, FormMethod.Post, htmlAttributes: null))
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
<h4>Households</h4>
<hr />
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
<div class="form-group">
@Html.LabelFor(model => model.AccessCode, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.AccessCode, new { htmlAttributes = new { @class = "form-control" } })
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input class="hidden" value="@Model.Id" />
<input type="submit" value="Create" class="btn btn-default" />
</div>
</div>
</div>
}
@*<div>
@Html.ActionLink("Back to List", "Index")
</div>*@
@section Scripts {
@Scripts.Render("~/bundles/jqueryval")
}