Adjust UI for anon/name answer choice in forms

pull/1/head
David Benqué 3 years ago
parent 5c260c2ea8
commit e4fe445c16

@ -447,6 +447,6 @@
@cp_form-poll-yes: fade(@cryptpad_color_light_green, 75%); @cp_form-poll-yes: fade(@cryptpad_color_light_green, 75%);
@cp_form-poll-maybe: @cryptpad_color_grey_300; @cp_form-poll-maybe: @cryptpad_color_grey_300;
@cp_form-poll-yes-color: @cryptpad_color_green; @cp_form-poll-yes-color: @cryptpad_color_green;
@cp_form-invalid: @cryptpad_color_red; @cp_form-invalid: @cp_alerts-danger-text;
@cp_form-palette: @cp_palette; @cp_form-palette: @cp_palette;
@cp_form-palette2: @cp_palette-dark; @cp_form-palette2: @cp_palette-dark;

@ -479,10 +479,10 @@
.cp-form-anon-answer { .cp-form-anon-answer {
text-align: center; text-align: center;
margin: 20px 0 30px 0; margin: 20px 0 30px 0;
.cp-radio {
margin-top: 10px;
}
.cp-form-required-radio.cp-radio-required { .cp-form-required-radio.cp-radio-required {
background: fade(@cryptpad_text_col, 15%);
padding: 3px;
border: 2px solid @cryptpad_color_red;
color: @cp_form-invalid; color: @cp_form-invalid;
} }
.cp-form-anon-answer-input { .cp-form-anon-answer-input {
@ -577,7 +577,6 @@
flex: 1; flex: 1;
} }
.cp-form-required-tag { .cp-form-required-tag {
background: fade(@cryptpad_text_col, 15%);
padding: 5px; padding: 5px;
margin-top: -10px; margin-top: -10px;
margin-right: -10px; margin-right: -10px;

@ -3032,7 +3032,9 @@ define([
anonOffContent, false, { anonOffContent, false, {
input: { value: 0 }, input: { value: 0 },
}); });
Messages.form_answerChoice = "Please choose how you would like to answer this form: "; // XXX
var radioContainer = h('div.cp-form-required-radio', [ var radioContainer = h('div.cp-form-required-radio', [
Messages.form_answerChoice,
anonRadioOn, anonRadioOn,
anonRadioOff, anonRadioOff,
]); ]);
@ -3268,8 +3270,8 @@ define([
} }
return h('div.cp-form-send-container', [ return h('div.cp-form-send-container', [
invalid,
errors, errors,
invalid,
h('div.cp-form-anon-answer', [ h('div.cp-form-anon-answer', [
radioContainer radioContainer
]), ]),

Loading…
Cancel
Save