Remove Conditional section text in edit mode

This commit is contained in:
yflory 2021-09-02 12:34:12 +02:00
parent 600cca564d
commit eb1d8478d6
1 changed files with 5 additions and 7 deletions

View File

@ -1011,8 +1011,6 @@ define([
get: function (opts, a, n, ev, block) {
var sortable = h('div.cp-form-section-sortable');
var tag = h('div.cp-form-section-edit', [
h('i.fa.fa-question'),
h('span', Messages.form_type_section),
sortable
]);
if (APP.isEditor) {
@ -3311,6 +3309,11 @@ define([
editButtons = h('div.cp-form-edit-buttons-container', [ fakeEdit, del ]);
changeType = h('div.cp-form-block-type', [
model.icon.cloneNode(),
h('span', Messages['form_type_'+type])
]);
// Values
if (data.edit) {
var edit = h('button.btn.btn-default.cp-form-edit-button', [
@ -3364,11 +3367,6 @@ define([
onEdit(temp[uid]);
}
changeType = h('div.cp-form-block-type', [
model.icon.cloneNode(),
h('span', Messages['form_type_'+type])
]);
Messages.form_changeTypeConfirm = "Select the new type of this question and click OK."; // XXX
Messages.form_corruptAnswers = "Changing the type may corrupt existing answers";
if (Array.isArray(model.compatible)) {