Subversion Repositories WebE

Rev

Rev 34 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34 Rev 35
Line 2... Line 2...
2
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
2
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
3
<c:set var="contextPath" value="${pageContext.request.contextPath}" />
3
<c:set var="contextPath" value="${pageContext.request.contextPath}" />
4
4
5
<html>
5
<html>
6
  <head>
6
  <head>
-
 
7
  <s:if test="edit">
7
  <title>Begriff bearbeiten/l&ouml;schen</title>
8
    <title>Begriff bearbeiten</title>
-
 
9
  </s:if>
-
 
10
  <s:else>
-
 
11
    <title>Begriffe anzeigen/bearbeiten</title>
-
 
12
  </s:else>
8
  </head>
13
  </head>
9
  <body>
14
  <body>
10
  
15
  
-
 
16
  <s:if test="edit">
-
 
17
    <h1>Begriff bearbeiten</h1>
-
 
18
  </s:if>
-
 
19
  <s:else>
-
 
20
    <h1>Begriffe anzeigen/bearbeiten</h1>
-
 
21
  </s:else>
-
 
22
  
-
 
23
  <s:if test="added">
-
 
24
    <p>Der Begriff <b><s:text name="savedTerm.name"/></b> wurde hinzugef&uuml;gt.</p>  
-
 
25
  </s:if>
-
 
26
  
-
 
27
  <s:if test="edit">
11
  <h1>Liste der Begriffe</h1>
28
    <h2>Dieser Begriff</h2>
-
 
29
  </s:if>
-
 
30
  <s:else>
-
 
31
    <h2>Neuer Begriff</h2>
-
 
32
  </s:else>
-
 
33
-
 
34
  <s:form action="saveTerm">
-
 
35
    <s:hidden name="edit" />
-
 
36
    <s:hidden name="term.objectId" />
-
 
37
    <s:textfield name="term.name" label="Name" />
-
 
38
    <s:if test="edit">
-
 
39
      <s:submit type="button"><img src="${contextPath}/resources/icons/tick.png" alt="" />
-
 
40
        Umbenennen</s:submit>
-
 
41
    </s:if>
-
 
42
    <s:else>
-
 
43
      <s:submit type="button"><img src="${contextPath}/resources/icons/add.png" alt="" />
-
 
44
        Hinzuf&uuml;gen
-
 
45
      </s:submit>
-
 
46
    </s:else>
-
 
47
  </s:form>
12
  
48
  
13
  <s:if test="termList.size() == 0">
49
  <s:if test="termList.size() == 0">
14
    <p>Keine Begriffe eingegeben</p>
50
    <p>Keine Begriffe eingegeben</p>
15
  </s:if>
51
  </s:if>
16
  <s:else>
52
  <s:else>
-
 
53
    <h2>Gespeicherte Begriffe</h2>
17
    <table>
54
    <table>
18
        <s:iterator value="termList" status="stat">
55
        <s:iterator value="termList" status="stat">
19
        	<tr>
56
        	<tr>
20
        		<td><s:property value="name" /></td>
57
        		<td><s:property value="name" /></td>
-
 
58
            <td><s:url id="editURL" action="editTerm">
-
 
59
              <s:param name="id" value="%{objectId}"></s:param>
-
 
60
            </s:url> <s:a href="%{editURL}">
-
 
61
              <img src="${contextPath}/resources/icons/page_white_edit.png" alt="edit" />
-
 
62
            </s:a></td>
-
 
63
            
-
 
64
            <td><s:url id="deleteURL" action="deleteTerm">
-
 
65
              <s:param name="id" value="%{objectId}"></s:param>
-
 
66
            </s:url> <s:a href="%{deleteURL}">
-
 
67
              <img src="${contextPath}/resources/icons/delete.png" alt="delete" />
-
 
68
            </s:a></td>
21
        	</tr>
69
        	</tr>
22
        </s:iterator>
70
        </s:iterator>
23
      </tbody>
71
      </tbody>
24
    </table>
72
    </table>
25
  </s:else>
73
  </s:else>