-
Notifications
You must be signed in to change notification settings - Fork 0
/
Admin.cshtml
72 lines (71 loc) · 2.52 KB
/
Admin.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
@page
@model Opifex.Rsvp.Pages.AdminModel
<style>
#mainCard {
width: 100% !important;
margin: 0 !important;
max-width: 100% !important;
}
</style>
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.RsvpData[0].Name)
</th>
<th>
@Html.DisplayNameFor(model => model.RsvpData[0].EmailAddress)
</th>
<th>
@Html.DisplayNameFor(model => model.RsvpData[0].MaxGuests)
</th>
<th>
@Html.DisplayNameFor(model => model.RsvpData[0].RsvpType)
</th>
<th>
@Html.DisplayNameFor(model => model.RsvpData[0].HasRsvped)
</th>
<th>
@Html.DisplayNameFor(model => model.RsvpData[0].ChosenRsvp)
</th>
<th>
@Html.DisplayNameFor(model => model.RsvpData[0].NumberOfGuestsAdded)
</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.RsvpData)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.Name)
</td>
<td>
@Html.DisplayFor(modelItem => item.EmailAddress)
</td>
<td>
@Html.DisplayFor(modelItem => item.MaxGuests)
</td>
<td>
@Html.DisplayFor(modelItem => item.RsvpType)
</td>
<td>
@Html.DisplayFor(modelItem => item.HasRsvped)
</td>
<td>
@Html.DisplayFor(modelItem => item.ChosenRsvp)
</td>
<td>
@Html.DisplayFor(modelItem => item.NumberOfGuestsAdded)
</td>
<td>
<form method="post">
<input type="hidden" asp-for="@item.UserId" name="userId" />
<button type="submit" asp-page-handler="SendWelcomeEmail" class="btn btn-outline-primary">Send Welcome Email</button>
</form>
</td>
</tr>
}
</tbody>
</table>