source: tapas/web/project/formTapas.jsp @ 470

Last change on this file since 470 was 466, checked in by rboipsl, 12 years ago

creation form xml

File size: 3.4 KB
Line 
1<%@ page import="com.ether.WebException" %>
2<%@ page import="com.ether.SpectralUnit" %>
3<%@ page import="com.ether.InstrumentalFunction" %>
4<%@ page import="com.ether.ClimatoReference" %>
5<%@ page contentType="text/html;charset=UTF-8" language="java" %>
6<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
7<%@ taglib prefix="tiles" uri="/WEB-INF/tlds/struts-tiles.tld" %>
8<%@ taglib prefix="ether" tagdir="/WEB-INF/tags" %>
9
10<tiles:insert page="/resources/templates/templateEther.jsp" flush="true">
11
12    <tiles:put name="insertCss" type="string">
13        <ether:htmlCss cssFile="select"/>
14        <ether:htmlCss cssFile="calendar/anytime"/>
15        <ether:htmlCss cssFile="jquery-ui-1.8.16.custom/jquery-ui-1.8.16.custom"/>
16    </tiles:put>
17
18    <tiles:put name="insertJsOrJsp" type="string">
19        <ether:htmlJs jsFile="library/jquery.json-2.3"/>
20        <ether:htmlJs jsFile="classesForJQuery/Select"/>
21        <ether:htmlJs jsFile="calendar/anytime"/>
22        <ether:htmlJsp jspFile="formTapas_script"/>
23    </tiles:put>
24
25    <tiles:put name="title" type="string"><spring:message code="app.title"/> - <spring:message code="title.home"/></tiles:put>
26    <tiles:put name="nav" type="string"><a href=""><spring:message code="label.home"/></a></tiles:put>
27
28
29    <%-- ****************** CONTENT ****************** --%>
30    <tiles:put name="bodytitle" type="string"><spring:message code="title.home"/></tiles:put>
31
32    <tiles:put name="body" type="string">
33
34        <div id="formulaire"></div>
35
36        <div id="errors"></div>
37
38        <script type="text/javascript">
39            var tapasTexts = $A( "" );
40
41            tapasTexts["label.submitButton"] = '<spring:message code="label.submitButton"/>';
42            tapasTexts["<%=WebException.WebCode.ERROR_JSON_TAPAS_IS_NULL%>"] = "<spring:message code="error.ERROR_JSON_TAPAS_IS_NULL"/>";
43            tapasTexts["<%=SpectralUnit.NM_STANDARD%>"] = "<spring:message code="label.spectralUnit.NM_STANDARD"/>";
44            tapasTexts["<%=SpectralUnit.NM_VACUUM%>"] = "<spring:message code="label.spectralUnit.NM_VACUUM"/>";
45            tapasTexts["<%=SpectralUnit.CM%>"] = "<spring:message code="label.spectralUnit.CM"/>";
46            tapasTexts["<%=InstrumentalFunction.NONE%>"] = "<spring:message code="label.instrumentalFunction.NONE"/>";
47            tapasTexts["<%=InstrumentalFunction.GAUSSIAN%>"] = "<spring:message code="label.instrumentalFunction.GAUSSIAN"/>";
48            tapasTexts["<%=ClimatoReference.TROPICAL%>"] = "<spring:message code="label.climatoReference.TROPICAL"/>";
49            tapasTexts["<%=ClimatoReference.MEDIUM_LATITUDE_SUMMER%>"] = "<spring:message code="label.climatoReference.MEDIUM_LATITUDE_SUMMER"/>";
50            tapasTexts["<%=ClimatoReference.MEDIUM_LATITUDE_WINTER%>"] = "<spring:message code="label.climatoReference.MEDIUM_LATITUDE_WINTER"/>";
51            tapasTexts["<%=ClimatoReference.SUBARCTIC_SUMMER%>"] = "<spring:message code="label.climatoReference.SUBARCTIC_SUMMER"/>";
52            tapasTexts["<%=ClimatoReference.SUBARCTIC_WINTER%>"] = "<spring:message code="label.climatoReference.SUBARCTIC_WINTER"/>";
53            tapasTexts["<%=ClimatoReference.US_STANDARD_1976%>"] = "<spring:message code="label.climatoReference.US_STANDARD_1976"/>";
54
55
56            var interfaceTapas = new InterfaceTapas(${jSonFileFormats},${jSonYesNos},${jSonObservatories},${jSonSpectralUnits},${jSonInstrumentalFunctions},${jSonClimatoReferences});
57        </script>
58
59    </tiles:put>
60
61</tiles:insert>
Note: See TracBrowser for help on using the repository browser.