yavsc/Yavsc/Views/Manage/SetGoogleCalendar.cshtml

30 lines
857 B
Text
Raw Normal View History

2016-05-17 18:22:18 +02:00
@model SetGoogleCalendarViewModel
@{
ViewData["Title"] = "Setup Google calendar access";
}
<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">
@SR["No calendar setup"]
<i>"@SR["Do not use any Google calendar to determine my availability"]"</i>
</label>
@Html.Hidden("ReturnUrl")
<input type="submit"/>
</form>