Commit 6dd6245c authored by Ryan Herbert's avatar Ryan Herbert

file form stream-lining

less vertical space, more inline things.

See #3046
parent 863a59fb
......@@ -2299,6 +2299,10 @@ form {
cursor: pointer;
}
.inline {
display: inline-block;
}
#fieldset_container {
:not(.set_token) {
> .icon-cancel {
......
......@@ -357,9 +357,9 @@ FileFormBuilder.prototype.build_jstree = function() {
d.hidden = true;
}
var sel = document.createTextNode('selected');
var sel = document.createTextNode('selected:');
d.appendChild(sel);
var indicator = document.createElement('div');
var indicator = document.createElement('span');
indicator.id = "file_indicator_" + self.index;
d.appendChild(indicator);
var tree_par = document.createElement('div');
......@@ -370,6 +370,7 @@ FileFormBuilder.prototype.build_jstree = function() {
d.appendChild(tree_par);
var tree = document.createElement('div');
tree.id = 'jstree_' + this.index;
tree.className = "inline";
tree.dataset.index = this.index;
tree_par.appendChild(tree);
return d;
......
......@@ -33,8 +33,8 @@
>
</div>
<div class="jstree_container" {{if not source_module_active:}} hidden {{pass}}>
selected
<div id="file_indicator_{{=i}}"></div>
selected:
<span id="file_indicator_{{=i}}"></span>
<div class="jstree" id="jstree_loader_{{=i}}"
{{if not source_module_active:}}
hidden
......@@ -42,7 +42,7 @@
onload="db.set_jstree($('#jstree_{{=i}}'), {{=i}})"
{{pass}}>
file
<div id="jstree_{{=i}}" data-index="{{=i}}"></div>
<div id="jstree_{{=i}}" class="inline" data-index="{{=i}}"></div>
</div>
</div>
</div>
......
Markdown is supported
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