Merge branch 'forms2' of github.com:xwiki-labs/cryptpad into forms2

pull/1/head
yflory 3 years ago
commit e0b49c7b71

@ -308,6 +308,10 @@
color: @cryptpad_color_link;
}
}
.alert-danger {
font-size: 1rem;
padding: 10px;
}
}
.cp-form-anon-answer {
text-align: center;

@ -2184,7 +2184,7 @@ define([
var addResultsButton = function (framework, content, answers) {
var $container = $('.cp-forms-results-participant');
var l = getAnswersLength(answers);
var $res = $(h('button.btn.btn-primary.cp-toolbar-form-button', [
var $res = $(h('button.btn.btn-default.cp-toolbar-form-button', [
h('i.fa.fa-bar-chart'),
h('span.cp-button-name', Messages._getKey('form_results', [l])),
]));
@ -2198,7 +2198,7 @@ define([
$('body').addClass('cp-app-form-results');
renderResults(content, answers);
$res.remove();
var $editor = $(h('button.btn.btn-primary', [
var $editor = $(h('button.btn.btn-default', [
h('i.fa.fa-pencil'),
h('span.cp-button-name', Messages.form_editor)
]));
@ -2500,8 +2500,10 @@ define([
});
var list = h('ul', lis);
var divContent = [
h('span', Messages.form_requiredWarning),
list
h('div.alert.alert-danger', [
Messages.form_requiredWarning,
list
])
];
$errors.empty().append(divContent);
});

Loading…
Cancel
Save