Commit e3ee2ee3 authored by akucera's avatar akucera
Browse files

changed project facet (Client), added tabs to Import

parent 6b7a02b6
......@@ -5,7 +5,19 @@
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="">
<attributes>
<attribute name="provider" value="org.eclipse.wst.jsdt.web.core.internal.project.ModuleSourcePathProvider"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
......@@ -42,33 +42,32 @@
<script>
var p = new SBMSPage(
function() {
$("#showSingle").click(function() {
p.switchPanel("insertNav", "insertDiv", this.id, "insertSingle");
});
$("#showBatch").click(function() {
p.switchPanel("insertNav", "insertDiv", this.id, "insertBatch");
});
$(".opDiv").hide();
$("#" + $("li.opNav.active").attr("data-show-div")).show();
$("#showMap").click(function() {
p.switchPanel("selectNav", "selectDiv", this.id, "selectMap");
$("#selectorTree").hide();
$(".opNav").click(function() {
p.switchPanel("opNav", "opDiv", this, $(this).attr("data-show-div"));
});
$("#showTree").click(function() {
p.switchPanel("selectNav", "selectDiv", this.id, "selectTree");
$(".selectorNav").click(function() {
p.switchPanel("selectorNav", "selectorDiv", this, $(this).attr("data-show-div"));
});
$("#selectMap").height($(window).height() < 800 ? 700 : $(window).height() - 300);
$("#selectorMap").height($(window).height() < 800 ? 700 : $(window).height() - 300);
//$("#kompasFrame").attr("src", p.mapURL);
/*
if(window.location.hash.indexOf("batch") > -1) {
p.switchPanel("insertNav", "insertDiv", "showBatch", "insertBatch");
p.switchPanel("opNav", "opDiv", $("#showBatch"), "insertBatch");
} else {
$("#insertBatch").hide();
}
$("#selectTree").hide();
*/
p.loadList("insertField",
[
......@@ -79,9 +78,9 @@
],
["#params",
false,
function() { p.switchPanel("selectNav", "selectDiv", "showTree", "selectTree"); },
function() { p.switchPanel("selectorNav", "selectorDiv", "showTree", "selectorTree"); },
function() { },
function() { p.switchPanel("selectNav", "selectDiv", "showMap", "selectMap"); },
function() { p.switchPanel("selectorNav", "selectorDiv", "showMap", "selectorMap"); },
function() { },
"kompasFrame",
"tree"
......@@ -312,10 +311,14 @@ insertDP: function (dp, ba, sa, ea, ca, logId) {
<div class="container-fluid">
<ul class="nav nav-tabs">
<li role="presentation" class="active insertNav" id="showSingle"><a href="#">Single</a></li>
<li role="presentation" class="insertNav" id="showBatch"><a href="#">Batch</a></li>
<li role="presentation" class="active opNav" data-show-div="insertSingle" id="showSingle"><a href="#">Datapoint (Single)</a></li>
<li role="presentation" class="opNav" data-show-div="insertBatch" id="showBatch"><a href="#">Datapoints (Batch)</a></li>
<li role="presentation" class="opNav" data-show-div="insertTrends" id="showTrends"><a href="#">Trends</a></li>
<li role="presentation" class="opNav" data-show-div="insertPrograms" id="showPrograms"><a href="#">Programs</a></li>
<li role="presentation" class="opNav" data-show-div="insertInfluence" id="showInfluence"><a href="#">Influence</a></li>
<li role="presentation" class="opNav" data-show-div="removeBatch" id="showRemove"><a href="#">Remove</a></li>
</ul>
<div id="insertSingle" class="insertDiv">
<div id="insertSingle" class="opDiv">
<div class="row">
<div id="c1" class="col-lg-4">
<div class="panel panel-default">
......@@ -347,14 +350,14 @@ insertDP: function (dp, ba, sa, ea, ca, logId) {
<div class="panel-body">
<ul class="nav nav-tabs">
<li role="presentation" class="active selectNav" id="showMap"><a href="#">Map</a></li>
<li role="presentation" class="selectNav" id="showTree"><a href="#">Tree</a></li>
<li role="presentation" class="active selectorNav" data-show-div="selectorMap" id="showMap"><a href="#">Map</a></li>
<li role="presentation" class="selectorNav" data-show-div="selectorTree" id="showTree"><a href="#">Tree</a></li>
</ul>
<div id="selectMap" class="selectDiv">
<div id="selectorMap" class="selectorDiv">
<iframe id="kompasFrame" style="width:100%;height:100%;" src="about:blank"></iframe>
</div>
<div id="selectTree" class="selectDiv">
<div id="selectorTree" class="selectorDiv">
<div id="tree"></div>
</div>
</div>
......@@ -365,7 +368,7 @@ insertDP: function (dp, ba, sa, ea, ca, logId) {
</div>
<div id="insertBatch" class="insertDiv">
<div id="insertBatch" class="opDiv">
<div class="row">
<div class="col-lg-10">
<div class="form-group">
......@@ -398,6 +401,14 @@ insertDP: function (dp, ba, sa, ea, ca, logId) {
</div>
<div id="insertTrends" class="opDiv"><p>TODO Trends insert</p></div>
<div id="insertPrograms" class="opDiv"><p>TODO Programs insert</p></div>
<div id="insertInfluence" class="opDiv"><p>TODO Influence insert</p></div>
<div id="removeBatch" class="opDiv"><p>TODO Remove</p></div>
</div>
</form>
......
......@@ -128,7 +128,7 @@ function SBMSPage(initFunc, vars, customFunc) {
for(i = 0; i < data.length; i++) {
parent = params[0]; //+ "Col" + Math.floor(i / (Math.floor(data.length / 2)));
//var width= (columns) ? 6 : 6;
$(parent).append('<div class="' + type + '"><label class="col-lg-6 col-md-12"><input id="' + name + i.toString() + '" name="' + name + '" type="' + type + '" value="' + data[i] + '">'
$(parent).append('<div class="' + type + ' col-lg-6 col-md-12"><label><input id="' + name + i.toString() + '" name="' + name + '" type="' + type + '" value="' + data[i] + '">'
+ $.t(data[i]) + '</label></div>');
}
};
......@@ -332,7 +332,7 @@ SBMSPage.prototype.getQueryVariable = function(variable)
SBMSPage.prototype.switchPanel = function(navClass, divClass, activeNav, activeDiv) {
$("."+ divClass).hide();
$("." + navClass).removeClass("active");
$("#" + activeNav).addClass("active");
$(activeNav).addClass("active");
$("#" + activeDiv).show();
};
......
......@@ -324,9 +324,12 @@ var p = new SBMSPage (function() {
<div class="panel-heading"><h3 class="panel-title" data-i18n="Grouping">Grouping</h3></div>
<div class="panel-body">
<p data-i18n="query.groups.text"></p>
<div id="groups" class="row">
<div class="row">
<div id="groups" class="form-horizontal form-group"></div>
<!--
<div id="groupsCol0" class="form-horizontal form-group col-lg-6"></div>
<div id="groupsCol1" class="form-horizontal form-group col-lg-6"></div>
-->
</div>
</div>
</div>
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<catalog prefer="public" xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<uri id="User Edited Redirect" name="http://is.muni.cz//www/255658/sbms/v1_0/SemanticBMS" uri="SemanticBMS.rdf"/>
<uri id="User Edited Redirect" name="http://is.muni.cz//www/255658/sbms/v1_0/SemanticBIM" uri="SemanticBIM.rdf"/>
<uri id="User Edited Redirect" name="http://is.muni.cz/www/255658/sbms/v1_0/SemanticBMS" uri="SemanticBMS.rdf"/>
<uri id="User Edited Redirect" name="http://is.muni.cz/www/255658/sbms/v1_0/SemanticBIM" uri="SemanticBIM.rdf"/>
<uri id="User Edited Redirect" name="http://purl.oclc.org/NET/muo/muo#" uri="muo-vocab.rdf"/>
<group id="Folder Repository, directory=, recursive=true, Auto-Update=true, version=2" prefer="public" xml:base="">
<uri id="Automatically generated entry, Timestamp=1463036717302" name="http://purl.oclc.org/NET/muo/ucum/" uri="ucum-instances.rdf"/>
<uri id="Automatically generated entry, Timestamp=1463036717302" name="http://purl.oclc.org/NET/ssnx/ssn" uri="ssn.rdf"/>
<uri id="Automatically generated entry, Timestamp=1463036717302" name="http://www.loa.istc.cnr.it/ontologies/DUL.owl" uri="DUL.rdf"/>
<uri id="Automatically generated entry, Timestamp=1463036717302" name="duplicate:http://www.w3.org/2002/07/owl" uri="SemanticBIM.rdf"/>
<uri id="Automatically generated entry, Timestamp=1463036717302" name="duplicate:http://www.w3.org/2002/07/owl" uri="SemanticBMS.rdf"/>
<uri id="Automatically generated entry, Timestamp=1465829895865" name="http://purl.oclc.org/NET/muo/ucum/" uri="ucum-instances.rdf"/>
<uri id="Automatically generated entry, Timestamp=1465829895865" name="http://purl.oclc.org/NET/ssnx/ssn" uri="ssn.rdf"/>
<uri id="Automatically generated entry, Timestamp=1465829895865" name="http://www.loa.istc.cnr.it/ontologies/DUL.owl" uri="DUL.rdf"/>
<uri id="Automatically generated entry, Timestamp=1465829895865" name="duplicate:http://www.w3.org/2002/07/owl" uri="SemanticBIM.rdf"/>
<uri id="Automatically generated entry, Timestamp=1465829895865" name="duplicate:http://www.w3.org/2002/07/owl" uri="SemanticBMS.rdf"/>
</group>
</catalog>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment