<%@ control language="VB" autoeventwireup="false" inherits="RCC_OCS_CC_MeetingRooms, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<div id="Pnl_MeetingRoomsListing" runat="server">
    <div class="card Div_OpsRow" id="Div_OpsRow" runat="server">
        <div class="header">
            <h3>
                <%= Resources.Content.GN00001320%>
            </h3>
        </div>
        <div class="body">
            <div class="row">
                <div class="col-xs-12">
                    <asp:Button ID="Btn_EnableCSMeetingRoom" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,EnableRoom%>' />
                </div>
            </div>
        </div>
    </div>
    <div class="row">&nbsp;</div>
    <div class="row">
        <div class="col-xs-12">
            <EM:MPGridView CssClass="table table-bordered table-striped table-hover" EmptyDataText='<%$ Resources:Content, GN00001375 %>' CurrentSortExpression="DisplayName" CurrentSortDirection="Asc"
                ID="GV_MeetingRooms" runat="server" AutoGenerateColumns="false" DataKeyNames='UPName' AllowPaging="true" AllowSorting="true">
                <Columns>
                    <asp:BoundField HeaderStyle-HorizontalAlign="Left" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3" HeaderText="<%$ Resources:Content,GN00001113%>"
                        DataField="DisplayName" />
                    <asp:BoundField HeaderStyle-HorizontalAlign="Left" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3" HeaderText="<%$ Resources:Content,Lync133%>"
                        DataField="SIPAddress" />
                    <asp:TemplateField HeaderStyle-HorizontalAlign="Left" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3" HeaderText="<%$ Resources:Content,Dev1238%>">
                        <ItemTemplate>
                            <asp:Label ID="Lbl_LineUri" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000360%>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                        <ItemTemplate>
                            <asp:LinkButton ID="LB_Disable" runat="server" Text="<%$ Resources:Content,GN00001025%>"
                                CssClass="btn btn-primary waves-effect btnAction" CommandName="Disable" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.Id")%>' />
                            <asp:LinkButton ID="LB_Update" runat="server" Text="<%$ Resources:Content,GN0000654%>"
                                CssClass="btn btn-primary waves-effect btnAction" CommandName="EditRoom" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.Id") %>' />
                            <EM:ConfirmButtonExtender ID="CBE_Disable" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                TargetControlID="LB_Disable" runat="server">
                            </EM:ConfirmButtonExtender>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <%--PagerTemplate Start--%>
                <PagerTemplate>
                    <EM:Pager ID="Pager" runat="server" />
                </PagerTemplate>
                <%--PagerTemplate End--%>
            </EM:MPGridView>
        </div>
    </div>

</div>
<div id="Pnl_EnableMeetingRoom" runat="server" defaultbutton="Btn_Enable" visible="false">

    <div class="card">
        <div class="header">
            <h3>
                <asp:Literal ID="Lt_MR" runat="server" EnableViewState="false" Text='<%$ Resources:Content,EnableRoom%>'></asp:Literal>
            </h3>
        </div>
        <div class="body">
            <div class="row">
                <div class="col-sm-3 col-xs-12">
                    <asp:Literal ID="Lt1" runat="server" EnableViewState="false" Text='<%$ Resources:Content,SelectResource%>'></asp:Literal>:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <asp:DropDownList ID="Ddl_Resources" runat="server">
                        </asp:DropDownList>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <asp:Button ID="Btn_Enable" CssClass="btn btn-primary waves-effect btnAction" runat="server" Text="<%$ Resources:Content,GN00001024%>" />
                    <asp:Button ID="Btn_Cancel" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000572%>" />
                </div>
            </div>
        </div>
    </div>


</div>
<div id="Pnl_EditMeetingRoom" runat="server" defaultbutton="Btn_Enable" visible="false">
    <div class="card">
        <div class="header">
            <h3>
                <asp:Literal ID="Literal1" runat="server" EnableViewState="false" Text='<%$ Resources:Content,UpdateRoom%>'></asp:Literal>
            </h3>
        </div>
        <div class="body">
            <div class="row">
                <div class="col-sm-3 col-xs-12 row-label">
                    <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,DEV1042%>" EnableViewState="false" />:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <asp:Label ID="Lbl_UPN" runat="server"></asp:Label>
                </div>
            </div>

            <div class="row">
                <div class="col-sm-3 col-xs-12 row-label">
                    *<asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,Lync133%>" EnableViewState="false" />:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:TextBox ID="TxBx_SIPAddress" runat="server" />
                            <asp:RequiredFieldValidator ID="RFV_TxBx_SIPAddress" runat="server" ControlToValidate="TxBx_SIPAddress"
                                Display="None" SetFocusOnError="True" ValidationGroup="update"></asp:RequiredFieldValidator>
                           <%-- <asp:RegularExpressionValidator ID="REV_TxBx_SIPAddress" runat="server" ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>"
                                ErrorMessage='<%$Resources:Content, InvalidSIPAddress%>' ControlToValidate="TxBx_SIPAddress"
                                Display="None" SetFocusOnError="true" ValidationGroup="update"></asp:RegularExpressionValidator>--%>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row" id="TR_LineURI" runat="server">
                <div class="col-sm-3 col-xs-12 row-label">
                    <asp:Literal ID="Literal26" runat="server" Text='<%$ Resources:Content,DEV1238%>' />:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <asp:DropDownList ID="Ddl_LineURIs" runat="server">
                        </asp:DropDownList>
                    </div>
                </div>
                <div class="col-sm-1 col-xs-12">
                    <div class="form-group form-float">
                        <div class="form-line">
                            <asp:TextBox ID="TxBx_Ext" runat="server" MaxLength="5"></asp:TextBox>
                            <asp:Label CssClass="form-label" ID="Ltr_Ext" runat="server" Text='<%$ Resources:Content,GN0000220%>'></asp:Label>
                        </div>
                    </div>
                </div>
                <div class="col-sm-3 col-xs-12">
                    <div class="form-group">
                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect" style="width: 30px;" data-trigger="focus" data-container="body" data-toggle="popover"
                            data-placement="left" title="Line URIs" data-content="All Line URIs may not be visible here due to the DID Specification of current subscription. Please check all Line URIs in Phone Numbers tab.">
                            <i class="material-icons">info</i>
                        </button>
                    </div>
                    <asp:RegularExpressionValidator ID="REV_TxBx_Ext" runat="server" Display="None" SetFocusOnError="true"
                        Text="<%$ Resources:Content,SMI698%>" ForeColor="Red" ControlToValidate="TxBx_Ext" ValidationGroup="update"
                        ValidationExpression="^[0-9]+$"></asp:RegularExpressionValidator>
                </div>
            </div>

            <div class="row" id="Tr_PrivateLine" runat="server">
                <div class="col-sm-3 col-xs-12 row-label">
                    <asp:Literal ID="Literal31" runat="server" Text='<%$ Resources:Content,Lync380%>' EnableViewState="false" />:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <asp:DropDownList ID="Ddl_PrivateLine" runat="server"></asp:DropDownList>
                    </div>
                </div>
                
                <div class="col-sm-3 col-xs-12">
                    <button type="button" class="btn btn-info btn-block btn-xs waves-effect" style="width: 30px;" data-trigger="focus" data-container="body" data-toggle="popover"
                        data-placement="left" title="Private Lines" data-content="All Line URIs may not be visible here due to the DID Specification of current subscription. Please check all Line URIs in Phone Numbers tab.">
                        <i class="material-icons">info</i>
                    </button>
                </div>
            </div>

            <div class="row">
                <div class="col-sm-3 col-xs-12 row-label">
                    <asp:Literal ID="Literal3" runat="server" Text='<%$ Resources:Content,Dev1233%>' EnableViewState="false" />:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <asp:CheckBox ID="Cb_AudioVideoDisabled" Text="&nbsp;" runat="server" />
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-sm-3 col-xs-12 row-label">
                    <asp:Literal ID="Literal5" runat="server" Text='<%$ Resources:Content,EVEnabled%>' EnableViewState="false" />:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <asp:CheckBox ID="Cb_EnterpriseVoiceEnabled" Text="&nbsp;" runat="server" />
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-xs-12">
                    <asp:Button ID="Btn_Update" CssClass="btn btn-primary waves-effect btnAction" runat="server" ValidationGroup="update" Text="<%$ Resources:Content,GN0000654%>" />
                    <asp:Button ID="Btn_CancelUpdate" CausesValidation="false" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000572%>" />
                     <asp:ValidationSummary ID="VS" runat="server" ShowMessageBox="true" ShowSummary="false"
                            ValidationGroup="update" HeaderText="<%$ Resources:Content,EM000001%>" />
                </div>
            </div>
        </div>
    </div>
</div>
