Refactor form control buttons

pull/1/head
David Benqué 3 years ago
parent b5c051a27f
commit fc4178df7e

@ -528,11 +528,11 @@
margin-top: 20px;
//background: @cp_form-bg1;
//padding: 10px;
}
.cp-form-creator-results-export {
margin-bottom: 20px;
button {
margin-right: 10px;
}
}
.cp-form-creator-results-content {
padding-bottom: 100px;
.cp-form-block {

@ -1956,9 +1956,11 @@ define([
$timeline.append(makeTimeline(answers));
var controls = h('div.cp-form-creator-results-controls');
var $controls = $(controls).appendTo($container);
var exportButton = h('button.btn.btn-secondary', Messages.form_exportCSV);
var exportCSV = h('div.cp-form-creator-results-export', exportButton);
$(exportCSV).appendTo($container);
var exportButton = h('button.btn.btn-primary', [
h('i.fa.fa-download'),
Messages.form_exportCSV
]);
$(exportButton).appendTo($controls);
var results = h('div.cp-form-creator-results-content');
var $results = $(results).appendTo($container);
@ -1975,7 +1977,7 @@ define([
var summary = true;
var form = content.form;
var switchMode = h('button.btn.btn-primary', Messages.form_showIndividual);
var switchMode = h('button.btn.btn-secondary', Messages.form_showIndividual);
$controls.hide().append(switchMode);
var show = function (answers, header) {

Loading…
Cancel
Save