Files
yavsc/Yavsc/Views/Manage/SetGoogleCalendar.cshtml
2017-06-20 02:47:52 +02:00

29 lines
869 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@model SetGoogleCalendarViewModel
@{
ViewData["Title"] = "Setup Google calendar access";
}
<form asp-action="SetGoogleCalendar">
@{ var entryNum=0; }
@foreach (var calendar in ViewBag.Calendars?.items)
{
entryNum++;
@if (calendar.accessRole=="owner") {
<input type="radio" name="GoogleCalendarId" value="@calendar.id" id="cal@entryNum">
<label for="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>