diff gnv/src/main/webapp/WEB-INF/jsp/index.jsp @ 17:d7e5a929fc34

Some Stylingimprovements done gnv/trunk@100 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Wed, 16 Sep 2009 14:55:54 +0000
parents 4ef6e4e9ef15
children 87002cbd194c
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/jsp/index.jsp	Wed Sep 16 14:02:29 2009 +0000
+++ b/gnv/src/main/webapp/WEB-INF/jsp/index.jsp	Wed Sep 16 14:55:54 2009 +0000
@@ -5,18 +5,26 @@
 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%>
 <%@page import="java.util.Iterator"%>
 <%Object ui = request.getAttribute("ui");
+  boolean furthertargets = true;
+      
+  Object furthertargetsObject = request.getAttribute("furthertargets");
+  if (furthertargetsObject != null){
+      furthertargets = ((Boolean)furthertargetsObject).booleanValue();
+  }
+  Object diagramm = request.getAttribute("diagramm");
   String action = (ui == null ? "selectArtifactFactory.do" : "next.do");
 %>
 <div id="basefilter">
 	<form id="fisSelectionForm" action="<%=action%>" method="post">
 	   <fieldset>
-	
+	   
 	<%
 	  
 	  SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request);
 	  Collection<ArtifactObject> artifactFactories = sm.getArtifactFactories();
 	  if (artifactFactories != null && ui == null){
 	%>
+	       <legend>FIS</legend>
 	       <select name="artifactFactory">
 	<%
 	      Iterator<ArtifactObject> it = artifactFactories.iterator();
@@ -37,7 +45,12 @@
 	    
 	    <%=ui != null ? ui.toString() : "" %>
 	    
-	       <input type="submit" value="Auswählen" />
+	       <input type="submit" value="<%=furthertargets ? "Auswählen" : "Zeichen"%>" />
 	    </fieldset>
 	</form>
-</div>
\ No newline at end of file
+</div>
+<%if (diagramm != null){ %>
+<div id="diagram">
+    <%=diagramm.toString()%>
+</div>
+<%}%>
\ No newline at end of file

http://dive4elements.wald.intevation.org