1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-11-03 04:17:17 -05:00
icecast-server/admin/ui/confirmdeleteuser.xsl

25 lines
1.5 KiB
XML
Raw Normal View History

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xt="http://www.jclark.com/xt" extension-element-prefixes="xt" exclude-result-prefixes="xt">
<!-- Import include files -->
<xsl:include href="includes/confirm.xsl"/>
2020-10-09 12:28:20 -04:00
<xsl:variable name="title">Confirm deleting user</xsl:variable>
<xsl:template name="content">
<xsl:for-each select="/report/incident">
<xsl:variable name="get-parameters" select="resource[@type='parameter']/value[@member='get-parameters']" />
<xsl:variable name="id" select="$get-parameters/value[@member='id']" />
<xsl:call-template name="confirm">
<xsl:with-param name="text">Please confirm deleting user <code><xsl:value-of select="$get-parameters/value[@member='username']/@value" /></code>.</xsl:with-param>
<xsl:with-param name="action-cancel">/admin/manageauth.xsl</xsl:with-param>
<xsl:with-param name="action-confirm">/admin/manageauth.xsl</xsl:with-param>
<xsl:with-param name="params-cancel">
<xsl:copy-of select="$id" />
</xsl:with-param>
<xsl:with-param name="params-confirm">
<xsl:copy-of select="$get-parameters/value[@member='username']" />
<xsl:copy-of select="$id" />
<value member="action" value="delete" />
</xsl:with-param>
</xsl:call-template>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>