forked from microsoftgraph/aspnet-snippets-sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEvents.cshtml
61 lines (51 loc) · 2.25 KB
/
Events.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
<!-- Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license.
See LICENSE in the source repository root for complete license information. -->
@using Resources;
@model Microsoft_Graph_ASPNET_Snippets.Models.ResultsViewModel
@{
ViewBag.Title = string.Format(Resource.Snippets, Resource.Event);
}
<h2>@ViewBag.Title</h2>
<div class="col-md-12">
<h3>@Resource.Choose_Snippet</h3>
<div class="form-group">
@using (Html.BeginForm("GetMyEvents", "Events"))
{
<button class="btn btn-link" id="get-my-events">@Resource.Event_GetMyEvents</button>
}
@using (Html.BeginForm("GetMyCalendarView", "Events"))
{
<button class="btn btn-link" id="get-my-calendar-view">@Resource.Event_GetMyCalendarView</button>
}
@using (Html.BeginForm("CreateEvent", "Events"))
{
<button class="btn btn-link" id="create-event">@Resource.Event_CreateEvent</button>
}
</div>
<p>@Resource.Needs_Id</p>
<div class="form-group">
@using (Html.BeginForm("GetEvent", "Events"))
{
<button class="btn btn-link needs-id" id="get-event" disabled>@Resource.Event_GetEvent</button>
<input class="selected-id" name="id" type="hidden" />
}
@using (Html.BeginForm("UpdateEvent", "Events"))
{
<button class="btn btn-link needs-id" id="update-event" disabled>@Resource.Event_UpdateEvent</button>
<input class="selected-id" name="id" type="hidden" />
<input class="selected-name" name="name" type="hidden" />
}
@using (Html.BeginForm("DeleteEvent", "Events"))
{
<button class="btn btn-link needs-id" id="delete-event" disabled>@Resource.Event_DeleteEvent</button>
<span class="alert-warning">@Html.Raw(Resource.Delete_Warning)</span>
<input class="selected-id" name="id" type="hidden" />
}
@using (Html.BeginForm("AcceptMeetingRequest", "Events"))
{
<button class="btn btn-link needs-id" id="accept-meeting" disabled>@Resource.Event_AcceptMeeting</button>
<input class="selected-id" name="id" type="hidden" />
}
</div>
</div>
@Html.Partial("_ResultsPartial")