Skip to content

Commit bdd1897

Browse files
committed
Export view: simplified layout a little.
1 parent a38269e commit bdd1897

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

js/view-action/action-export.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ return Backbone.View.extend({
5959
'<fieldset class="checkbox">';
6060

6161
//### list of columns to export #########################################
62-
h+='<div><label><input type="checkbox" value="1" id="showID">'+i18nXpt.IDkey+'</label></div>';
62+
h+='<label><input type="checkbox" value="1" id="showID">'+i18nXpt.IDkey+'</label>';
6363
_.each(fields, function(f, idx){
6464
var fLabel = f.labelExport || f.label || f.labelList,
6565
fID = 'fx-' + f.id;
6666
if (fLabel === null || fLabel === '') {
6767
fLabel = '(' + fID + ')';
6868
}
69-
h+='<div><label><input type="checkbox" value="1" id="'+fID+'" checked="checked">'+fLabel+'</label></div>';
69+
h+='<label><input type="checkbox" value="1" id="'+fID+'" checked="checked">'+fLabel+'</label>';
7070
if (idx === 10 && useMore){
7171
h+='<a href="javascript:void(0)" class="evol-xpt-more">' + i18nXpt.allFields+ '</a><div style="display:none;">';
7272
}
@@ -104,10 +104,10 @@ return Backbone.View.extend({
104104
});
105105
h+='</div>'+
106106
//# Preview #######
107-
'<label>'+i18nXpt.preview+'</label><div class="evol-xpt-preview">'+
107+
'<label>'+i18nXpt.preview+'</label>'+
108108
// ## Samples
109109
'<textarea class="evol-xpt-val form-control"></textarea>'+
110-
'</div></div></div></div>'+
110+
'</div></div></div>'+
111111
// ## Download button
112112
'<div class="panel '+this.style +' evol-buttons form-actions">'+
113113
eUI.button('cancel', i18n.tools.bCancel, 'btn-default')+

less/action-export.less

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232

3333
>fieldset{
3434
margin-left: 20px;
35+
>label{
36+
display: block;
37+
}
3538
}
3639

3740
input[type="checkbox"]{

0 commit comments

Comments
 (0)