This commit is contained in:
Paul Schneider 2026-02-14 16:54:27 +00:00
commit 45514010f2
3505 changed files with 154 additions and 523 deletions

View file

@ -0,0 +1,30 @@
@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">
No calendar setup"]
<i>"Do not use any Google calendar to determine my availability"]"</i>
</label>
@Html.Hidden("ReturnUrl")
<input type="submit"/>
</form>