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

<html>
<head>
	<meta name="save" content="history" />
	<link rel="stylesheet" type="text/css" href="Exact.css" />
</head>
<body>
	<ep:form id="frmSettings" runat="server">
		<ex:inputfield runat="server" id="Action" validationas="Int" validationdefault="0" hidden="true" />

		<ex:cardcontrol id="Card" runat="server" action="Show" customizable="false">

			<ex:header runat="server" id="hdr" caption="Easy WordMerge" captionid="421000" captionsuffix=":Settings" captionsuffixid="8799">
				<ex:headerbutton id="hbFavorite" buttonstyle="Favorite" />
			</ex:header>

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

			<ex:buttonbar runat="server" id="Buttons">
				<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="crGeneralSettings">
				<ex:cardcolumn runat="server" id="csGeneralSettings1">
					<ex:cardsection runat="server" id="csSecurity" caption="Security" captionid="32783">
                        <ex:cardfield runat="server" id="cfRoleMaintenance" caption="Maintain" captionid="8814" captionsuffix=":WordMerge Definitions" captionsuffixid="421004">
                            <ex:combobox runat="server" id="RoleMaintenance" AllowEmpty="True" />
                        </ex:cardfield>
					</ex:cardsection>
                    <ex:cardsection runat="server" id="csDocumentTypes" caption="Document types" captionid="15830">
                        <ex:cardfield runat="server" id="cfDocumentTypes" caption="Contains WordMerge templates" captionid="421096">
                            <ex:browsefield runat="server" id="DocumentTypes" AllowEmpty="True" Multiple="True" StandardBrowser="DocumentType" InputHidden="True" />
                        </ex:cardfield>
                    </ex:cardsection>
                </ex:cardcolumn>
				<ex:cardcolumn runat="server" id="csGeneralSettings2">
					<ex:cardsection runat="server" id="Cardsection1" caption="Exact Synergy Enterprise" captionid="34430">
                        <ex:cardfield runat="server" id="Cardfield1" caption="Disable standard Word Merge" captionid="421014">
                            <ex:checkbox runat="server" id="cbDisableStandardWordMerge" />
                        </ex:cardfield>
					</ex:cardsection>
                </ex:cardcolumn>
            </ex:cardrow>

            <ex:cardrow runat="server" id="crSettings">
				<ex:cardcolumn runat="server" id="ccSettings">
					<ex:cardsection runat="server" id="csPostGeneration" caption="After generating" captionid="421282">
                        <ex:cardfield runat="server" id="cfShowEditLink" caption="Edit in Word link" captionid="421280" >
                            <ex:checkbox runat="server" id="cbShowEditLink" />
                        </ex:cardfield>
                        <ex:cardfield runat="server" id="cfOpenSingle" caption="Open with 1 document" captionid="421281" >
                            <ex:checkbox runat="server" id="cbOpenSingle" />
                        </ex:cardfield>
					</ex:cardsection>
                </ex:cardcolumn>
                <ex:cardcolumn runat="server" id="ccSkipSettings">
                    <ex:cardsection runat="server" id="csSkipSettings" caption="Generate" captionid="330" captionsuffix=":Skip settings" captionsuffixid="421285">
                        <ex:cardfield runat="server" id="cfSkipPreview" caption="Skip" captionid="4499" captionsuffix=":Preview" captionsuffixid="23150">
                            <ex:checkbox runat="server" id="cbSkipPreview" />
                        </ex:cardfield>
                        <ex:cardfield runat="server" id="cfSkipResult" caption="Skip" captionid="4499" captionsuffix=":Result" captionsuffixid="7151">
                            <ex:checkbox runat="server" id="cbSkipResult" />
                        </ex:cardfield>
                    </ex:cardsection>
                </ex:cardcolumn>
            </ex:cardrow>

            <ex:cardrow runat="server" id="crMerge">
				<ex:cardcolumn runat="server" id="ccMerge1">
					<ex:cardsection runat="server" id="csDTAP" caption="DTAP Management" captionid="40399">
                        <ex:cardfield runat="server" id="cfRemoveUnusedFields" caption="Remove un-used fields" captionid="421287">
                            <ex:checkbox runat="server" id="cbRemoveUnusedFields" />
                        </ex:cardfield>
					</ex:cardsection>
                </ex:cardcolumn>
                <ex:cardcolumn runat="server" id="ccMerge2">
                    <ex:cardsection runat="server" id="csMerge" caption="Merge options" captionid="421289">
                        <ex:cardfield runat="server" id="cfUseNonMergefields" caption="Use non-merge fields ({{tag}})" captionid="421288" >
                            <ex:checkbox runat="server" id="cbUseNonMergefields" />
                        </ex:cardfield>
                    </ex:cardsection>
                </ex:cardcolumn>
            </ex:cardrow>
		</ex:cardcontrol>
	</ep:form>
</body>
</html>
