yavsc/Yavsc/Views/Manage/SetGoogleCalendar.cshtml

30 lines
857 B
Plaintext

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

@model SetGoogleCalendarViewModel
@{
ViewData["Title"] = "Setup Google calendar access";
}
<form asp-action="SetGoogleCalendar">
@{ var entryNum=0; }
@foreach (var calendar in Model.Calendars.Items)
{
entryNum++;
@if (calendar.AccessRole=="owner") {
<label >
<input type="radio" name="GoogleCalendarId" value="@calendar.Id" id="cal@entryNum">
<span style="background-color: @calendar.BackgroundColor; foreground-color: @calendar.ForegroundColor;">
@calendar.Summary </span>
<i>"@calendar.Description"</i>
</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>