Subversion Repositories WebE

Rev

Rev 35 | 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"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="contextPath" value="${pageContext.request.contextPath}" />

<html>
  <head>
  <title>Beziehung bearbeiten/l&ouml;schen</title>
  </head>
  <body>
  
  <h1>Liste der Beziehungen</h1>
  
  <s:if test="relationshipList.size() == 0">
    <p>Keine Beziehung definiert</p>
  </s:if>
  <s:else>
    <table>
        <thead>
          <th>Begriff 1</th>
          <th>Beziehung</th>
          <th>Begriff 2</th>
        </thead>
        <tbody>
          <s:iterator value="relationshipList" status="stat">
            <tr>
              <td><s:property value="termFrom.name" /></td>
              <td><s:property value="relationshipType.nameFrom" /></td>
              <td><s:property value="termTo.name" /></td>
  
              <td><s:url id="editURL" action="editRelationship">
                <s:param name="id" value="%{objectId}"></s:param>
              </s:url> <s:a href="%{editURL}">
                <img src="${contextPath}/resources/icons/page_white_edit.png" alt="edit" />
              </s:a></td>
              
              <td><s:url id="deleteURL" action="deleteRelationship">
                <s:param name="id" value="%{objectId}"></s:param>
              </s:url> <s:a href="%{deleteURL}">
                <img src="${contextPath}/resources/icons/delete.png" alt="delete" />
              </s:a></td>
            </tr>
          </s:iterator>
        </tbody>
      </table>
    </s:else>
  </body>
</html>