Rev 35 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 35 | Rev 37 | ||
---|---|---|---|
Line 10... | Line 10... | ||
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"> |
15 | <s:if test="edit"> |
17 | <h1>Begriff bearbeiten</h1> |
16 | <h1>Begriff bearbeiten</h1> |
18 | </s:if> |
17 | </s:if> |
19 | <s:else> |
18 | <s:else> |
20 | <h1>Begriffe anzeigen/bearbeiten</h1> |
19 | <h1>Begriffe anzeigen/bearbeiten</h1> |
Line 32... | Line 31... | ||
32 | </s:else> |
31 | </s:else> |
33 | 32 | ||
34 | <s:form action="saveTerm"> |
33 | <s:form action="saveTerm"> |
35 | <s:hidden name="edit" /> |
34 | <s:hidden name="edit" /> |
36 | <s:hidden name="term.objectId" /> |
35 | <s:hidden name="term.objectId" /> |
37 | <s:textfield name="term.name" label="Name" /> |
36 | <s:textfield name="term.name" label="Name" required="true" /> |
- | 37 | <s:textarea name="comment" label="Aenderungskommentar (optional)" /> |
|
38 | <s:if test="edit"> |
38 | <s:if test="edit"> |
39 | <s:submit type="button"><img src="${contextPath}/resources/icons/tick.png" alt="" /> |
39 | <s:submit type="button"><img src="${contextPath}/resources/icons/tick.png" alt="" /> |
40 | Umbenennen</s:submit> |
40 | Umbenennen</s:submit> |
41 | </s:if> |
41 | </s:if> |
42 | <s:else> |
42 | <s:else> |
Line 44... | Line 44... | ||
44 | Hinzufügen |
44 | Hinzufügen |
45 | </s:submit> |
45 | </s:submit> |
46 | </s:else> |
46 | </s:else> |
47 | </s:form> |
47 | </s:form> |
48 | 48 | ||
49 | <s:if test="termList.size() == 0"> |
49 | <s:if test="edit"> |
50 | <p>Keine Begriffe eingegeben</p> |
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 | ||
51 | </s:if> |
55 | </s:if> |
52 | <s:else> |
56 | <s:else> |
53 | <h2>Gespeicherte Begriffe</h2> |
57 | <p>Dieser Begriff steht zur Zeit in folgenden Beziehungen:</p> |
- | 58 | ||
54 | <table> |
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öschen" title="Löschen""/></s:a></td> |
|
- | 86 | </tr> |
|
- | 87 | </s:iterator> |
|
55 | <s:iterator value="termList" status="stat"> |
88 | <s:iterator value="term.relationshipsForTermTo"> |
56 | <tr> |
89 | <tr> |
57 | <td><s:property value="name" /></td> |
90 | <td><s:property value="termTo.name" /></td> |
- | 91 | <td><s:property value="relationshipType.nameTo" /></td> |
|
58 | <td><s:url id="editURL" action="editTerm"> |
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"> |
|
59 | <s:param name="id" value="%{objectId}"></s:param> |
96 | <s:param name="id" value="%{objectId}"></s:param> |
60 | </s:url> <s:a href="%{editURL}"> |
97 | </s:url><s:a href="%{editURL}"><img |
61 | <img src="${contextPath}/resources/icons/page_white_edit.png" alt="edit" /> |
98 | src="${contextPath}/resources/icons/page_white_edit.png" |
- | 99 | alt="Bearbeiten" title="Bearbeiten" /> |
|
62 | </s:a></td> |
100 | </s:a></td> |
63 | 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öschen" title="Löschen" /></s:a></td> |
|
- | 108 | </tr> |
|
- | 109 | </s:iterator> |
|
- | 110 | </tbody> |
|
- | 111 | </table> |
|
- | 112 | </s:else> |
|
- | 113 | ||
- | 114 | <h3>Änderungsprotokoll</h3> |
|
- | 115 | <s:if test="term.object.history.size() == 0"> |
|
- | 116 | <p>Es sind keine Änderungen für diesen Begriff protokolliert.</p> |
|
- | 117 | </s:if> |
|
- | 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 | ||
- | 142 | <h2>Gespeicherte Begriffe</h2> |
|
- | 143 | <s:if test="termList.size() == 0"> |
|
- | 144 | <p>Es wurden noch keine Begriffe eingegeben.</p> |
|
- | 145 | </s:if> |
|
- | 146 | <s:else> |
|
- | 147 | <table> |
|
- | 148 | <tbody> |
|
- | 149 | <s:iterator value="termList" status="stat"> |
|
- | 150 | <s:url id="editURL" action="editTerm"> |
|
- | 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> |
|
- | 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"> |
|
64 | <td><s:url id="deleteURL" action="deleteTerm"> |
160 | <td><s:url id="deleteURL" action="deleteTerm"> |
65 | <s:param name="id" value="%{objectId}"></s:param> |
161 | <s:param name="id" value="%{objectId}"></s:param> |
66 | </s:url> <s:a href="%{deleteURL}"> |
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öschen" title="Lö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> |