Subversion Repositories WebE

Rev

Rev 34 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34 Rev 37
1
<%@taglib uri="/struts-tags" prefix="s"%>
1
<%@taglib uri="/struts-tags" prefix="s"%>
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>Beziehungstypen bearbeiten</title>
8
      <title>Beziehungstyp bearbeiten</title>
-
 
9
    </s:if>
-
 
10
    <s:else>
-
 
11
      <title>Beziehungstypen verwalten</title>
-
 
12
    </s:else>
8
</head>
13
  </head>
9
<body>
14
  <body>  
-
 
15
    <s:if test="edit">
-
 
16
      <h1>Beziehungstyp bearbeiten</h1>
-
 
17
    </s:if>
-
 
18
    <s:else>
-
 
19
      <h1>Beziehungstypen verwalten</h1>
-
 
20
    </s:else>
10
21
    
-
 
22
    <s:if test="edit">
11
<h1>Beziehungstypen</h1>
23
      <h2>Dieser Beziehungstyp</h2>
-
 
24
    </s:if>
-
 
25
    <s:else>
12
<p>Hier k&ouml;nnen Sie die Beziehungstypen anpassen.</p>
26
      <h2>Neuer Beziehungstyp</h2>
-
 
27
    </s:else>    
-
 
28
  
-
 
29
    <s:form action="doRelTypeAdd">
-
 
30
      <s:hidden name="relType.id" />
-
 
31
      <s:textfield name="relType.nameFrom"
-
 
32
        label="Bezeichnung A --> B (z.B. &quot;ist Sohn von&quot;)"
-
 
33
      />
-
 
34
      <s:textfield name="relType.nameTo"
-
 
35
        label="Bezeichnung A <-- B (z.B. &quot;ist Vater von&quot;)"
-
 
36
      />
-
 
37
  
-
 
38
      <s:if test="edit">
-
 
39
        <s:submit type="button"><img src="${contextPath}/resources/icons/tick.png" alt="" />
-
 
40
          Speichern</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>
13
48
  
-
 
49
    <h2>Definierte Beziehungstypen</h2>
14
<s:if test="relTypeList.size() == 0">
50
    <s:if test="relTypeList.size() == 0">
15
<p>Keine Beziehungstypen gefunden</p>
51
      <p>Keine Beziehungstypen gefunden</p>
-
 
52
    </s:if>
16
</s:if><s:else>
53
    <s:else>
17
<table>
54
      <table>
18
	<tr>
55
        <tr>
19
		<th>Bezeichnung A =&lt; B</th>
56
          <th>A &rarr; B</th>
20
		<th>Bezeichnung B =&lt; A</th>
57
          <th>A &larr; B</th>
21
	</tr>
58
        </tr>
22
<s:iterator value="relTypeList" status="stat">
59
        <s:iterator value="relTypeList" status="stat">
23
	<tr>
60
          <tr>
24
		<td><s:property value="nameFrom" /></td>
61
            <td><s:property value="nameFrom" /></td>
25
		<td><s:property value="nameTo" /></td>
62
            <td><s:property value="nameTo" /></td>
26
		
63
  
27
		<td><s:url id="editURL" action="editRelType">
64
            <td><s:url id="editURL" action="editRelType">
28
			<s:param name="id" value="%{id}"></s:param>
65
                <s:param name="id" value="%{id}"></s:param>
29
		</s:url> <s:a href="%{editURL}">
66
              </s:url> <s:a href="%{editURL}">
-
 
67
                <img
30
			<img src="${contextPath}/resources/icons/page_white_edit.png" alt="edit" />
68
                  src="${contextPath}/resources/icons/page_white_edit.png"
-
 
69
                  alt="edit"
-
 
70
                />
-
 
71
              </s:a>
31
		</s:a></td>
72
            </td>
32
		
73
  
33
		<td><s:url id="deleteURL" action="deleteRelType">
74
            <td><s:url id="deleteURL" action="deleteRelType">
34
			<s:param name="id" value="%{id}"></s:param>
75
                <s:param name="id" value="%{id}"></s:param>
35
		</s:url> <s:a href="%{deleteURL}">
76
              </s:url> <s:a href="%{deleteURL}">
36
			<img src="${contextPath}/resources/icons/delete.png" alt="delete" />
77
                <img src="${contextPath}/resources/icons/delete.png"
-
 
78
                  alt="delete"
-
 
79
                />
-
 
80
              </s:a>
37
		</s:a></td>
81
            </td>
38
	</tr>
82
          </tr>
39
</s:iterator>
83
        </s:iterator>
40
</table>
84
      </table>
41
</s:else>
85
    </s:else>
42
</body>
86
  </body>
43
</html>
87
</html>
44
88