src/main/webapp/WEB-INF/jsp/variant-form.jsp

changeset 405
f3509f24c6c5
parent 392
c0c7b4ca2946
equal deleted inserted replaced
404:c7f4a5e81202 405:f3509f24c6c5
29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
30 30
31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.VariantEditView" scope="request" /> 31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.VariantEditView" scope="request" />
32 <c:set var="project" scope="page" value="${viewmodel.projectInfo.project}"/> 32 <c:set var="project" scope="page" value="${viewmodel.projectInfo.project}"/>
33 <c:set var="variant" scope="page" value="${viewmodel.variant}"/> 33 <c:set var="variant" scope="page" value="${viewmodel.variant}"/>
34 <c:set scope="page" var="returnLink" value="${requestScope[Constants.REQ_ATTR_REFERER]}"/>
35 <c:if test="${empty returnLink}">
36 <c:set scope="page" var="returnLink" value="./projects/${project.node}/variants/"/>
37 </c:if>
38 34
39 <form action="./projects/${project.node}/variants/-/commit" method="post"> 35 <form action="./projects/${project.node}/variants/-/commit" method="post">
40 <table class="formtable" style="width: 70ch"> 36 <table class="formtable" style="width: 70ch">
41 <colgroup> 37 <colgroup>
42 <col> 38 <col>
83 </tbody> 79 </tbody>
84 <tfoot> 80 <tfoot>
85 <tr> 81 <tr>
86 <td colspan="2"> 82 <td colspan="2">
87 <input type="hidden" name="id" value="${variant.id}"/> 83 <input type="hidden" name="id" value="${variant.id}"/>
88 <input type="hidden" name="returnLink" value="${returnLink}"/> 84 <input type="hidden" name="returnLink" value="${viewmodel.returnLink}"/>
89 <a href="${returnLink}" class="button"> 85 <a href="${viewmodel.returnLink}" class="button">
90 <fmt:message key="button.cancel"/> 86 <fmt:message key="button.cancel"/>
91 </a> 87 </a>
92 <button type="submit"><fmt:message key="button.okay"/></button> 88 <button type="submit"><fmt:message key="button.okay"/></button>
93 </td> 89 </td>
94 </tr> 90 </tr>

mercurial