Rev 34 | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 26 | moos | 1 | <%@taglib uri="/struts-tags" prefix="s"%> |
| 37 | PointedEar | 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> |
| 30 | moos | 3 | <c:set var="contextPath" value="${pageContext.request.contextPath}" /> |
| 4 | |||
| 26 | moos | 5 | <html> |
| 37 | PointedEar | 6 | <head> |
| 7 | <s:if test="edit"> |
||
| 8 | <title>Beziehungstyp bearbeiten</title> |
||
| 9 | </s:if> |
||
| 10 | <s:else> |
||
| 11 | <title>Beziehungstypen verwalten</title> |
||
| 12 | </s:else> |
||
| 13 | </head> |
||
| 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> |
||
| 21 | |||
| 22 | <s:if test="edit"> |
||
| 23 | <h2>Dieser Beziehungstyp</h2> |
||
| 24 | </s:if> |
||
| 25 | <s:else> |
||
| 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. "ist Sohn von")" |
||
| 33 | /> |
||
| 34 | <s:textfield name="relType.nameTo" |
||
| 35 | label="Bezeichnung A <-- B (z.B. "ist Vater von")" |
||
| 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ügen |
||
| 45 | </s:submit> |
||
| 46 | </s:else> |
||
| 47 | </s:form> |
||
| 48 | |||
| 49 | <h2>Definierte Beziehungstypen</h2> |
||
| 50 | <s:if test="relTypeList.size() == 0"> |
||
| 51 | <p>Keine Beziehungstypen gefunden</p> |
||
| 52 | </s:if> |
||
| 53 | <s:else> |
||
| 54 | <table> |
||
| 55 | <tr> |
||
| 56 | <th>A → B</th> |
||
| 57 | <th>A ← B</th> |
||
| 58 | </tr> |
||
| 59 | <s:iterator value="relTypeList" status="stat"> |
||
| 60 | <tr> |
||
| 61 | <td><s:property value="nameFrom" /></td> |
||
| 62 | <td><s:property value="nameTo" /></td> |
||
| 63 | |||
| 64 | <td><s:url id="editURL" action="editRelType"> |
||
| 65 | <s:param name="id" value="%{id}"></s:param> |
||
| 66 | </s:url> <s:a href="%{editURL}"> |
||
| 67 | <img |
||
| 68 | src="${contextPath}/resources/icons/page_white_edit.png" |
||
| 69 | alt="edit" |
||
| 70 | /> |
||
| 71 | </s:a> |
||
| 72 | </td> |
||
| 73 | |||
| 74 | <td><s:url id="deleteURL" action="deleteRelType"> |
||
| 75 | <s:param name="id" value="%{id}"></s:param> |
||
| 76 | </s:url> <s:a href="%{deleteURL}"> |
||
| 77 | <img src="${contextPath}/resources/icons/delete.png" |
||
| 78 | alt="delete" |
||
| 79 | /> |
||
| 80 | </s:a> |
||
| 81 | </td> |
||
| 82 | </tr> |
||
| 83 | </s:iterator> |
||
| 84 | </table> |
||
| 85 | </s:else> |
||
| 86 | </body> |
||
| 26 | moos | 87 | </html> |