Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 34 | PointedEar | 1 | <%@taglib uri="/struts-tags" prefix="s"%> |
| 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> |
||
| 3 | <c:set var="contextPath" value="${pageContext.request.contextPath}" /> |
||
| 4 | |||
| 5 | <html> |
||
| 6 | <head> |
||
| 7 | <title>Beziehung bearbeiten/löschen</title> |
||
| 8 | </head> |
||
| 9 | <body> |
||
| 10 | |||
| 11 | <h1>Liste der Beziehungen</h1> |
||
| 12 | |||
| 13 | <s:if test="relationshipList.size() == 0"> |
||
| 14 | <p>Keine Beziehung definiert</p> |
||
| 15 | </s:if> |
||
| 16 | <s:else> |
||
| 17 | <table> |
||
| 18 | <thead> |
||
| 19 | <th>Begriff 1</th> |
||
| 20 | <th>Beziehung</th> |
||
| 21 | <th>Begriff 2</th> |
||
| 22 | </thead> |
||
| 23 | <tbody> |
||
| 24 | <s:iterator value="relationshipList" status="stat"> |
||
| 25 | <tr> |
||
| 26 | <td><s:property value="termFrom.name" /></td> |
||
| 27 | <td><s:property value="relationshipType.nameFrom" /></td> |
||
| 28 | <td><s:property value="termTo.name" /></td> |
||
| 29 | |||
| 30 | <td><s:url id="editURL" action="editRelationship"> |
||
| 31 | <s:param name="id" value="%{objectId}"></s:param> |
||
| 32 | </s:url> <s:a href="%{editURL}"> |
||
| 33 | <img src="${contextPath}/resources/icons/page_white_edit.png" alt="edit" /> |
||
| 34 | </s:a></td> |
||
| 35 | |||
| 36 | <td><s:url id="deleteURL" action="deleteRelationship"> |
||
| 37 | <s:param name="id" value="%{objectId}"></s:param> |
||
| 38 | </s:url> <s:a href="%{deleteURL}"> |
||
| 39 | <img src="${contextPath}/resources/icons/delete.png" alt="delete" /> |
||
| 40 | </s:a></td> |
||
| 41 | </tr> |
||
| 42 | </s:iterator> |
||
| 43 | </tbody> |
||
| 44 | </table> |
||
| 45 | </s:else> |
||
| 46 | </body> |
||
| 47 | </html> |