/upstream/templates/admin/people/view.tmpl
Type: /type/template
body: value: $def with (person, input={}, errors={})

$ _x = ctx.setdefault('bodyid', 'admin')
$ _x = ctx.setdefault('usergroup', 'admin')

$var title: [Admin Center] $person.displayname

<div id="contentHead">
    <h1><a href="/admin/">$_("Admin")</a> / <a href="/admin/people/">$_("People")</a> / 
    $person.displayname</h1>
</div>

<style type="text/css">
span.invalid {
    padding-left: 20px;
    float: right;
}
</style>

<div id="contentBody">
    <table id="adminHistory" style="clear: both;">
    <tbody>
        <tr>
            <td>$_("Email Address:")</td>
            <td>
                <form method="POST" name="form-email" id="form-email" class="validate">
                    <input type="text" name="email" id="email" class="email" value="$input.get('email', person.get_email())"/>
                    <button type="submit" name="action" value="update_email">Change</button>
                    <span class="invalid" htmlfor="email" generated="true">$errors.get("email")</span>
                </form>
            </td>
        </tr>
        <tr>
            <td>$_("Reset Password")</td>
            <td>
                <form method="POST" name="form-password" id="form-password">
                    <input type="text" name="password" id="password" class="email" value="$input.get('password')"/>
                    <button type="submit" name="action" value="update_password">Change</button>
                    <span class="invalid" htmlfor="password" generated="true">$errors.get("password")</span>
                </form>
            </td>
        </tr>
        <tr>
            <td>$_("IP Address")</td>
            <td>
                $ v = person.get_creation_info()                
                <a href="/admin/ip/$v.ip">$v.ip</a> - <a href="$homepath()$person.key" style="color: #900; text-decoration: none;">profile</a>
            </td>
        </tr>
        <tr>
            <td>$_("# Edits")</td>
            <td>$person.get_edit_count()</td>
        </tr>
        <tr>
            <td>$_("Member Since:")</td>
            <td>$datestr(person.created)</td>
        </tr>
        <tr>
            <td>$_("Last Login:")</td>
            <td>x months ago, xx xx xx</td>
        </tr>
    </tbody>
    </table>

<h2>$_("Edit History")</h2>
$:render_template("admin/history", person.get_edit_history())


<button class="delete" type="submit" value="$_("Delete Account")" name="_delete" title="$_("Delete Account")" style="float: right; margin-bottom: 20px;">$_("Delete Account")</button>

</div>
plugin: admin
m: edit