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

changeset 311
bf67e0ff7131
parent 305
26e7f895f0f8
equal deleted inserted replaced
310:bbf4eb9a71f8 311:bf67e0ff7131
30 30
31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.IssueEditView" scope="request"/> 31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.IssueEditView" scope="request"/>
32 32
33 <c:set var="issue" scope="page" value="${viewmodel.issue}" /> 33 <c:set var="issue" scope="page" value="${viewmodel.issue}" />
34 <c:set var="project" scope="page" value="${viewmodel.project}"/> 34 <c:set var="project" scope="page" value="${viewmodel.project}"/>
35 <c:set var="issuesHref" value="./${viewmodel.pathInfos.issuesHref}"/> 35 <c:set var="issuesHref" value="./issues/"/>
36 <c:if test="${not empty viewmodel.pathInfos}">
37 <c:set var="issuesHref" value="./${viewmodel.pathInfos.issuesHref}"/>
38 </c:if>
36 39
37 <form action="${issuesHref}-/commit" method="post"> 40 <form action="${issuesHref}-/commit" method="post">
38 <input type="hidden" name="project" value="${issue.project.id}" /> 41 <input type="hidden" name="project" value="${issue.project.id}" />
39 <table class="formtable fullwidth"> 42 <table class="formtable fullwidth">
40 <colgroup> 43 <colgroup>
158 </c:if> 161 </c:if>
159 </tbody> 162 </tbody>
160 <tfoot> 163 <tfoot>
161 <tr> 164 <tr>
162 <td colspan="2"> 165 <td colspan="2">
166 <input type="hidden" name="id" value="${issue.id}"/>
167 <c:if test="${not empty viewmodel.pathInfos}">
163 <input type="checkbox" id="more" name="more" <c:if test="${more}">checked</c:if> /> 168 <input type="checkbox" id="more" name="more" <c:if test="${more}">checked</c:if> />
164 <label for="more"><fmt:message key="button.issue.create.another"/> </label> 169 <label for="more"><fmt:message key="button.issue.create.another"/> </label>
165 <input type="hidden" name="id" value="${issue.id}"/> 170 </c:if>
166 <c:if test="${issue.id ge 0}"> 171 <c:if test="${issue.id ge 0}">
167 <a href="${issuesHref}${issue.id}" class="button"> 172 <a href="${issuesHref}${issue.id}" class="button">
168 <fmt:message key="button.cancel"/> 173 <fmt:message key="button.cancel"/>
169 </a> 174 </a>
170 </c:if> 175 </c:if>

mercurial