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

changeset 78
bb4c52bf3439
parent 76
82f71fb1758a
child 80
27a25f32048e
equal deleted inserted replaced
77:192298f8161f 78:bb4c52bf3439
23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 --%> 26 --%>
27 <%@page pageEncoding="UTF-8" %> 27 <%@page pageEncoding="UTF-8" %>
28 <%@page import="de.uapcore.lightpit.Constants" %>
29 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
30 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
31
32 <c:set scope="page" var="moduleInfo" value="${requestScope[Constants.REQ_ATTR_MODULE_INFO]}"/>
33 30
34 <jsp:useBean id="projects" type="java.util.List<de.uapcore.lightpit.entities.Project>" scope="request" /> 31 <jsp:useBean id="projects" type="java.util.List<de.uapcore.lightpit.entities.Project>" scope="request" />
35 <jsp:useBean id="version" type="de.uapcore.lightpit.entities.Version" scope="request"/> 32 <jsp:useBean id="version" type="de.uapcore.lightpit.entities.Version" scope="request"/>
36 <jsp:useBean id="versionStatusEnum" type="de.uapcore.lightpit.entities.VersionStatus[]" scope="request"/> 33 <jsp:useBean id="versionStatusEnum" type="de.uapcore.lightpit.entities.VersionStatus[]" scope="request"/>
37 34
38 <form action="./${moduleInfo.modulePath}/versions/commit" method="post"> 35 <form action="./projects/versions/commit" method="post">
39 <table class="formtable" style="width: 35ch"> 36 <table class="formtable" style="width: 35ch">
40 <colgroup> 37 <colgroup>
41 <col> 38 <col>
42 <col style="width: 100%"> 39 <col style="width: 100%">
43 </colgroup> 40 </colgroup>
81 <tr> 78 <tr>
82 <td colspan="2"> 79 <td colspan="2">
83 <input type="hidden" name="id" value="${version.id}"/> 80 <input type="hidden" name="id" value="${version.id}"/>
84 <c:choose> 81 <c:choose>
85 <c:when test="${not empty version.project and version.project.id ge 0}"> 82 <c:when test="${not empty version.project and version.project.id ge 0}">
86 <c:set var="cancelUrl">./${moduleInfo.modulePath}/view?pid=${version.project.id}</c:set> 83 <c:set var="cancelUrl">./projects/view?pid=${version.project.id}</c:set>
87 </c:when> 84 </c:when>
88 <c:otherwise> 85 <c:otherwise>
89 <c:set var="cancelUrl">./${moduleInfo.modulePath}/</c:set> 86 <c:set var="cancelUrl">./projects/</c:set>
90 </c:otherwise> 87 </c:otherwise>
91 </c:choose> 88 </c:choose>
92 <a href="${cancelUrl}" class="button"> 89 <a href="${cancelUrl}" class="button">
93 <fmt:message bundle="${lightpit_bundle}" key="button.cancel"/> 90 <fmt:message bundle="${lightpit_bundle}" key="button.cancel"/>
94 </a> 91 </a>

mercurial