<%@ control language="VB" autoeventwireup="false" inherits="RCC_CC_SecuredCredentials, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>


<script lang="javascript" type="text/javascript" src="/JS/fido2/helpers.js?<%# Helper.GetProductVersion() %>" defer></script>
<script type="text/javascript" src="/JS/sweetalert/js/swl.js?<%# Helper.GetProductVersion() %>" defer></script>
<link rel="stylesheet" href="/JS/sweetalert/css/swl.css" />
<script lang="javascript" type="text/javascript" src="/JS/fido2/passwordless.register.js?<%# Helper.GetProductVersion() %>" defer></script>
<%--<script lang="javascript" type="text/javascript" src="../../JS/fido2/instant.js" defer></script>--%>


<asp:UpdatePanel ID="Up_OpsMessage" runat="server" UpdateMode="Always">
    <ContentTemplate>
        <div id="div_operation_message" runat="server" visible="false"></div>
    </ContentTemplate>
</asp:UpdatePanel>
<div class="clearfix"></div>

<asp:Panel ID="Pnl_Listing" runat="server">

    <asp:Panel ID="Pnl_Operations" runat="server">
        <div class="row">
            <div class="col-xs-12">
                <div class="card">
                    <div class="header">
                        <h3>
                            <%= Resources.Content.GN00001320%>                                                                                                                                 
                        </h3>
                    </div>
                    <div class="body">
                        <div class="clearfix">
                            <input type="hidden" id="HF_UserName" runat="server" name="username" />
                            <input type="hidden" id="HF_DisplayName" runat="server" name="displayName" />
                            <input type="hidden" id="HF_AccountType" runat="server" name="accountType" />
                            <input type="hidden" id="HF_AccountId" runat="server" name="accountId" />
                            <button id="btn-register-sec-creds" class="btn btn-primary waves-effect" onclick="handleRegisterSubmit(event)">Add</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>

    <div class="row">
        <div class="col-xs-12">
            <div class="row">
                <div class="col-xs-12">
                    <asp:Panel ID="Panel1" runat="server">
                        <asp:UpdatePanel ID="Up_Listing" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>

                                <asp:GridView ID="GV_Listing" runat="server" CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$Resources:Content,GN00001375%>"
                                    AutoGenerateColumns="false">

                                    <Columns>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000836 %>' HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                                            <ItemTemplate>
                                                <asp:Label ID="Lbl_Account" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,PublicKey %>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                            <ItemTemplate>
                                                <asp:Label ID="Lbl_PublicKey" runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,Platform %>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                            <ItemTemplate>
                                                <asp:Label ID="Lbl_Platform" runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="Lb_Delete" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$Resources:Content,GN0000278%>"></asp:LinkButton>
                                                <EM:ConfirmButtonExtender TargetControlID="Lb_Delete" ID="CBE_Delete" runat="server" ConfirmText="<%$Resources:Content,RemoveSecCredsConfirm%>">
                                                </EM:ConfirmButtonExtender>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>

                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </asp:Panel>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>
