src/main/webapp/WEB-INF/jsp/language.jsp

Mon, 01 Jun 2020 14:46:58 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 01 Jun 2020 14:46:58 +0200
changeset 86
0a658e53177c
parent 74
91d1fc2a3a14
child 180
009700915269
permissions
-rw-r--r--

improves issue overview and adds progress information

universe@13 1 <%--
universe@13 2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
universe@13 3
universe@24 4 Copyright 2018 Mike Becker. All rights reserved.
universe@13 5
universe@13 6 Redistribution and use in source and binary forms, with or without
universe@13 7 modification, are permitted provided that the following conditions are met:
universe@13 8
universe@13 9 1. Redistributions of source code must retain the above copyright
universe@13 10 notice, this list of conditions and the following disclaimer.
universe@13 11
universe@13 12 2. Redistributions in binary form must reproduce the above copyright
universe@13 13 notice, this list of conditions and the following disclaimer in the
universe@13 14 documentation and/or other materials provided with the distribution.
universe@13 15
universe@13 16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
universe@13 17 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
universe@13 18 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
universe@13 19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
universe@13 20 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
universe@13 21 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
universe@13 22 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
universe@13 23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
universe@13 24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
universe@13 25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
universe@13 26 --%>
universe@39 27 <%@page pageEncoding="UTF-8" %>
universe@13 28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
universe@13 29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
universe@13 30
universe@86 31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.LanguageView" scope="request"/>
universe@39 32
universe@39 33 <form method="POST" id="lang-selector">
universe@86 34 <c:forEach items="${viewmodel.languages}" var="l">
universe@13 35 <label>
universe@13 36 <input type="radio" name="language" value="${l.language}"
universe@86 37 <c:if test="${l.language eq viewmodel.currentLanguage.language}">checked</c:if>/>
universe@39 38 ${l.displayLanguage}
universe@86 39 (${l.getDisplayLanguage(viewmodel.currentLanguage)}
universe@86 40 <c:if test="${not empty viewmodel.browserLanguage and l.language eq viewmodel.browserLanguage.language}"><c:set
universe@39 41 var="browserLanguagePresent" value="true"/>&nbsp;-&nbsp;<fmt:message key="browserLanguage"/></c:if>)
universe@13 42 </label>
universe@13 43 </c:forEach>
universe@15 44 <c:if test="${not browserLanguagePresent}">
universe@72 45 <span class="blNA"><fmt:message key="browserLanguageNotAvailable"/></span>
universe@15 46 </c:if>
universe@13 47 <input type="submit" value="<fmt:message key="submit" />"/>
universe@13 48 </form>

mercurial