Subversion Repositories WebE

Rev

Rev 34 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 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>Begriff bearbeiten/l&ouml;schen</title>
8
  </head>
9
  <body>
10
 
11
  <h1>Liste der Begriffe</h1>
12
 
13
  <s:if test="termList.size() == 0">
14
    <p>Keine Begriffe eingegeben</p>
15
  </s:if>
16
  <s:else>
17
    <table>
18
      	<tr>
19
      		<th>Begriff</th>
20
      	</tr>
21
      <s:iterator value="termList" status="stat">
22
      	<tr>
23
      		<td><s:property value="name" /></td>
24
 
25
      		<td><s:url id="editURL" action="editTerm">
26
      			<s:param name="id" value="%{objectId}"></s:param>
27
      		</s:url> <s:a href="%{editURL}">
28
      			<img src="${contextPath}/resources/icons/page_white_edit.png" alt="edit" />
29
      		</s:a></td>
30
 
31
          <td><s:url id="deleteURL" action="deleteTerm">
32
            <s:param name="id" value="%{id}"></s:param>
33
          </s:url> <s:a href="%{deleteURL}">
34
            <img src="${contextPath}/resources/icons/delete.png" alt="delete" />
35
          </s:a></td>
36
      	</tr>
37
      </s:iterator>
38
    </table>
39
  </s:else>
40
  </body>
41
</html>