yavsc/src/Yavsc.Org/Views/Manage/SetGoogleCalendar.cshtml

30 lines
843 B
Text
Raw Normal View History

2016-05-17 18:22:18 +02:00
@model SetGoogleCalendarViewModel
@{
2026-06-04 12:13:37 +01:00
ViewBag.Title = "Setup Google calendar access";
2016-05-17 18:22:18 +02:00
}
<form asp-action="SetGoogleCalendar">
@{ var entryNum=0; }
2017-07-05 11:29:15 +02:00
@foreach (var calendar in Model.Calendars.Items)
2016-05-17 18:22:18 +02:00
{
entryNum++;
2017-07-05 11:29:15 +02:00
@if (calendar.AccessRole=="owner") {
2017-07-03 15:54:18 +02:00
<label >
2017-07-05 11:29:15 +02:00
<input type="radio" name="GoogleCalendarId" value="@calendar.Id" id="cal@entryNum">
2017-07-03 15:54:18 +02:00
2017-07-05 11:29:15 +02:00
<span style="background-color: @calendar.BackgroundColor; foreground-color: @calendar.ForegroundColor;">
@calendar.Summary </span>
<i>"@calendar.Description"</i>
2016-05-17 18:22:18 +02:00
</label>
}
}
<input type="radio" name="GoogleCalendarId" id="cal0">
<label for="cal0">
2023-03-20 09:13:16 +00:00
No calendar setup"]
<i>"Do not use any Google calendar to determine my availability"]"</i>
2016-05-17 18:22:18 +02:00
</label>
@Html.Hidden("ReturnUrl")
<input type="submit"/>
</form>