Show help info for project field on image upload screen
Change-Id: I94efeed03d7089787e18d3a24149f85a1b94d308
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
diff --git a/src/main/java/com/googlesource/gerrit/plugins/imagare/client/ImageUploadScreen.java b/src/main/java/com/googlesource/gerrit/plugins/imagare/client/ImageUploadScreen.java
index f7fe518..94545c6 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/imagare/client/ImageUploadScreen.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/imagare/client/ImageUploadScreen.java
@@ -22,6 +22,7 @@
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.HorizontalPanel;
+import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.ImageResourceRenderer;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.TextBox;
@@ -62,7 +63,11 @@
p = new HorizontalPanel();
p.setStyleName("imagare-label-panel");
- p.add(new Label("Project:"));
+ p.add(new Label("Project"));
+ Image projectInfo = new Image(ImagarePlugin.RESOURCES.info());
+ projectInfo.setTitle("The project to which the images are uploaded.");
+ p.add(projectInfo);
+ p.add(new Label(":"));
projectBox = new TextBox();
p.add(projectBox);
add(p);