diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.examples.server/templates/requestForm.htmljet')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.examples.server/templates/requestForm.htmljet | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.examples.server/templates/requestForm.htmljet b/plugins/org.eclipse.emf.cdo.examples.server/templates/requestForm.htmljet new file mode 100644 index 0000000000..52c0e87609 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.server/templates/requestForm.htmljet @@ -0,0 +1,31 @@ +<%@ jet + class="RequestForm" + package="templates" + imports="org.eclipse.emf.cdo.examples.server.*" %> + +<% MenuCard menuCard = (MenuCard)argument; %> + +<html> + <header> + <title> + <%=GastroServlet.html(menuCard.getTitle())%> + </title> + <link media="screen" href="gastro.css" type="text/css" rel="stylesheet"> + <header> +<body> + +<h1><%=GastroServlet.html(menuCard.getTitle())%></h1> +<table border="0" width="400"> +<%for (Section section : menuCard.getSections()) {%> + <tr><td colspan="3"><h2><%=GastroServlet.html(section.getTitle())%></h2></td></tr> + <tr><td colspan="3"><h4><%=GastroServlet.html(section.getText())%></h4></td></tr> + <%for (Offering offering : section.getOfferings()) {%> + <tr><td> </td><td colspan="2"><h3><%=GastroServlet.html(offering.getName())%></h3></td></tr> + <tr><td> </td><td><%=GastroServlet.html(offering.getDescription())%></td> + <td align="right" valign="bottom" width="80"><%=GastroServlet.html(offering.getPrice())%> </td></tr> + <%}%> +<%}%> +</table> + +</body> +</html> |