<?xml version="1.0" encoding="UTF-8" ?>
<Module>
    <ModulePrefs title="Publisher" description="Publisher">
        <Require feature="pubsub-2"/>
        <Require feature="dynamic-height"/>
        <Require feature="setprefs"/>
    </ModulePrefs>
    <UserPref name="role" display_name="Gadet Role" required="true" />
    <Content type="html">
        <![CDATA[
        <head>

          <link rel="stylesheet" type="text/css" href="/portal/libs/font-wso2_1.0.0/css/font-wso2.min.css" />
          <link rel="stylesheet" type="text/css" href="/portal/libs/theme-wso2_1.0/css/theme-wso2.css" />
          <link rel="stylesheet" type="text/css" href="../IsAnalytics_Gadget_Commons/css/gadget.css" />
          <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />

          <script src="../IsAnalytics_Gadget_Commons/js/jquery-1.10.2.js"></script>
          <script src="../IsAnalytics_Gadget_Commons/js/moment.min.js"></script>
          <script src="../IsAnalytics_Gadget_Commons/js/gadget-utils.js"></script>

          <!-- Include VizGrammar -->
          <script src="../IsAnalytics_Gadget_Commons/js/d3.min.js"></script>
          <script src="../IsAnalytics_Gadget_Commons/js/vega.js"></script>
          <script src="../IsAnalytics_Gadget_Commons/js/VizGrammar.min.js"></script>


          <link rel="stylesheet" type="text/css" href="css/custom.css" />
          <script src="js/main.js"></script>

        </head>
        <body>
            <div class="row row-eq-height add-padding-2x" style="height:100%;">
                <div class="col-4 add-padding-2x">
                    <div class="thumbnail">
                        <div class="caption">
                            <h3>Overall Login Attempts</h3>
                            <p>Analyze overall login attempts made via WSO2 Identity Server.<br/>
                            This includes information about overall flows of authentication took place through Identity Server.
                            A collection of authentication steps is considered as an overall attempt </p>
                        </div>
                        <div>
                            <h5 style="text-align: center;">TOTAL LOGIN ATTEMPTS<span id="title"></span></h5>
                            <h4 id="totalCountOverall"></h4>
                            <div id="successPercentOverall"></div>
                            <div id="failedPercentOverall"></div>
                            <div id="donutDivOverall"></div>
                        </div>
                        <div id="overall" class="btn btn-default" role="button">See More &gt;&gt;</div>
                    </div>
                </div>
                <div class="col-4 add-padding-2x">
                    <div class="thumbnail">
                        <div class="caption">
                            <h3>Local Login Attempts</h3>
                            <p>Analyze local login attempts made via WSO2 Identity Server.<br/>
                            Local login attempts include all login attempts which are done through resident IDP.
                            These statistics will give an idea on the involvement of resident IDP in an authentication flow.</p>
                        </div>
                        <div>
                            <h5 style="text-align: center;">TOTAL LOGIN ATTEMPTS<span id="title"></span></h5>
                            <h4 id="totalCountLocal"></h4>
                            <div id="successPercentLocal"></div>
                            <div id="failedPercentLocal"></div>
                            <div id="donutDivLocal"></div>
                        </div>
                        <div id="local" class="btn btn-default" role="button">See More &gt;&gt;</div>
                    </div>
                </div>
                <div class="col-4 add-padding-2x">
                    <div class="thumbnail">
                    <div class="caption">
                        <h3>Federated Login Attempts</h3>
                        <p>Analyze federated login attempts made via WSO2 Identity Server.<br/>
                        This will give an idea about the authentication steps took place via federated identity providers.</p>
                    </div>
                    <div>
                        <h5 style="text-align: center;">TOTAL LOGIN ATTEMPTS<span id="title"></span></h5>
                        <h4 id="totalCountFederated"></h4>
                        <div id="successPercentFederated"></div>
                        <div id="failedPercentFederated"></div>
                        <div id="donutDivFederated"></div>
                    </div>
                    <div id="federated" class="btn btn-default" role="button">See More &gt;&gt;</div>
                </div>
		  </div>
        </body>
        ]]>
    </Content>
</Module>