<%@ Page Language="vb" MasterPageFile="~/WFAdmin/ModalAdminPage.master" AutoEventWireup="false" CodeBehind="FormsSubForms.aspx.vb" Inherits="WebFoundations.WFForms.UI.FormsSubForms" %>

<%@ Register Src="../../../WFControls/WFForms/FormPicker.ascx" TagName="FormPicker" TagPrefix="uc1" %>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <div class="fields no-columns">
        <div>
            <asp:Label ID="lblFormSel" runat="server" Text="Formulário" />
            <uc1:formpicker id="FormPicker1" AddSelect="true" NeedsFullRefresh="true" runat="server" />
        </div>
        <div>
            <asp:Label ID="lblFields" runat="server" Text="Campos" />
            <asp:DataGrid ID="dtgFormChild" CssClass="campo_texto_back_WF" runat="server" AutoGenerateColumns="False" Width="100%">
                <Columns>
                    <asp:TemplateColumn HeaderText="Sele&#231;&#227;o">
                        <HeaderStyle Width="20px"></HeaderStyle>
                        <HeaderTemplate>
                            <asp:Label ID="lblSelecao" runat="server" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chkCheckField" runat="server" CssClass="checkbox" Checked="True" Value="1" EnableViewState="True" />
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:BoundColumn DataField="Name" HeaderText="Campo">
                        <HeaderStyle Width="50%"></HeaderStyle>
                    </asp:BoundColumn>
                    <asp:TemplateColumn HeaderText="Apelido">
                        <HeaderStyle Width="50%"></HeaderStyle>
                        <HeaderTemplate>
                            <asp:Label ID="lblApelido" CssClass="campo_texto_back_WF" runat="server" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:TextBox ID="txtFieldAlias" CssClass="campo_texto_back_WF" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="TooTip">
                        <HeaderTemplate>
                            <asp:Label ID="lblToolTip" CssClass="campo_texto_back_WF" runat="server" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:TextBox ID="txtFieldTooltip" CssClass="campo_texto_back_WF" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="Contador">
                        <HeaderTemplate>
                            <asp:Label ID="lblCount" CssClass="campo_texto_back_WF" runat="server" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chkFieldCount" CssClass="campo_texto_back_WF" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="Somar">
                        <HeaderTemplate>
                            <asp:Label ID="lblSum" CssClass="campo_texto_back_WF" runat="server" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chkFieldSum" CssClass="campo_texto_back_WF" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="Ordem Coluna">
                        <HeaderTemplate>
                            <asp:Label ID="lblOrder" CssClass="campo_texto_back_WF" runat="server" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:TextBox ID="txtOrder" CssClass="campo_texto_back_WF" Width="50" TextMode="Number" MaxLength="3" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="Ordenação">
                        <HeaderTemplate>
                            <asp:Label ID="lblSort" CssClass="campo_texto_back_WF" runat="server" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:TextBox ID="txtSort" CssClass="campo_texto_back_WF" Width="50" TextMode="Number" MaxLength="3" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateColumn>
                </Columns>
            </asp:DataGrid>
        </div>
    </div>
    <section class="actions">
        <asp:Button ID="btnSalvar" CssClass="botao_back_WF" runat="server" Text="btnSalvar" />&nbsp;&nbsp;
        <asp:Button ID="btnCancela" CssClass="botao_back_WF" runat="server" Text="btnCancela" />
    </section>
</asp:Content>
