<mt:setvarblock name="page_title"><__trans phrase="Manage Users"></mt:setvarblock>
<mt:setvarblock name="system_msg">
    <mt:if name="saved_status_disabled">
        <mtapp:statusmsg
            id="saved-status-disabled"
            class="success">
            <__trans phrase="You have successfully disabled the selected user(s).">
        </mtapp:statusmsg>
    </mt:if>
    <mt:if name="saved_status_enabled">
        <mtapp:statusmsg
            id="saved-status-disabled"
            class="success">
            <__trans phrase="You have successfully enabled the selected user(s).">
        </mtapp:statusmsg>
    </mt:if>
    <mt:if name="saved_deleted">
        <mtapp:statusmsg
            id="saved-deleted"
            class="success">
            <__trans phrase="You have successfully deleted the user(s) from the Movable Type system.">
            <mt:if name="author_ldap_found">
            <br /><__trans phrase="The deleted user(s) still exist in the external directory. As such, they will still be able to login to Movable Type Advanced.">
            </mt:if>
        </mtapp:statusmsg>
    </mt:if>
    <mt:if name="synchronized">
        <mtapp:statusmsg
            id="synchronized"
            class="success">
            <__trans phrase="You have successfully synchronized users' information with the external directory.">
        </mtapp:statusmsg>
    </mt:if>
    <mt:if name="unchanged">
        <mtapp:statusmsg
            id="unchanged"
            class="success">
            <__trans phrase="Some ([_1]) of the selected user(s) could not be re-enabled because they were no longer found in the external directory." params="<mt:var name="unchanged">" escape="html">
        </mtapp:statusmsg>
    </mt:if>
    <mt:if name="error">
        <mtapp:statusmsg
            id="error"
            class="error">
            <__trans phrase="An error occured during synchronization.  See the <a href='[_1]'>activity log</a> for detailed information." params="<mt:var name="script_url">?__mode=view_log">
        </mtapp:statusmsg>
    </mt:if>
</mt:setvarblock>

<mt:setvarblock name="related_content">
<mt:if name="user_view">
    <mt:unless name="blog_id">
        <mtapp:widget
            id="user-properties"
            label="<__trans phrase="User properties">">
            <mt:include name="include/users_content_nav.tmpl">
        </mtapp:widget>
    </mt:unless>
</mt:if>

<mt:if tag="mtapp:listfilters">
    <mtapp:widget
        id="quickfilters"
        label="<__trans phrase="Quickfilters">">
        <$mtapp:listfilters$>
    </mtapp:widget>
</mt:if>
    <$mtapp:pageactions from="list_author"$>
</mt:setvarblock>

<mt:setvarblock name="html_body_footer">
    <$mt:include name="include/display_options.tmpl"$>
</mt:setvarblock>

<mt:setvarblock name="action_buttons">
    <mt:if name="is_administrator">
    <button
        accesskey="e"
        title="<__trans phrase="Enable selected users (e)">"
        class="mt-enable-users"
        ><__trans phrase="_USER_ENABLE" escape="js"></button>
    <button
        accesskey="d"
        title="<__trans phrase="Disable selected users (d)">"
        class="mt-disable-users"
        ><__trans phrase="_USER_DISABLE" escape="js"></button>
    </mt:if>
</mt:setvarblock>
<mt:setvarblock name="html_head" append="1">
<script type="text/javascript">
/* <![CDATA[ */
function enableFilterButton() {
    jQuery('#filter-button').css('display', 'inline');
}

function toggleFilter() {
    jQuery('#filter-active').toggle();
    jQuery('#filter-select').toggle();
}

function setFilterCol(choice) {
    if (!jQuery('#filter-select').length) return;
    if (choice != 'none') {
        jQuery('#filter-select span').show().children('span').hide();
        jQuery('#filter-'+choice).show().addClass('filter-'+choice);
        jQuery('#filter-col').val(choice);
        jQuery('#filter-text-col').html('<strong>'+jQuery('#filter-col option:selected').text()+'</strong>');
    }
}

function init() {
    setFilterCol(<mt:if name="filter">'<mt:var name="filter" escape="js">'<mt:else>'none'</mt:if>);
    <mt:if name="filter">setFilterVal('<mt:var name="filter_val" escape="js">');</mt:if>
}
/* ]]> */
</script>
</mt:setvarblock>
<mt:setvarblock name="list_filter_form">
    <div class="listing-filter">
        <div class="filter">
            <div id="filter-title">
                <mt:if name="filter_label">
                    <__trans phrase="Showing only: [_1]" params="<$mt:var name="filter_label"$>">
                    <a href="<mt:var name="script_url">?__mode=list_author<mt:if name="blog_id">&amp;blog_id=<mt:var name="blog_id"></mt:if>">[ <__trans phrase="Remove filter"> ]</a>
                <mt:else>
                    <__trans phrase="Showing All Users">
                </mt:if>
            </div>
        </div>
    </div>
</mt:setvarblock>
<mt:include name="include/header.tmpl">
<$mt:var name="list_filter_form"$>
<$mt:include name="include/author_table.tmpl"$>
<mt:setvarblock name="jq_js_include" append="1">
    init();
    jQuery.mtCheckbox();
</mt:setvarblock>
<mt:include name="include/footer.tmpl">
