generated from jric11/baseProject
24 lines
2.3 KiB
XML
24 lines
2.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
|
<xsl:output method="html" encoding="UTF-8"/>
|
|
<xsl:param name="CSRF_TOKEN"/><xsl:param name="VERSION"/>
|
|
<xsl:template match="/">
|
|
<script src="js/userSummary.js?version={$VERSION}"></script>
|
|
<main class="container-fluid py-3 userSummary">
|
|
<h1><xsl:value-of select="//users/record/user_first_name"/> <xsl:text> </xsl:text><xsl:value-of select="//users/record/user_last_name"/></h1>
|
|
<input type="hidden" id="summary_user_serial" value="{//users/record/user_serial}"/>
|
|
<p><xsl:value-of select="//users/record/user_name"/> · <xsl:value-of select="//users/record/user_email"/></p>
|
|
<p>Email ownership: <xsl:choose><xsl:when test="string-length(//users/record/user_email_verified_at) > 0">Verified</xsl:when><xsl:otherwise>Unverified — send a password setup link to verify ownership before membership assignment.</xsl:otherwise></xsl:choose></p>
|
|
<p>Account: <xsl:value-of select="//users/record/user_status"/> · <xsl:value-of select="//users/record/user_role"/></p>
|
|
<button type="button" class="btn btn-primary me-2 summary-edit">Edit account</button>
|
|
<button type="button" class="btn btn-outline-primary me-2 summary-invite">Send password setup link</button>
|
|
<button type="button" class="btn btn-outline-primary summary-back">Back to users</button>
|
|
<h2 class="h4 mt-4">Administrative notes</h2><button type="button" class="btn btn-primary summary-add-note">Add note</button>
|
|
<div class="table-responsive"><table class="table"><thead><tr><th>Note</th><th>Updated</th><th>By</th><th>Action</th></tr></thead><tbody>
|
|
<xsl:for-each select="//notes/record"><tr><td style="white-space:pre-wrap"><xsl:value-of select="note_text"/></td><td><xsl:value-of select="note_timestamp_verbose"/></td><td><xsl:value-of select="note_origin"/></td><td><button type="button" class="btn btn-outline-primary summary-edit-note" data-note="{note_serial}">Edit note</button></td></tr></xsl:for-each>
|
|
</tbody></table></div>
|
|
<h2 class="h4 mt-4">Login history</h2><ul><xsl:for-each select="//loginactivity/record"><li><xsl:value-of select="journal_timestamp_verbose"/> · <xsl:value-of select="journal_ip"/></li></xsl:for-each></ul>
|
|
</main>
|
|
</xsl:template>
|
|
</xsl:stylesheet>
|