<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="CSEasyWMGroup.aspx.vb" Inherits="CSEasyWM.CSEasyWMGroup" %>
<%@ 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" />
    <script language="javascript" type="text/javascript" src="jquery.js"></script>
    <script language="javascript" type="text/javascript">
    function OpenModalWindow(url, width, height) {
        SysShowModalPopup(url, "", width + "px", height + "px", function () { ModalWindowClosed(); }, null);
    }

    function ModalWindowClosed() {
        var res = SysDialog.returnValue;
        if (res == null || res.length == 0) return;

        if (res[0] == 'refresh') {
            SysSubmit(1);
        }
    }
</script>

</head>
<body>

<ep:form id="frm" runat="server">

<ex:CardControl runat="server" ID="Card" Action="Show">
    <ex:Header runat="server" ID="hdr">
        <ex:HeaderButton ID="hbFavorite" ButtonStyle="Favorite" /> 
    </ex:Header>

    <ex:headerproperties runat="server" id="hdrProps" headerpropertiesstyle="CreatedModified" datasource="bc" datafieldcreated="Created" datafieldcreator="Creator" datafieldcreatorname="CreatorFullName" datafieldmodified="Modified" datafieldmodifier="Modifier" datafieldmodifiername="ModifierFullName" />

    <ex:ButtonBar runat="server" ID="Buttons">
        <ex:Button runat="server" ID="btnSave" ButtonStyle="Save" DataSource="bc" />
        <ex:Button runat="server" ID="btnDelete" ButtonStyle="Delete" DataSource="bc" />
        <ex:Button runat="server" ID="btnClose" ButtonStyle="Close" />
    </ex:ButtonBar>

    <ex:BCDataSource runat="server" ID="bc" Component="CSEasyWMGroups" ListPage="CSEasyWMGroups.aspx" />
    <ex:bcerrormessages runat="server" id="errmsg" />

    <ex:cardrow runat="server" id="cr">
	    <ex:cardcolumn runat="server" id="cc">
		    <ex:cardsection runat="server" id="csGeneral" caption="Definition Group" captionid="421049">
			    <ex:cardfield runat="server" id="cfTitle" caption="Title" captionid="10189">
				    <ex:inputfield runat="server" id="GroupTitle" datasource="bc" DataField="Title" StartFocus="True" />
			    </ex:cardfield>
                <ex:cardfield runat="server" id="cfTitleTermID" caption="Title" captionid="10189" captionsuffix=":Term ID" captionsuffixid="37212">
				    <ex:inputfield runat="server" id="TitleTermID" datasource="bc" />
			    </ex:cardfield>
                <ex:cardfield runat="server" id="cfDescription" caption="Description" captionid="4243">
                    <ex:memofield id="Description" runat="server" datasource="bc" width="100%" height="3" htmlencoded="true" />
			    </ex:cardfield>
                <ex:cardfield runat="server" id="cfDisplayOrder" caption="Sorting" captionid="1272">
                    <ex:combobox runat="server" id="DisplayOrder" datasource="bc" ShowKey="True" />
			    </ex:cardfield>
		    </ex:cardsection>
	    </ex:cardcolumn>
    </ex:cardrow>

    <ex:cardrow runat="server" id="crDefs">
        <ex:cardcolumn runat ="server" id="ccDefs">
            <ex:cardsection runat="server" id="csDefs">
		        <ex:listview runat="server" id="listDefs" showpagesize="False" showbutton="True" caption="WordMerge Definitions" captionid="421004" onquery="ListDefs_OnQuery" ongetdata="ListDefs_onGetData" ScrollBar="None">
			        <buttons>
                        <ex:button runat="server" id="btnAddDef" buttonstyle="Custom" Caption="Edit" CaptionID="25319" />
			        </buttons>
                    <Columns>
                        <ex:listviewcolumn id="colDisplayorder" caption="Sorting" captionid="1272" sorting="none" width="5%" />
			            <ex:listviewcolumn id="colTitle" caption="Title" captionid="10189" sorting="none" width="95%" />
                    </Columns>
		        </ex:listview>
		        <ex:bcerrormessages runat="server" id="errNoDataFound" />

            </ex:cardsection>
        </ex:cardcolumn>
    </ex:cardrow>

</ex:CardControl>

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