|
|
@ -851,12 +851,12 @@ define([
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
printResults: function () { return; },
|
|
|
|
printResults: function () { return; },
|
|
|
|
icon: h('i.fa.fa-info')
|
|
|
|
icon: h('i.cptools.cptools-form-paragraph')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
page: {
|
|
|
|
page: {
|
|
|
|
get: function () {
|
|
|
|
get: function () {
|
|
|
|
var tag = h('div.cp-form-page-break-edit', [
|
|
|
|
var tag = h('div.cp-form-page-break-edit', [
|
|
|
|
h('i.fa.fa-hand-o-right'),
|
|
|
|
h('i.cptools.cptools-form-page-break'),
|
|
|
|
h('span', Messages.form_type_page)
|
|
|
|
h('span', Messages.form_type_page)
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
return {
|
|
|
|
return {
|
|
|
@ -865,7 +865,7 @@ define([
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
printResults: function () { return; },
|
|
|
|
printResults: function () { return; },
|
|
|
|
icon: h('i.fa.fa-hand-o-right')
|
|
|
|
icon: h('i.cptools.cptools-form-page-break')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
var TYPES = {
|
|
|
|
var TYPES = {
|
|
|
@ -913,7 +913,7 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
return h('div.cp-form-results-type-text', results);
|
|
|
|
return h('div.cp-form-results-type-text', results);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
icon: h('i.fa.fa-font')
|
|
|
|
icon: h('i.cptools.cptools-form-text')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
textarea: {
|
|
|
|
textarea: {
|
|
|
|
defaultOpts: {
|
|
|
|
defaultOpts: {
|
|
|
@ -1030,7 +1030,7 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
return h('div.cp-form-results-type-radio', results);
|
|
|
|
return h('div.cp-form-results-type-radio', results);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
icon: h('i.fa.fa-list-ul')
|
|
|
|
icon: h('i.cptools.cptools-form-list-radio')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
multiradio: {
|
|
|
|
multiradio: {
|
|
|
|
defaultOpts: {
|
|
|
|
defaultOpts: {
|
|
|
@ -1142,7 +1142,7 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
return h('div.cp-form-results-type-radio', results);
|
|
|
|
return h('div.cp-form-results-type-radio', results);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
icon: h('i.fa.fa-list-ul')
|
|
|
|
icon: h('i.cptools.cptools-form-grid-radio')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
checkbox: {
|
|
|
|
checkbox: {
|
|
|
|
defaultOpts: {
|
|
|
|
defaultOpts: {
|
|
|
@ -1231,7 +1231,7 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
return h('div.cp-form-results-type-radio', results);
|
|
|
|
return h('div.cp-form-results-type-radio', results);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
icon: h('i.fa.fa-check-square-o')
|
|
|
|
icon: h('i.cptools.cptools-form-list-check')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
multicheck: {
|
|
|
|
multicheck: {
|
|
|
|
defaultOpts: {
|
|
|
|
defaultOpts: {
|
|
|
@ -1355,7 +1355,7 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
return h('div.cp-form-results-type-radio', results);
|
|
|
|
return h('div.cp-form-results-type-radio', results);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
icon: h('i.fa.fa-list-ul')
|
|
|
|
icon: h('i.cptools.cptools-form-grid-check')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
poll: {
|
|
|
|
poll: {
|
|
|
|
defaultOpts: {
|
|
|
|
defaultOpts: {
|
|
|
@ -1443,7 +1443,7 @@ define([
|
|
|
|
var lines = makePollTable(_answers, form[uid].opts);
|
|
|
|
var lines = makePollTable(_answers, form[uid].opts);
|
|
|
|
return h('div.cp-form-type-poll', lines);
|
|
|
|
return h('div.cp-form-type-poll', lines);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
icon: h('i.cptools.cptools-poll')
|
|
|
|
icon: h('i.cptools.cptools-form-poll')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
sort: {
|
|
|
|
sort: {
|
|
|
|
defaultOpts: {
|
|
|
|
defaultOpts: {
|
|
|
@ -1818,7 +1818,7 @@ define([
|
|
|
|
var full = !uid;
|
|
|
|
var full = !uid;
|
|
|
|
var idx = content.order.indexOf(uid);
|
|
|
|
var idx = content.order.indexOf(uid);
|
|
|
|
var addControl = function (type) {
|
|
|
|
var addControl = function (type) {
|
|
|
|
var btn = h('button.btn.small', {
|
|
|
|
var btn = h('button.btn.btn-default', {
|
|
|
|
title: full ? undefined : Messages['form_type_'+type]
|
|
|
|
title: full ? undefined : Messages['form_type_'+type]
|
|
|
|
}, [
|
|
|
|
}, [
|
|
|
|
(TYPES[type] || STATIC_TYPES[type]).icon.cloneNode(),
|
|
|
|
(TYPES[type] || STATIC_TYPES[type]).icon.cloneNode(),
|
|
|
@ -1849,7 +1849,7 @@ define([
|
|
|
|
h('div.cp-form-creator-types', controls),
|
|
|
|
h('div.cp-form-creator-types', controls),
|
|
|
|
h('div.cp-form-creator-types', staticControls)
|
|
|
|
h('div.cp-form-creator-types', staticControls)
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
var add = h('div', Messages.tag_add);
|
|
|
|
var add = h('div', [h('i.fa.fa-plus')]);
|
|
|
|
if (!full) {
|
|
|
|
if (!full) {
|
|
|
|
add = h('button.btn.cp-form-creator-inline-add', {
|
|
|
|
add = h('button.btn.cp-form-creator-inline-add', {
|
|
|
|
title: Messages.tag_add
|
|
|
|
title: Messages.tag_add
|
|
|
|