From e08321aa8b2e3b4094f39549afe1d0dd7986acb3 Mon Sep 17 00:00:00 2001
From: juanf <juanf>
Date: Fri, 17 Jun 2016 13:32:01 +0000
Subject: [PATCH] SSDM-3733 : Exports form, ongoing work

SVN: 36704
---
 .../1/as/webapps/eln-lims/html/js/util/FormUtil.js    | 11 +++++++++++
 .../eln-lims/html/js/views/Export/ExportTreeView.js   |  9 ++++++---
 2 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js
index 88c06bf5203..f89360eacf8 100644
--- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js
+++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js
@@ -798,4 +798,15 @@ var FormUtil = new function() {
 		link.click(click);
 		return link;
 	}
+	
+	this.getInfoBox = function(title, lines) {
+		var $infoBox = $("<div>", { style : "background-color:#f8f8f8; margin:10px; padding:10px; border-color: #e7e7e7; border-style: solid; border-width: 1px;"});
+		
+		$infoBox.append($("<span>", { class : 'glyphicon glyphicon-info-sign' })).append(" " + title);
+		for(var lIdx = 0; lIdx < lines.length; lIdx++) {
+			$infoBox.append($("<br>"));
+			$infoBox.append(lines[lIdx]);
+		}
+		return $infoBox;
+	}
 }
\ No newline at end of file
diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/Export/ExportTreeView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/Export/ExportTreeView.js
index 7da4f9e07d2..4ec4bb80234 100644
--- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/Export/ExportTreeView.js
+++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/Export/ExportTreeView.js
@@ -32,11 +32,14 @@ function ExportTreeView(exportTreeController, exportTreeModel) {
 			
 		$form.append($formColumn);
 		
-		var $formTitle = $("<h2>").append("Select Entities to Export");
+		var $formTitle = $("<h2>").append("Export Builder");
 		
 		$formColumn.append($formTitle);
-		$formColumn.append("<br>");
-		
+		$formColumn.append(FormUtil.getInfoBox("Usage explanation:", [
+			"You can select any parts of the accesible openBIS structure to export.",
+			"If you select a node, and you don't expand it, it means you also want to export everything under it.",
+			"If you select a node, and you expand it, it means you want to export only that entity because the entities under it will be unselected by default."
+		]));
 		var $tree = $("<div>", { "id" : "exportsTree" });
 		$formColumn.append($tree);
 		
-- 
GitLab