45 <c:out value="${project.name}" /> |
45 <c:out value="${project.name}" /> |
46 <input type="hidden" name="projectid" value="${project.id}" /> |
46 <input type="hidden" name="projectid" value="${project.id}" /> |
47 </td> |
47 </td> |
48 </tr> |
48 </tr> |
49 <tr> |
49 <tr> |
50 <th><fmt:message key="component"/></th> |
50 <th><label for="component-name"><fmt:message key="component"/></label></th> |
51 <td><input name="name" type="text" maxlength="20" required value="<c:out value="${component.name}"/>" /></td> |
51 <td><input id="component-name" name="name" type="text" maxlength="20" required value="<c:out value="${component.name}"/>" /></td> |
52 </tr> |
52 </tr> |
53 <tr title="<fmt:message key="node.tooltip"/>"> |
53 <tr title="<fmt:message key="node.tooltip"/>"> |
54 <th><fmt:message key="node"/></th> |
54 <th><label for="component-node"><fmt:message key="node"/></label></th> |
55 <td><input name="node" type="text" maxlength="20" value="<c:out value="${component.node}"/>" /></td> |
55 <td><input id="component-node" ame="node" type="text" maxlength="20" value="<c:out value="${component.node}"/>" /></td> |
56 </tr> |
56 </tr> |
57 <tr> |
57 <tr> |
58 <th><fmt:message key="component.color"/></th> |
58 <th><label for="component-color"><fmt:message key="component.color"/></label></th> |
59 <td><input name="color" type="color" required value="${component.color}" /></td> |
59 <td><input id="component-color" name="color" type="color" required value="${component.color}" /></td> |
60 </tr> |
60 </tr> |
61 <tr> |
61 <tr> |
62 <th><fmt:message key="component.lead"/></th> |
62 <th><label for="component-lead"><fmt:message key="component.lead"/></label></th> |
63 <td> |
63 <td> |
64 <select name="lead"> |
64 <select id="component-lead" name="lead"> |
65 <option value="-1"><fmt:message key="placeholder.null-lead"/></option> |
65 <option value="-1"><fmt:message key="placeholder.null-lead"/></option> |
66 <c:forEach var="user" items="${viewmodel.users}"> |
66 <c:forEach var="user" items="${viewmodel.users}"> |
67 <option |
67 <option |
68 <c:if test="${not empty component.lead and user eq component.lead}">selected</c:if> |
68 <c:if test="${not empty component.lead and user eq component.lead}">selected</c:if> |
69 value="${user.id}"><c:out value="${user.displayname}"/></option> |
69 value="${user.id}"><c:out value="${user.displayname}"/></option> |
70 </c:forEach> |
70 </c:forEach> |
71 </select> |
71 </select> |
72 </td> |
72 </td> |
73 </tr> |
73 </tr> |
74 <tr title="<fmt:message key="ordinal.tooltip" />"> |
74 <tr title="<fmt:message key="ordinal.tooltip" />"> |
75 <th><fmt:message key="ordinal"/></th> |
75 <th><label for="component-ordinal"><fmt:message key="ordinal"/></label></th> |
76 <td> |
76 <td> |
77 <input name="ordinal" type="number" value="${component.ordinal}"/> |
77 <input id="component-ordinal" name="ordinal" type="number" value="${component.ordinal}"/> |
78 </td> |
78 </td> |
79 </tr> |
79 </tr> |
80 <tr> |
80 <tr> |
81 <th class="vtop"><fmt:message key="description"/></th> |
81 <th class="vtop"><label for="component-description"><fmt:message key="description"/></label></th> |
82 <td> |
82 <td> |
83 <textarea name="description" rows="5"><c:out value="${component.description}"/></textarea> |
83 <textarea id="component-description" name="description" rows="5"><c:out value="${component.description}"/></textarea> |
|
84 </td> |
|
85 </tr> |
|
86 <tr> |
|
87 <th><label for="component-active"><fmt:message key="component.active"/></label></th> |
|
88 <td> |
|
89 <input type="checkbox" id="component-active" name="active" <c:if test="${component.active}">checked</c:if> > |
84 </td> |
90 </td> |
85 </tr> |
91 </tr> |
86 </tbody> |
92 </tbody> |
87 <tfoot> |
93 <tfoot> |
88 <tr> |
94 <tr> |