<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/WFAdmin/AdmMaster.Master" CodeBehind="PopupPresets.aspx.vb" Inherits="WebFoundations.WFWorkflow.UI.PopupPresets" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="wff" Namespace="WebFoundations.ServerControls" Assembly="WebFoundations.ServerControls" %>

<asp:Content ContentPlaceHolderID="TagHead" runat="server">
	<style>
		div.RadListBox .rlbTransferAllFrom,
		div.RadListBox .rlbTransferAllTo
		{
		   display: none;
		}
	</style>
	<script type="text/javascript">
		var MySelectedItem = '';

		function ShowNewForm() {
			window.radopen("PopupPreset.aspx", "EditDialog");
		}
		function postBackDelete(hiddenFieldID) {
			var hiddenField = $get(hiddenFieldID);
			if (hiddenField) {
				hiddenField.value = 'DELETE' + MySelectedItem;
				__doPostBack(hiddenFieldID, '');
			}
		}
		function postBackHiddenField(hiddenFieldID) {
			var hiddenField = $get(hiddenFieldID);
			if (hiddenField) {
				hiddenField.value = (new Date()).getTime();
				__doPostBack(hiddenFieldID, '');
			}
		}
	</script>

</asp:Content>

<asp:Content ContentPlaceHolderID="ActionContent" runat="server">
	<ul>
		<li>
			<asp:hyperlink id="lnkadd" runat="server" cssclass="add" />
		</li>
		<li>
			<asp:hyperlink id="lnkedit" runat="server" cssclass="edit" />
		</li>
		<li>
			<asp:hyperlink id="lnkdelete" runat="server" cssclass="delete" />
		</li>
		<li>
			<asp:hyperlink id="lnkrefresh" runat="server" cssclass="refresh" />
		</li>
		<li>
			<asp:linkbutton id="lnkExport" runat="server" cssclass="export" />
		</li>
	</ul>
</asp:Content>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">
	<asp:updatepanel id="updateform" runat="server" updatemode="Always">
		<ContentTemplate>
			<telerik:RadGrid id="grdPopUps" runat="server" AutoGenerateColumns="false" AllowSorting="False"
				GridLines="None" AllowPaging="True" PageSize="15">
				<mastertableview>
					<Columns>
						<telerik:GridTemplateColumn UniqueName="GeraAtraso" ItemStyle-HorizontalAlign="center" HeaderStyle-HorizontalAlign="Justify" HeaderStyle-Width ="20px">
							<ItemTemplate>
								<asp:Image ID="imgDefault" ImageUrl="~/WFResources/process/images/important.gif" Visible="false"  runat="server" />
							</ItemTemplate>
						</telerik:GridTemplateColumn>
						<telerik:GridTemplateColumn UniqueName="ConfigId" ItemStyle-HorizontalAlign="center" HeaderStyle-HorizontalAlign="Justify" HeaderStyle-Width ="20px">
							<ItemTemplate>
								<asp:Label id="lblConfigId" runat="server"  />
							</ItemTemplate>
						</telerik:GridTemplateColumn>
						<telerik:GridTemplateColumn UniqueName="ConfigAlias" ItemStyle-HorizontalAlign="center" HeaderStyle-HorizontalAlign="Justify" HeaderStyle-Width ="20px">
							<ItemTemplate>
								<asp:Label id="lblConfigAlias" runat="server"  />
							</ItemTemplate>
						</telerik:GridTemplateColumn>
					</Columns>
				</mastertableview>
				<clientsettings allowcolumnsreorder="false" allowdragtogroup="false"
						allowcolumnhide="false"
						selecting-allowrowselect="true" scrolling-allowscroll="false"
						scrolling-usestaticheaders="true">
				</clientsettings>
				<ExportSettings ExportOnlyData="True"  FileName="Modules" IgnorePaging="True" OpenInNewWindow="True" />
			</telerik:RadGrid>
			<asp:HiddenField id="PostBackHidden" runat="server"></asp:HiddenField>
		</ContentTemplate>
	</asp:updatepanel>
	<wff:WindowManager ID="EditWindow" runat="server">
		<windows>
			<telerik:RadWindow ID="EditDialog" runat="server" Height="550px" Width="900px" ReloadOnShow="true" Modal="true"  />
		</windows>
	</wff:WindowManager>
</asp:Content>
