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

pull/1/head
yflory 3 years ago
commit 26a25e012c

@ -120,7 +120,6 @@
} }
.cp-form-creator-settings { .cp-form-creator-settings {
padding: 30px;
.cp-form-actions { .cp-form-actions {
margin-top: 5px; margin-top: 5px;
} }
@ -130,6 +129,9 @@
.cp-forms-results-participant { .cp-forms-results-participant {
display: flex; display: flex;
flex-flow: column; flex-flow: column;
button {
margin-bottom: 20px;
}
} }
} }
div.cp-form-filler-container { div.cp-form-filler-container {
@ -139,6 +141,7 @@
} }
div.cp-form-creator-control { div.cp-form-creator-control {
padding: 10px; padding: 10px;
margin-top: 10px;
display: flex; display: flex;
flex-flow: column; flex-flow: column;
width: 300px; width: 300px;

@ -3013,10 +3013,16 @@ define([
} }
var makeFormSettings = function () { var makeFormSettings = function () {
Messages.form_preview = "Preview participant page"; // XXX Messages.form_preview = "Preview form"; // XXX
Messages.form_geturl = "Copy participant link"; // XXX Messages.form_geturl = "Copy link"; // XXX
var previewBtn = h('button.btn.btn-primary', Messages.form_preview); var previewBtn = h('button.btn.btn-primary', [
var participantBtn = h('button.btn.btn-primary', Messages.form_geturl); h('i.fa.fa-eye'),
Messages.form_preview
]);
var participantBtn = h('button.btn.btn-primary',[
h('i.fa.fa-link'),
Messages.form_geturl
]);
var preview = h('div.cp-forms-results-participant', [previewBtn, participantBtn]); var preview = h('div.cp-forms-results-participant', [previewBtn, participantBtn]);
$(previewBtn).click(function () { $(previewBtn).click(function () {
sframeChan.event('EV_OPEN_VIEW_URL'); sframeChan.event('EV_OPEN_VIEW_URL');

Loading…
Cancel
Save