<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="CSEasyO365SettingsCalendar.aspx.vb" Inherits="CSEasyO365.CSEasyO365SettingsCalendar" %>
<%@ register tagprefix="ex" namespace="Exact.Web.UI.Controls" assembly="Exact.Web.UI.Controls" %>

<html>
<head>
	<meta name="save" content="history" />
	<link runat="server" id="ExactCSS" href="Exact.css" type="text/css" rel="stylesheet" />
</head>
<body>

	<ep:form id="frm" runat="server">
        <ex:inputfield runat="server" id="Action" validationas="Int" validationdefault="0" hidden="true" />

        <ex:CardControl runat="server" ID="Card" Action="Show">

		    <ex:header runat="server" id="hdr" Caption="Easy Office365" CaptionID="0">
                <ex:headerbutton id="hbFavorite" buttonstyle="Favorite" />
            </ex:header>

            <ex:headerproperties runat="server" id="hdrProps" HeaderPropertiesStyle="Custom" />

		    <ex:buttonbar runat="server" id="btnBar">
			    <ex:button runat="server" id="btnClose" buttonstyle="Close" />
                <ex:button runat="server" id="btnEdit" buttonstyle="Custom" Caption="Edit" CaptionID="25319" onClick="SysSet('Action', '1'); SysSubmit(1);" />
                <ex:button runat="server" id="btnSave" buttonstyle="Custom" Caption="Save" CaptionID="24522" onClick="SysSet('Action', '2'); SysSubmit(1);" />
		    </ex:buttonbar>

            <ex:bcerrormessages runat="server" id="ErrorMsg" />

            <ex:cardrow runat="server" id="cr">
                <ex:cardcolumn runat="server" id="cc">
                    <ex:cardsection runat="server" id="csGeneral" caption="General" captionid="8606">
					    <ex:cardfield runat="server" id="cfDisableCalendar" caption="Active" captionid="2212">
						    <ex:checkbox runat="server" id="DisableCalendar" />
					    </ex:cardfield>
					    <ex:cardfield runat="server" id="csLogInfoCalendar" caption="Log" captionid="218" CaptionSuffix=":Information" CaptionSuffixID="8642">
						    <ex:checkbox runat="server" id="LogInfoCalendar" />
					    </ex:cardfield>
					    <ex:cardfield runat="server" id="cfCalendarDebugLog" caption="Log" captionid="218" CaptionSuffix=":Debug" CaptionSuffixID="0">
						    <ex:checkbox runat="server" id="CalendarDebugLog" />
					    </ex:cardfield>
					    <ex:cardfield runat="server" id="cfUsersCalendar">
						    <ex:combobox runat="server" id="UsersCalendar" AllowEmpty="True" />
					    </ex:cardfield>
					    <ex:cardfield runat="server" id="cfCalendarStartDate" caption="Start date" captionid="3392">
						    <ex:datefield runat="server" id="CalendarStartDate" />
					    </ex:cardfield>
					    <ex:cardfield runat="server" id="cfCalendarDontChangeType" caption="Verzoektype bestaande verzoeken niet wijzigen" captionid="0">
						    <ex:checkbox runat="server" id="CalendarDontChangeType" />
					    </ex:cardfield>
					    <ex:cardfield runat="server" id="cfCalendarInclRequestHID" caption="Neem verzoek HID op in agenda-tekst" captionid="0">
						    <ex:checkbox runat="server" id="CalendarInclRequestHID" />
					    </ex:cardfield>
                    </ex:cardsection>
                </ex:cardcolumn>
            </ex:cardrow>

            <ex:cardrow runat="server" id="cr2">
                <ex:cardcolumn runat="server" id="cc21">
                    <ex:cardsection runat="server" id="csExchangeConnection" caption="Connection" captionid="27055">
                        <ex:cardfield runat="server" id="cfTenantId" caption="tenantId" captionid="0">
                            <ex:inputfield runat="server" id="ExchangeConnectionTenantId" InputSize="50" />
                        </ex:cardfield>
					    <ex:cardfield runat="server" id="cfClientId" caption="clientId" captionid="0">
						    <ex:inputfield runat="server" id="ExchangeConnectionClientId" InputSize="50" />
					    </ex:cardfield>
                        <ex:cardfield runat="server" id="cfClientSecret" caption="clientSecret" captionid="0">
                            <ex:inputfield runat="server" id="ExchangeConnectionClientSecret" InputSize="50" />
                        </ex:cardfield>
                        <ex:cardfield runat="server" id="cfEmailDomainCalendar" caption="E-mail domein" captionid="0">
                            <ex:inputfield runat="server" id="EmailDomainCalendar" InputSize="25" />
                        </ex:cardfield>
                    </ex:cardsection>
                </ex:cardcolumn>
            </ex:cardrow>

            <ex:cardrow runat="server" id="cr3">
                <ex:cardcolumn runat="server" id="cc3">
                    <ex:cardsection runat="server" id="csRequestType" caption="Request type" captionid="268">
					    <ex:cardfield runat="server" id="cfRequestTypeDefault" caption="Default" captionid="8521">
						    <ex:combobox runat="server" id="RequestTypeDefault" AllowEmpty="True" Autopostback="True" />
					    </ex:cardfield>
					    <ex:cardfield runat="server" id="cfRequestChangeType" caption="Change" captionid="9753" captionsuffix=":Type" captionsuffixid="3801">
						    <ex:combobox runat="server" id="RequestChangeType" AllowEmpty="True" />
					    </ex:cardfield>
                    </ex:cardsection>

                    <ex:cardlistview runat="server" id="csRequestTypes" showheader="True" customizecolumns="False" customizerows="False">
	                    <ex:listview runat="server" id="lstTypes" Caption="Request types" CaptionID="236" onquery="lstTypes_OnQuery" ongetdata="lstTypes_OnGetData" showwaitmessage="True" ScrollBar="None" ShowPageSize="False">
                            <Columns>
                                <ex:listviewcolumn runat="server" id="colTypesID" width="1%" caption="ID" captionid="0" />
                                <ex:listviewcolumn runat="server" id="colTypesDescription" caption="Description" captionid="4243" />
                                <ex:listviewcolumn runat="server" id="colTypeShowAs" width="5%" caption="Weergeven als" captionid="0" />
                                <ex:listviewcolumn runat="server" id="colTypeUsePrio" width="5%" caption="Use" captionid="11227" captionsuffix=":Priority" captionsuffixid="3217" />
                                <ex:listviewcolumn runat="server" id="colTypeInviteContactPerson" width="5%" caption="Uitnodigen" captionid="0" captionsuffix=":Contact person" captionsuffixid="8484" />
                                <ex:listviewcolumn runat="server" id="colTypeUseColour" width="5%" caption="Use" captionid="11227" captionsuffix=":Colour" captionsuffixid="5865" />
                                <ex:listviewcolumn runat="server" id="colTypeColour" width="50" caption="Colour" captionid="5865" />
                            </Columns>
		                </ex:listview>
		                <ex:bcerrormessages runat="server" id="errNoDataFound" Mode="Notification" />
                    </ex:cardlistview>
                </ex:cardcolumn>
            </ex:cardrow>

        </ex:CardControl>
	</ep:form>
</body>
</html>