Subversion Repositories WebE

Rev

Rev 35 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35 Rev 37
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
    <s:if test="edit">
8
    <title>Begriff bearbeiten</title>
8
      <title>Begriff bearbeiten</title>
9
  </s:if>
9
    </s:if>
10
  <s:else>
10
    <s:else>
11
    <title>Begriffe anzeigen/bearbeiten</title>
11
      <title>Begriffe anzeigen/bearbeiten</title>
12
  </s:else>
12
    </s:else>
13
  </head>
13
  </head>
14
  <body>
14
  <body>  
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">
-
 
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">
15
    <s:if test="edit">
39
      <s:submit type="button"><img src="${contextPath}/resources/icons/tick.png" alt="" />
-
 
40
        Umbenennen</s:submit>
16
      <h1>Begriff bearbeiten</h1>
41
    </s:if>
17
    </s:if>
42
    <s:else>
18
    <s:else>
43
      <s:submit type="button"><img src="${contextPath}/resources/icons/add.png" alt="" />
-
 
44
        Hinzuf&uuml;gen
19
      <h1>Begriffe anzeigen/bearbeiten</h1>
45
      </s:submit>
-
 
46
    </s:else>
20
    </s:else>
-
 
21
    
-
 
22
    <s:if test="added">
-
 
23
      <p>Der Begriff <b><s:text name="savedTerm.name"/></b> wurde hinzugef&uuml;gt.</p>  
-
 
24
    </s:if>
-
 
25
    
-
 
26
    <s:if test="edit">
-
 
27
      <h2>Dieser Begriff</h2>
-
 
28
    </s:if>
-
 
29
    <s:else>
-
 
30
      <h2>Neuer Begriff</h2>
-
 
31
    </s:else>
-
 
32
    
-
 
33
    <s:form action="saveTerm">
-
 
34
      <s:hidden name="edit" />
-
 
35
      <s:hidden name="term.objectId" />
-
 
36
      <s:textfield name="term.name" label="Name" required="true" />
-
 
37
      <s:textarea name="comment" label="Aenderungskommentar (optional)" />
-
 
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>
47
    </s:form>
-
 
48
    
-
 
49
    <s:if test="edit">
-
 
50
      <h3>Beziehungen</h3>
-
 
51
      
-
 
52
      <s:if test="term.relationshipsForTermFrom.size() == 0 && term.relationshipsForTermTo.size() == 0">
-
 
53
        <p>Dieser Begriff steht mit keinem anderen in Beziehung.</p>
-
 
54
        
-
 
55
      </s:if>
-
 
56
      <s:else>
-
 
57
        <p>Dieser Begriff steht zur Zeit in folgenden Beziehungen:</p>
-
 
58
        
-
 
59
        <table>
-
 
60
          <thead>
-
 
61
            <th>Begriff 1</th>
-
 
62
            <th>Beziehungstyp</th>
-
 
63
            <th>Begriff 2</th>      
-
 
64
          </thead>
-
 
65
          <tbody>
-
 
66
            <s:iterator value="term.relationshipsForTermFrom">
-
 
67
              <tr>
-
 
68
                <td><s:property value="termFrom.name" /></td>
-
 
69
                <td><s:property value="relationshipType.nameFrom" /></td>
-
 
70
                <td><s:url id="term1URL" action="editTerm">
-
 
71
                    <s:param name="id" value="%{termTo.objectId}"></s:param>
-
 
72
                  </s:url><s:a href="%{term1URL}"><s:property value="termTo.name" /></s:a></td>
-
 
73
                <td><s:url id="editURL" action="editRelationship">
-
 
74
                    <s:param name="id" value="%{objectId}" />
-
 
75
                  </s:url><s:a href="%{editURL}"><img
-
 
76
                    src="${contextPath}/resources/icons/page_white_edit.png"
-
 
77
                    alt="Bearbeiten" title="Bearbeiten" />
-
 
78
                </s:a></td>
-
 
79
                
-
 
80
                <td><s:url id="deleteURL" action="deleteRelationship">
-
 
81
                    <s:param name="id" value="%{objectId}"></s:param>
-
 
82
                  </s:url><s:a href="%{deleteURL}"
-
 
83
                    onclick="return window.confirm('Beziehung loeschen?')"><img
-
 
84
                    src="${contextPath}/resources/icons/delete.png"
-
 
85
                    alt="L&ouml;schen" title="L&ouml;schen""/></s:a></td>
-
 
86
              </tr>
-
 
87
            </s:iterator>    
-
 
88
            <s:iterator value="term.relationshipsForTermTo">
-
 
89
              <tr>
-
 
90
                <td><s:property value="termTo.name" /></td>
-
 
91
                <td><s:property value="relationshipType.nameTo" /></td>
-
 
92
                <td><s:url id="term2URL" action="editTerm">
-
 
93
                    <s:param name="id" value="%{termFrom.objectId}" />
-
 
94
                  </s:url><s:a href="%{term2URL}"><s:property value="termFrom.name" /></s:a></td>
-
 
95
                <td><s:url id="editURL" action="editRelationship">
-
 
96
                   <s:param name="id" value="%{objectId}"></s:param>
-
 
97
                  </s:url><s:a href="%{editURL}"><img
-
 
98
                  src="${contextPath}/resources/icons/page_white_edit.png"
-
 
99
                  alt="Bearbeiten" title="Bearbeiten" />
-
 
100
                </s:a></td>
-
 
101
                
-
 
102
                <td><s:url id="deleteURL" action="deleteRelationship">
-
 
103
                    <s:param name="id" value="%{objectId}"></s:param>
-
 
104
                  </s:url><s:a href="%{deleteURL}"
-
 
105
                  onclick="return window.confirm('Beziehung loeschen?')"><img
-
 
106
                  src="${contextPath}/resources/icons/delete.png"
-
 
107
                  alt="L&ouml;schen" title="L&ouml;schen" /></s:a></td>
-
 
108
              </tr>
-
 
109
            </s:iterator>
-
 
110
          </tbody>
-
 
111
        </table>
-
 
112
      </s:else>
48
  
113
  
-
 
114
      <h3>&Auml;nderungsprotokoll</h3>
49
  <s:if test="termList.size() == 0">
115
      <s:if test="term.object.history.size() == 0">
50
    <p>Keine Begriffe eingegeben</p>
116
        <p>Es sind keine &Auml;nderungen f&uuml;r diesen Begriff protokolliert.</p>
51
  </s:if>
117
      </s:if>
52
  <s:else>
118
      <s:else>
-
 
119
        <table>
-
 
120
          <thead>
-
 
121
            <th>Datum</th>
-
 
122
            <th>Benutzer</th>
-
 
123
            <th>Aktion</th>
-
 
124
            <th>Neuer Name</th>
-
 
125
            <th>Kommentar</th>
-
 
126
          </thead>
-
 
127
          <tbody>
-
 
128
            <s:iterator value="term.object.history" status="stat">
-
 
129
              <tr>
-
 
130
                <td><s:date name="date" format="yyyy-MM-dd hh:mm:ss" /></td>
-
 
131
                <td><s:property value="user.firstname" /> <s:property value="user.lastname"/></td>
-
 
132
                <td><s:property value="actionType.name" /></td>
-
 
133
                <td><s:property value="value" /></td>
-
 
134
                <td><s:property value="comment" /></td>
-
 
135
              </tr>
-
 
136
            </s:iterator>
-
 
137
          </tbody>
-
 
138
        </table>
-
 
139
      </s:else>
-
 
140
    </s:if>
-
 
141
    
53
    <h2>Gespeicherte Begriffe</h2>
142
    <h2>Gespeicherte Begriffe</h2>
54
    <table>
143
    <s:if test="termList.size() == 0">
55
        <s:iterator value="termList" status="stat">
144
      <p>Es wurden noch keine Begriffe eingegeben.</p>
56
        	<tr>
145
    </s:if>
57
        		<td><s:property value="name" /></td>
146
    <s:else>
58
            <td><s:url id="editURL" action="editTerm">
147
      <table>
59
              <s:param name="id" value="%{objectId}"></s:param>
-
 
60
            </s:url> <s:a href="%{editURL}">
148
        <tbody>
61
              <img src="${contextPath}/resources/icons/page_white_edit.png" alt="edit" />
149
          <s:iterator value="termList" status="stat">
62
            </s:a></td>
-
 
63
            
-
 
64
            <td><s:url id="deleteURL" action="deleteTerm">
150
            <s:url id="editURL" action="editTerm">
65
              <s:param name="id" value="%{objectId}"></s:param>
151
              <s:param name="id" value="%{objectId}"></s:param>
-
 
152
            </s:url>
-
 
153
          	<tr>
-
 
154
          		<td><s:a href="%{editURL}"><s:property value="name" /></s:a></td>
66
            </s:url> <s:a href="%{deleteURL}">
155
              <td><s:a href="%{editURL}"><img
-
 
156
                src="${contextPath}/resources/icons/page_white_edit.png"
-
 
157
                alt="Bearbeiten" title="Bearbeiten" /></s:a></td>
-
 
158
                
-
 
159
              <s:if test="false">            
-
 
160
                <td><s:url id="deleteURL" action="deleteTerm">
-
 
161
                  <s:param name="id" value="%{objectId}"></s:param>
-
 
162
                </s:url><s:a href="%{deleteURL}" onclick="return window.confirm('Begriff loeschen?')"><img
67
              <img src="${contextPath}/resources/icons/delete.png" alt="delete" />
163
                  src="${contextPath}/resources/icons/delete.png"
-
 
164
                  alt="L&ouml;schen" title="L&ouml;schen" /></s:a></td>
68
            </s:a></td>
165
              </s:if>
69
        	</tr>
166
          	</tr>
70
        </s:iterator>
167
          </s:iterator>
71
      </tbody>
168
        </tbody>
72
    </table>
169
      </table>
73
  </s:else>
170
    </s:else>
74
  </body>
171
  </body>
75
</html>
172
</html>
76
173