Upload project.

This commit is contained in:
StevenJW
2020-06-07 22:36:12 +01:00
parent 0df30b8f36
commit 5829fb5504
170 changed files with 31989 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
@model ThAmCo.Events.Data.GuestBooking
@{
ViewData["Title"] = "Create";
}
<h2>Create</h2>
<h4>GuestBooking</h4>
<hr />
<div class="row">
<div class="col-md-4">
<form asp-action="Create">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<label asp-for="CustomerId" class="control-label"></label>
<select asp-for="CustomerId" class ="form-control" asp-items="ViewBag.CustomerId"></select>
</div>
<div class="form-group">
<label asp-for="EventId" class="control-label"></label>
<select asp-for="EventId" class ="form-control" asp-items="ViewBag.EventId"></select>
</div>
<div class="form-group">
<div class="checkbox">
<label>
<input asp-for="Attended" /> @Html.DisplayNameFor(model => model.Attended)
</label>
</div>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-default" />
</div>
</form>
</div>
</div>
<div>
<a asp-action="Index">Back to List</a>
</div>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}

View File

@@ -0,0 +1,40 @@
@model ThAmCo.Events.Data.GuestBooking
@{
ViewData["Title"] = "Delete";
}
<h2>Delete</h2>
<h3>Are you sure you want to delete this?</h3>
<div>
<h4>GuestBooking</h4>
<hr />
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.Customer)
</dt>
<dd>
@Html.DisplayFor(model => model.Customer.Email)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Event)
</dt>
<dd>
@Html.DisplayFor(model => model.Event.Title)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Attended)
</dt>
<dd>
@Html.DisplayFor(model => model.Attended)
</dd>
</dl>
<form asp-action="Delete">
<input type="hidden" asp-for="CustomerId" />
<input type="hidden" asp-for="EventId" />
<input type="submit" value="Delete" class="btn btn-default" /> |
<a asp-action="Index">Back to List</a>
</form>
</div>

View File

@@ -0,0 +1,36 @@
@model ThAmCo.Events.Data.GuestBooking
@{
ViewData["Title"] = "Details";
}
<h2>Details</h2>
<div>
<h4>GuestBooking</h4>
<hr />
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.Customer)
</dt>
<dd>
@Html.DisplayFor(model => model.Customer.Email)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Event)
</dt>
<dd>
@Html.DisplayFor(model => model.Event.Title)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Attended)
</dt>
<dd>
@Html.DisplayFor(model => model.Attended)
</dd>
</dl>
</div>
<div>
@Html.ActionLink("Edit", "Edit", new { /* id = Model.PrimaryKey */ }) |
<a asp-action="Index">Back to List</a>
</div>

View File

@@ -0,0 +1,37 @@
@model ThAmCo.Events.Data.GuestBooking
@{
ViewData["Title"] = "Edit";
}
<h2>Edit</h2>
<h4>GuestBooking</h4>
<hr />
<div class="row">
<div class="col-md-4">
<form asp-action="Edit">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<input type="hidden" asp-for="CustomerId" />
<input type="hidden" asp-for="EventId" />
<div class="form-group">
<div class="checkbox">
<label>
<input asp-for="Attended" /> @Html.DisplayNameFor(model => model.Attended)
</label>
</div>
</div>
<div class="form-group">
<input type="submit" value="Save" class="btn btn-default" />
</div>
</form>
</div>
</div>
<div>
<a asp-action="Index">Back to List</a>
</div>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}

View File

@@ -0,0 +1,47 @@
@model IEnumerable<ThAmCo.Events.Data.GuestBooking>
@{
ViewData["Title"] = "Index";
}
<h2>Index</h2>
<p>
<a asp-action="Create">Create New</a>
</p>
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.Customer)
</th>
<th>
@Html.DisplayNameFor(model => model.Event)
</th>
<th>
@Html.DisplayNameFor(model => model.Attended)
</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.Customer.Email)
</td>
<td>
@Html.DisplayFor(modelItem => item.Event.Title)
</td>
<td>
@Html.DisplayFor(modelItem => item.Attended)
</td>
<td>
@Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
@Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
@Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
</td>
</tr>
}
</tbody>
</table>