<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="FileEdit.ascx.vb" Inherits="WebFoundations.WFPortal.BaseModules.UI.FileEdit" %>
<%@ Register Assembly="WebFoundations.ServerControls" Namespace="WebFoundations.ServerControls" TagPrefix="wf" %>

<asp:button runat="server" id="btAdd" text="Adicionar" />
<asp:panel runat="server" id="pnEdit" cssclass="fields" visible="false">
    <label>
        <asp:label id="lbltitle" runat="server"/>
        <asp:textbox id="txttitle" runat="server" maxlength="80" />
        <asp:requiredfieldvalidator id="reqtitle" validationgroup="edit" runat="server" controltovalidate="txttitle" display="dynamic" />
    </label>
    <label id="trdescription" runat="server">
        <asp:label id="lbldescription" runat="server"/>
        <wf:TextArea ID="txtdescription" runat="server" MaxLength="300" />
    </label>
    <label>
        <asp:label id="lblfile" runat="server"/>
        <asp:dropdownlist id="lstfile" runat="server"/>
        <asp:fileupload id="loadFile" runat="server" />
    </label>
    <label id="trcategory" runat="server">
        <asp:label id="lblcategory" runat="server"/>
        <asp:textbox id="txtcategory" runat="server" maxlength="100" />
    </label>
    <section class="actions">
        <asp:Button runat="server" validationgroup="edit" ID="btSave" Text="Salvar" />
        <asp:Button runat="server" ID="btDelete" Text="Excluir" CausesValidation="false" />
        <asp:Button runat="server" ID="btCancel" Text="Cancelar" CausesValidation="false" />
    </section>
</asp:panel>