Subversion Repositories WebE

Rev

Rev 20 | Rev 30 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

1
<%@taglib uri="/struts-tags" prefix="s"%>
<html>
<head>
<title>User bearbeiten</title>
</head>
<body>

<h1>UserListe</h1>
<p>Die Liste:</p>

<s:if test="userList.size() == 0">
<p>Keine Benutzer gefunden</p>
</s:if>
<s:else>
<table>
        <tr>
                <th>Username</th>
                <th>Vorname</th>
                <th>Nachname</th>
                <th>Admin?</th>
        </tr>
<s:iterator value="userList" status="stat">
        <tr>
                <td><s:property value="username" /></td>
                <td><s:property value="firstname" /></td>
                <td><s:property value="lastname" /></td>
                <td><s:property value="admin" /></td>
                
                <td><s:url id="editURL" action="editUser">
                        <s:param name="id" value="%{id}"></s:param>
                </s:url> <s:a href="%{editURL}">Edit</s:a></td>
                <td><s:url id="deleteURL" action="deleteUser">
                        <s:param name="id" value="%{id}"></s:param>
                </s:url> <s:a href="%{deleteURL}">Delete</s:a></td>
        </tr>
</s:iterator>
</table>
</s:else>

</body>
</html>