From 7f244d532f611ab06e3102f4e52ffbbea4f9aea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Benqu=C3=A9?= Date: Wed, 1 Sep 2021 16:11:50 +0100 Subject: [PATCH 1/2] Style required question submit error --- www/form/app-form.less | 4 ++++ www/form/inner.js | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/www/form/app-form.less b/www/form/app-form.less index 06d559c85..5bc46a085 100644 --- a/www/form/app-form.less +++ b/www/form/app-form.less @@ -308,6 +308,10 @@ color: @cryptpad_color_link; } } + .alert-danger { + font-size: 1rem; + padding: 10px; + } } .cp-form-anon-answer { text-align: center; diff --git a/www/form/inner.js b/www/form/inner.js index 85c3c0bfd..8bdd1296a 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -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); }); From 258ccd4e60b7a49ea086a32c127f3c59b6e4319a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Benqu=C3=A9?= Date: Wed, 1 Sep 2021 16:19:43 +0100 Subject: [PATCH 2/2] Use default button for Responses/Editor --- www/form/inner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/form/inner.js b/www/form/inner.js index 8bdd1296a..7eb2d8fc2 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -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) ]));