changeset 708:7448b6f5f1ed

Replaced standard html input button with a load image like the choose buttons (issue225). gnv/trunk@978 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 23 Apr 2010 14:47:52 +0000
parents cb1bae26e7ae
children 68d0fba6f23e
files gnv/ChangeLog gnv/src/main/resources/applicationMessages.properties gnv/src/main/resources/applicationMessages_en.properties gnv/src/main/webapp/WEB-INF/jsp/index.jsp gnv/src/main/webapp/images/laden.png gnv/src/main/webapp/images/load.png gnv/src/main/webapp/styles/default.css
diffstat 7 files changed, 32 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gnv/ChangeLog	Fri Apr 23 13:22:12 2010 +0000
+++ b/gnv/ChangeLog	Fri Apr 23 14:47:52 2010 +0000
@@ -1,3 +1,21 @@
+2010-04-23  Ingo Weinzierl <ingo.weinzierl@intevation.de>
+
+	  Issue225
+
+	* src/main/webapp/WEB-INF/jsp/index.jsp: Replaced the standard html input
+	  button with an image as the choose button.
+
+	* src/main/resources/applicationMessages.properties,
+	  src/main/resources/applicationMessages_en.properties: Added specific 
+	  strings that represent pathes to german and english load button images.
+
+	* src/main/webapp/styles/default.css: New styles to adjust the upload box
+	  and the load button.
+
+
+	* src/main/webapp/images/load.png,
+	  src/main/webapp/images/laden.png: Images for project load button.
+
 2010-04-23  Ingo Weinzierl <ingo.weinzierl@intevation.de>
 
 	  Issue237
--- a/gnv/src/main/resources/applicationMessages.properties	Fri Apr 23 13:22:12 2010 +0000
+++ b/gnv/src/main/resources/applicationMessages.properties	Fri Apr 23 14:47:52 2010 +0000
@@ -16,7 +16,7 @@
 
 gnviewer.project.save = Projekt speichern
 gnviewer.project.load = Projekt laden
-gnviewer.project.load.button = Laden
+gnviewer.project.load.button.src = ./images/laden.png
 
 gnviewer.history.title=\u00dcberblick
 gnviewer.history.back.button=Bearbeiten
--- a/gnv/src/main/resources/applicationMessages_en.properties	Fri Apr 23 13:22:12 2010 +0000
+++ b/gnv/src/main/resources/applicationMessages_en.properties	Fri Apr 23 14:47:52 2010 +0000
@@ -19,7 +19,7 @@
 
 gnviewer.project.save = Save Project
 gnviewer.project.load = Load Project
-gnviewer.project.load.button = Load
+gnviewer.project.load.button.src = ./images/load.png
 
 gnviewer.fis.fis_marnet = Marnet
 gnviewer.fis.fis_imis = IMIS
--- a/gnv/src/main/webapp/WEB-INF/jsp/index.jsp	Fri Apr 23 13:22:12 2010 +0000
+++ b/gnv/src/main/webapp/WEB-INF/jsp/index.jsp	Fri Apr 23 14:47:52 2010 +0000
@@ -52,8 +52,8 @@
                 <td style="float: left; width: 400px;">
                     <div id="projectload">
                         <form id="loadProject" action="<%=response.encodeURL("load.do")%>" method="post" enctype="multipart/form-data">
-                            <input type="submit" name="loadProject"  value="<bean:message key="gnviewer.project.load.button"/>"/>
-                            <input type="file"   name="document"     accept="application/xml"/>
+                            <div id="browseDiv"><input type="file"   name="document"     accept="application/xml"/></div>
+                            <div id="loadDiv"><input type="image" src="<bean:message key="gnviewer.project.load.button.src"/>"/></div>
                         </form>
                     </div>
                 </td>
Binary file gnv/src/main/webapp/images/laden.png has changed
Binary file gnv/src/main/webapp/images/load.png has changed
--- a/gnv/src/main/webapp/styles/default.css	Fri Apr 23 13:22:12 2010 +0000
+++ b/gnv/src/main/webapp/styles/default.css	Fri Apr 23 14:47:52 2010 +0000
@@ -66,6 +66,16 @@
     padding: 0;
 }
 
+#browseDiv {
+    float:      left;
+    margin-top: 1px;
+}
+
+#loadDiv {
+    float:       right;
+    margin-left: 5px;
+}
+
 p, li, dl, input, select, address, legend, label, fieldset span {
     font-size: 0.7em;
 }

http://dive4elements.wald.intevation.org