Strange template syntax error...

Liam W

in memoriam 1998-2020
I'm working on a custom addon for someone, but I'm getting a syntax error when trying to save this template, on line 29 (the closing </xen:foreach> tag):

HTML:
<xen:title>{xen:phrase liam_banList_banList}</xen:title>

<xen:navigation>
    <xen:breadcrumb href="{xen:link full:members}">{xen:phrase members}</xen:breadcrumb>
</xen:navigation>

<xen:require css="member_view.css" />

<div class="tempBanList">
    <table class="dataTable" style="table-layout: fixed">
        <tr class="dataRow">
            <th class="bannedUser">{xen:phrase liam_banList_bannedUser}</th>
            <xen:if is="{$visitor.is_staff}"><th class="banningUser">{xen:phrase liam_banList_banningUser}</th></xen:if>
            <th class="banningDate">{xen:phrase liam_banList_banningDate}</th>
            <th class="banPeriod">{xen:phrase liam_banList_banPeriod}</th>
            <th class="banTimeRem">{xen:phrase liam_banList_timeRemaining}</th>
            <th class="banReason">{xen:phrase liam_banList_banReason}</th>
        </tr>
        <xen:foreach loop="$tempBans" value="$tempBan">
            <tr class="dataRow">
                <td class="bannedUser"><xen:username user="{$tempBan.user}"/></td>
                <xen:if is="{$visitor.is_staff}"><td class="banningUser"><xen:username user="{$tempBan.banning_user}"/></td></xen:if>
                <td class="banningDate"><xen:datetime date="{$tempBan.ban_date}"></td>
                <td class="banPeriod">{$tempBan.periodPhrase}</td>
                <td class="banTimeRem">{$tempBan.remainingPhrase}</td>
                <td class="banReason">{$tempBan.user_reason}</td>
            </tr>
        </xen:foreach>
    </table>
</div>

Any ideas? It's got me stumped...

Liam
 
Missing closing / on the xen datatime tag..

this.....
HTML:
<xen:datetime date="{$tempBan.ban_date}">

needs to be this....
HTML:
<xen:datetime date="{$tempBan.ban_date}" />
 
Back
Top Bottom