Subversion Repositories general

Rev

Rev 1029 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld"      prefix="bean"     %>
<%@ taglib uri="/WEB-INF/struts-logic.tld"     prefix="logic"    %>
<%@ taglib uri="/WEB-INF/struts-html.tld"      prefix="html"     %>
<%@ taglib uri="/WEB-INF/ak-backpath.tld"      prefix="backpath" %>
<%@ taglib uri="/WEB-INF/ak-strutsx.tld"       prefix="strutsx"  %>
<%@ taglib uri="/WEB-INF/hostadmiral-core.tld" prefix="core"     %>
<%@ taglib uri="/WEB-INF/hostadmiral-list.tld" prefix="list"     %>
<html>

<head>
        <meta http-equiv="expires" content="0">
        <title><bean:message key="ak.hostadmiral.page.user.list.title" /></title>
        <link rel="stylesheet" type="text/css" href="<strutsx:root />/style/general.css">
</head>

<body>

<h1><bean:message key="ak.hostadmiral.page.user.list.title" /></h1>

<strutsx:errorsIterator id="errors" />
<strutsx:notEmpty name="errors">
        <div class="error"><bean:message key="ak.hostadmiral.page.general.errors" />:
                <ul>
                <logic:iterate name="errors" id="error">
                        <li><strutsx:message name="error" property="key" valuesProperty="values" /></li>
                </logic:iterate>
                </ul>
        </div>
</strutsx:notEmpty>

<table border=1>
        <tr>
                <th><bean:message key="ak.hostadmiral.page.user.list.login" /></th>
                <th><bean:message key="ak.hostadmiral.page.user.list.boss" /></th>
                <th><bean:message key="ak.hostadmiral.page.user.list.superuser" /></th>
                <th><bean:message key="ak.hostadmiral.page.user.list.enabled" /></th>
                <th>&nbsp;</th>
                <th>&nbsp;</th>
        </tr>

<logic:iterate name="users" id="u">
        <tr>
                <td><bean:write name="u" property="login" /></td>
                <td>
                        <logic:present name="u" property="boss">
                                <bean:write name="u" property="boss.login" />
                        </logic:present>
                        <logic:notPresent name="u" property="boss">
                                &nbsp;
                        </logic:notPresent>
                </td>
                <td>
                        <logic:equal name="u" property="superuser" value="true">x</logic:equal>
                        <logic:notEqual name="u" property="superuser" value="true">&nbsp;</logic:notEqual>
                </td>
                <td>
                        <logic:equal name="u" property="enabled" value="true">x</logic:equal>
                        <logic:notEqual name="u" property="enabled" value="true">&nbsp;</logic:notEqual>
                </td>
                <td>
                        <core:editable name="u">
                                <backpath:link action="/user/edit" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.list.edit" /></backpath:link>
                        </core:editable>
                        <core:notEditable name="u">
                                <core:rights name="u" method="partEditableBy">
                                        <backpath:link action="/user/partedit" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.list.partedit" /></backpath:link>
                                </core:rights>
                                <core:noRights name="u" method="partEditableBy">
                                        <core:viewable name="u">
                                                <backpath:link action="/user/edit" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.list.view" /></backpath:link>
                                        </core:viewable>
                                        <core:notViewable name="u">
                                                &nbsp;
                                        </core:notViewable>
                                </core:noRights>
                        </core:notEditable>
                </td>
                <td>
                        <core:deleteable name="u">
                                <backpath:link action="/user/deleting" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.list.delete" /></backpath:link>
                        </core:deleteable>
                        <core:notDeleteable name="u">
                                &nbsp;
                        </core:notDeleteable>
                </td>
        </tr>
</logic:iterate>
</table>

<p>
        List size: <bean:write name="listInfo" property="size" />
        Page: <list:currentpage infoBean="listInfo" /> of <bean:write name="listInfo" property="totalPages" />
</p>
<p>
        <list:hasfirst infoBean="listInfo"><list:firstpage infoBean="listInfo">&lt;&lt;</list:firstpage></list:hasfirst>
        <list:nofirst infoBean="listInfo">&lt;&lt;</list:nofirst>

        <list:hasprev infoBean="listInfo"><list:prevpage infoBean="listInfo">&lt;</list:prevpage></list:hasprev>
        <list:noprev infoBean="listInfo">&lt;</list:noprev>

        <list:iterate infoBean="listInfo" max="20">
                <list:iscurrent>
                        <list:displaypage />
                </list:iscurrent>
                <list:notcurrent>
                        <list:pagelink><list:displaypage /></list:pagelink>
                </list:notcurrent>
        </list:iterate>

        <list:hasnext infoBean="listInfo"><list:nextpage infoBean="listInfo">&gt;</list:nextpage></list:hasnext>
        <list:nonext infoBean="listInfo">&gt;</list:nonext>

        <list:haslast infoBean="listInfo"><list:lastpage infoBean="listInfo">&gt;&gt;</list:lastpage></list:haslast>
        <list:nolast infoBean="listInfo">&gt;&gt;</list:nolast>
</p>

<logic:equal name="allowedToCreate" value="true">
        <backpath:link action="/user/edit"><bean:message key="ak.hostadmiral.page.user.list.add" /></backpath:link>
        <br>
</logic:equal>
<logic:equal name="mayViewAllLogins" value="true">
        <backpath:link action="/user/failedLogins"><bean:message key="ak.hostadmiral.page.user.list.logins.failed" /></backpath:link>
        <br>
</logic:equal>
<backpath:backlink><bean:message key="ak.hostadmiral.page.user.list.back" /></backpath:backlink>

<p>
        <bean:message key="ak.hostadmiral.page.general.version" />:
        <bean:write name="projectVersion" />
</p>

</body>

</html>