<!--  $Id$  -->
<!--                                                                  -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

  <xsl:include href="/app/tools/support/templates/layout.xsl" />

  <xsl:template name="mainBody" >
    <xsl:call-template name="bodyTitle" >
      <xsl:with-param name="title">User Admin</xsl:with-param>
    </xsl:call-template>
    <xsl:call-template name="displayForm" />

    <xsl:if test="Params/msg = 'success'">
      <div id="body_message" style="margin-bottom: 10px; font-weight: bold; color: green">
        Update successful!
      </div>
    </xsl:if>

    <xsl:call-template name="displayList" />
  </xsl:template>

  <xsl:template name="displayForm" >
    <xsl:call-template name="collectionSearch" >
      <xsl:with-param name="listCommand">user_list</xsl:with-param>
    </xsl:call-template>
  </xsl:template>

  <xsl:template name="displayList" >
    <xsl:call-template name="collectionList" >
      <xsl:with-param name="columns" >
        <Column align="left" field="UserID">User ID</Column>
        <Column align="left" field="UserName">User Name</Column>
        <Column align="left" field="Email">Email</Column>
        <Column align="left" field="MFAType">MFA Type</Column>
      </xsl:with-param>
      <xsl:with-param name="editCommand">user_detail</xsl:with-param>
      <xsl:with-param name="resetCommand">reset_mfa</xsl:with-param>
      <xsl:with-param name="keyField">UserID</xsl:with-param>
    </xsl:call-template>
  </xsl:template>

</xsl:stylesheet>
