mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
76 lines
5.6 KiB
JavaScript
76 lines
5.6 KiB
JavaScript
(function() {
|
|
var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
|
|
templates['template-visualization-scatterplotControlForm'] = template(function (Handlebars,depth0,helpers,partials,data) {
|
|
helpers = helpers || Handlebars.helpers;
|
|
var buffer = "", stack1, foundHelper, functionType="function", escapeExpression=this.escapeExpression, self=this;
|
|
|
|
function program1(depth0,data) {
|
|
|
|
var buffer = "", stack1, foundHelper;
|
|
buffer += "\n <option value=\"";
|
|
foundHelper = helpers.index;
|
|
if (foundHelper) { stack1 = foundHelper.call(depth0, {hash:{}}); }
|
|
else { stack1 = depth0.index; stack1 = typeof stack1 === functionType ? stack1() : stack1; }
|
|
buffer += escapeExpression(stack1) + "\">";
|
|
foundHelper = helpers.name;
|
|
if (foundHelper) { stack1 = foundHelper.call(depth0, {hash:{}}); }
|
|
else { stack1 = depth0.name; stack1 = typeof stack1 === functionType ? stack1() : stack1; }
|
|
buffer += escapeExpression(stack1) + "</option>\n ";
|
|
return buffer;}
|
|
|
|
function program3(depth0,data) {
|
|
|
|
var buffer = "", stack1, foundHelper;
|
|
buffer += "\n <option value=\"";
|
|
foundHelper = helpers.index;
|
|
if (foundHelper) { stack1 = foundHelper.call(depth0, {hash:{}}); }
|
|
else { stack1 = depth0.index; stack1 = typeof stack1 === functionType ? stack1() : stack1; }
|
|
buffer += escapeExpression(stack1) + "\">";
|
|
foundHelper = helpers.name;
|
|
if (foundHelper) { stack1 = foundHelper.call(depth0, {hash:{}}); }
|
|
else { stack1 = depth0.name; stack1 = typeof stack1 === functionType ? stack1() : stack1; }
|
|
buffer += escapeExpression(stack1) + "</option>\n ";
|
|
return buffer;}
|
|
|
|
function program5(depth0,data) {
|
|
|
|
var buffer = "", stack1, foundHelper;
|
|
buffer += "\n <option value=\"";
|
|
foundHelper = helpers.index;
|
|
if (foundHelper) { stack1 = foundHelper.call(depth0, {hash:{}}); }
|
|
else { stack1 = depth0.index; stack1 = typeof stack1 === functionType ? stack1() : stack1; }
|
|
buffer += escapeExpression(stack1) + "\">";
|
|
foundHelper = helpers.name;
|
|
if (foundHelper) { stack1 = foundHelper.call(depth0, {hash:{}}); }
|
|
else { stack1 = depth0.name; stack1 = typeof stack1 === functionType ? stack1() : stack1; }
|
|
buffer += escapeExpression(stack1) + "</option>\n ";
|
|
return buffer;}
|
|
|
|
buffer += "\n\n<ul class=\"nav nav-tabs\">\n <li class=\"active\"><a data-toggle=\"tab\" href=\"#data-settings\">Data Controls</a></li>\n <li><a data-toggle=\"tab\" href=\"#chart-settings\">Plot Controls</a></li>\n <li><a data-toggle=\"tab\" href=\"#chart-stats\">Statistics</a></li>\n <li><a data-toggle=\"tab\" href=\"#chart\">Chart</a></li>\n</ul>\n\n";
|
|
buffer += "\n<div class=\"tab-content\">\n<div id=\"data-settings\" class=\"tab-pane active\">\n\n <p class=\"help-text\">\n Use the following controls to change the data used by the chart.\n Use the 'Draw' button to render (or re-render) the chart with the current settings.\n </p>\n \n ";
|
|
buffer += "\n <div class=\"column-select\">\n <label for=\"X-select\">Data column for X: </label>\n <select name=\"X\" id=\"X-select\">\n ";
|
|
stack1 = depth0.numericColumns;
|
|
stack1 = helpers.each.call(depth0, stack1, {hash:{},inverse:self.noop,fn:self.program(1, program1, data)});
|
|
if(stack1 || stack1 === 0) { buffer += stack1; }
|
|
buffer += "\n </select>\n </div>\n <div class=\"column-select\">\n <label for=\"Y-select\">Data column for Y: </label>\n <select name=\"Y\" id=\"Y-select\">\n ";
|
|
stack1 = depth0.numericColumns;
|
|
stack1 = helpers.each.call(depth0, stack1, {hash:{},inverse:self.noop,fn:self.program(3, program3, data)});
|
|
if(stack1 || stack1 === 0) { buffer += stack1; }
|
|
buffer += "\n </select>\n </div>\n \n ";
|
|
buffer += "\n <div id=\"include-id\">\n <label for=\"include-id-checkbox\">Include a third column as data point IDs?</label>\n <input type=\"checkbox\" name=\"include-id\" id=\"include-id-checkbox\" />\n <p class=\"help-text-small\">\n These will be displayed (along with the x and y values) when you hover over\n a data point.\n </p>\n </div>\n <div class=\"column-select\" style=\"display: none\">\n <label for=\"ID-select\">Data column for IDs: </label>\n <select name=\"ID\" id=\"ID-select\">\n ";
|
|
stack1 = depth0.allColumns;
|
|
stack1 = helpers.each.call(depth0, stack1, {hash:{},inverse:self.noop,fn:self.program(5, program5, data)});
|
|
if(stack1 || stack1 === 0) { buffer += stack1; }
|
|
buffer += "\n </select>\n </div>\n \n <input id=\"render-button\" type=\"button\" value=\"Draw\" />\n <input id=\"save-button\" type=\"button\" value=\"Download Plot as SVG\" style=\"display: none;\" />\n <div class=\"clear\"></div>\n</div>\n\n<div id=\"chart-settings\" class=\"tab-pane\">\n</div>\n\n<div id=\"chart-stats\" class=\"tab-pane\">\n</div>\n</div>";
|
|
buffer += "\n\n";
|
|
buffer += "\n<div id=\"loading-indicator\" style=\"display: none;\">\n <img class=\"loading-img\" src=\"";
|
|
foundHelper = helpers.loadingIndicatorImagePath;
|
|
if (foundHelper) { stack1 = foundHelper.call(depth0, {hash:{}}); }
|
|
else { stack1 = depth0.loadingIndicatorImagePath; stack1 = typeof stack1 === functionType ? stack1() : stack1; }
|
|
buffer += escapeExpression(stack1) + "\" />\n <span class=\"loading-message\">";
|
|
foundHelper = helpers.message;
|
|
if (foundHelper) { stack1 = foundHelper.call(depth0, {hash:{}}); }
|
|
else { stack1 = depth0.message; stack1 = typeof stack1 === functionType ? stack1() : stack1; }
|
|
buffer += escapeExpression(stack1) + "</span>\n</div>";
|
|
return buffer;});
|
|
})(); |