<%@ Page MaintainScrollPositionOnPostback="true" Language="vb" MasterPageFile="~/WFAdmin/ModalAdminPage.master" AutoEventWireup="false" CodeBehind="PDFCreator.aspx.vb" Inherits="WebFoundations.WFWorkflow.Modules.UI.PDFCreator" %>
<%@ Register TagPrefix="wff" Namespace="WebFoundations.WFWorkflow.Services.UI" Assembly="WebFoundations.WFWorkflow.Services" %>
<%@ Register Src="~/WFControls/AccessList.ascx" TagName="AccessList" TagPrefix="uc2" %>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <h1>
    <asp:Label Text="" ID="lblModuleName" runat="server" /></h1>
    <div class="fields pdf-creator">
        <label>
            <asp:Label ID="lblnome" runat="server" />
            <asp:TextBox ID="txtnome" runat="server" MaxLength="50" />
            <asp:RequiredFieldValidator ID="obrnome" runat="server" Display="Dynamic" ControlToValidate="txtnome" ValidationGroup="PDFCreation" />
        </label>
        <label>
            <asp:Label ID="lblacesso" runat="server" />
            <uc2:AccessList ID="listaacesso" DisableItems="-7;-6;-5;-4;-3;-2;" EnableUser="true" EnableRole="true" EnableRoleGroup="true" runat="server" />
        </label>
        <label>
            <asp:Label ID="lblArquivo" runat="server" />
            <asp:FileUpload ID="pdfFile" runat="server" />
            <asp:RegularExpressionValidator ID="vlarquivo" runat="server" Display="Dynamic" ValidationExpression=".+\.(pdf|PDF)" ControlToValidate="pdfFile" />
        </label>
        <label>
            <asp:Button ID="btnLoad" runat="server" />
            <asp:Label ID="lblFileName" runat="server" />
            <asp:HiddenField ID="hidFilename" runat="server" />
        </label>
        <asp:Repeater ID="rptFields" runat="server">
            <ItemTemplate>
                <div>
                    <asp:Label ID="lblField" runat="server" />
                     <wff:ZuriValuePicker id="ddlParam" ShowActivities="false"  width="100%" PagerSize="10" runat="server" />
                </div>
            </ItemTemplate>
        </asp:Repeater>
    </div>
    <section class="actions">
        <asp:Button ID="btnok" runat="server" ValidationGroup="PDFCreation" />
        <input id="btncancel" type="button" value="button" runat="server" />
    </section>
</asp:Content>
