60 lines
1.7 KiB
Plaintext
60 lines
1.7 KiB
Plaintext
|
@model ThAmCo.Events.Models.SelectVenueModel
|
||
|
|
||
|
@{
|
||
|
ViewData["Title"] = "SelectVenue";
|
||
|
}
|
||
|
|
||
|
<h2>SelectVenue</h2>
|
||
|
|
||
|
<table class="table">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>
|
||
|
@Html.DisplayNameFor(model => model.Venues.FirstOrDefault().Code)
|
||
|
</th>
|
||
|
<th>
|
||
|
@Html.DisplayNameFor(model => model.Venues.FirstOrDefault().Name)
|
||
|
</th>
|
||
|
<th>
|
||
|
@Html.DisplayNameFor(model => model.Venues.FirstOrDefault().Capacity)
|
||
|
</th>
|
||
|
<th>
|
||
|
@Html.DisplayNameFor(model => model.Venues.FirstOrDefault().Date)
|
||
|
</th>
|
||
|
<th>
|
||
|
@Html.DisplayNameFor(model => model.Venues.FirstOrDefault().CostPerHour)
|
||
|
</th>
|
||
|
<th></th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
@foreach (var item in Model.Venues) {
|
||
|
<tr>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.Code)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.Name)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.Capacity)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.Date)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.CostPerHour)
|
||
|
</td>
|
||
|
<td>
|
||
|
<form asp-action="CreateReservation">
|
||
|
@Html.Hidden("VenueDate", item.Date)
|
||
|
@Html.Hidden("VenueCode", item.Code)
|
||
|
@Html.Hidden("Id", Model.Id)
|
||
|
<input type="submit" value="Reserve" />
|
||
|
</form>
|
||
|
</td>
|
||
|
</tr>
|
||
|
}
|
||
|
</tbody>
|
||
|
</table>
|