-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathSubscription.cshtml
50 lines (48 loc) · 1.35 KB
/
Subscription.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
@model OneDriveWebhookTranslator.Models.SubscriptionViewModel
@{
ViewBag.Title = "Subscription Results";
}
<h2>New Subscription</h2>
<div>
<table>
<tr>
<td>
@Html.LabelFor(m => m.Subscription.Resource, htmlAttributes: new { @class = "control-label col-md-2" })
</td>
<td>
@Model.Subscription.Resource
</td>
</tr>
<tr>
<td>
@Html.LabelFor(m => m.Subscription.ClientState, htmlAttributes: new { @class = "control-label col-md-2" })
</td>
<td>
@Model.Subscription.ClientState
</td>
</tr>
<tr>
<td>
@Html.LabelFor(m => m.Subscription.SubscriptionId, htmlAttributes: new { @class = "control-label col-md-2" })
</td>
<td>
@Model.Subscription.SubscriptionId
</td>
</tr>
<tr>
<td>
@Html.LabelFor(m => m.Subscription.SubscriptionExpirationDateTime, htmlAttributes: new { @class = "control-label col-md-2" })
</td>
<td>
@Model.Subscription.SubscriptionExpirationDateTime
</td>
</tr>
</table>
</div><br />
<div>
@using (Html.BeginForm("LoadView", "Notification"))
{
<button type="submit">Watch for notifications</button>
<input type="hidden" name="subscriptionId" value="@Model.Subscription.SubscriptionId" />
}
</div>