<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/WFAdmin/ModalAdminPage.master" CodeBehind="Inicio.aspx.vb" Inherits="WebFoundations.WFWorkflow.UI.Inicio" %>
<%@ Register TagPrefix="wff" Namespace="WebFoundations.WFWorkflow.Services.UI" Assembly="WebFoundations.WFWorkflow.Services" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register Src="~/WFControls/AccessList.ascx" TagName="AccessList" TagPrefix="uc1" %>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        <asp:Label ID="lblModuleName" runat="server" /></h1>
    <telerik:RadTabStrip runat="server" ID="tbConfig" MultiPageID="configPages" SelectedIndex="0">
        <tabs>
            <telerik:RadTab Text="Configurações" />
            <telerik:RadTab Text="SLA" />
        </tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage runat="server" ID="configPages" SelectedIndex="0">
        <telerik:RadPageView runat="server" ID="Configuracoes">
            <div class="fields no-columns">
                <label>
                    <asp:Label ID="lblrole" runat="server" />
                    <uc1:AccessList ID="listaacesso" DisableItems="-7;-6;-5;-4;-3" EnableUser="true" EnableRole="true" EnableRoleGroup="true" runat="server" />
                </label>
                <label><asp:CheckBox ID="chkautoexec" CssClass="checkbox" runat="server" /></label>
                <label><asp:CheckBox ID="chkhidden" CssClass="checkbox" runat="server" /></label>
            </div>
        </telerik:RadPageView>
        <telerik:RadPageView runat="server" ID="configsla">
            <asp:Repeater ID="rptSLA" runat="server">
                <HeaderTemplate>
                    <table class="sla">
                        <colgroup>
                            <col width="33%" />
                            <col width="33%" />
                            <col width="34%" />
                        </colgroup>
                        <thead>
                            <tr>
                                <th>
                                    <asp:Literal ID="lblSLA" runat="server" /></th>
                                <th>
                                    <asp:Literal ID="lblUnidade" runat="server" /></th>
                                <th>
                                    <asp:Literal ID="lblPrazo" runat="server" /></th>
                            </tr>
                        </thead>
                </HeaderTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            <div id="divCor" runat="server" class="divCor"></div>
                            <asp:Label ID="lblSLAName" runat="server" />
                            <asp:HiddenField ID="slaID" runat="server" />
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlType" runat="server" /></td>
                        <td>
                            <wff:ZuriValuePicker id="ddlSLA" width="100%"  ShowZuriProperties="false" ShowPortalProperties="false" ShowActivities="false"
                                DropDownAutoWidth="enabled" PagerSize="10" runat="server" /></td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </telerik:RadPageView>
    </telerik:RadMultiPage>
    <section class="actions">
        <asp:Button ID="btnok" runat="server" />
        <input id="btncancel" type="button" value="button" runat="server" />
    </section>
</asp:Content>
