mirror of https://github.com/xwiki-labs/cryptpad
Adjust UI for anon/name answer choice in forms
This commit is contained in:
parent
e6073c5684
commit
40d92a5423
|
@ -447,6 +447,6 @@
|
|||
@cp_form-poll-yes: fade(@cryptpad_color_light_green, 75%);
|
||||
@cp_form-poll-maybe: @cryptpad_color_grey_300;
|
||||
@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-palette2: @cp_palette-dark;
|
||||
|
|
|
@ -477,10 +477,10 @@
|
|||
.cp-form-anon-answer {
|
||||
text-align: center;
|
||||
margin: 20px 0 30px 0;
|
||||
.cp-radio {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
.cp-form-anon-answer-input {
|
||||
|
@ -575,7 +575,6 @@
|
|||
flex: 1;
|
||||
}
|
||||
.cp-form-required-tag {
|
||||
background: fade(@cryptpad_text_col, 15%);
|
||||
padding: 5px;
|
||||
margin-top: -10px;
|
||||
margin-right: -10px;
|
||||
|
|
|
@ -3032,7 +3032,9 @@ define([
|
|||
anonOffContent, false, {
|
||||
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', [
|
||||
Messages.form_answerChoice,
|
||||
anonRadioOn,
|
||||
anonRadioOff,
|
||||
]);
|
||||
|
@ -3268,8 +3270,8 @@ define([
|
|||
}
|
||||
|
||||
return h('div.cp-form-send-container', [
|
||||
invalid,
|
||||
errors,
|
||||
invalid,
|
||||
h('div.cp-form-anon-answer', [
|
||||
radioContainer
|
||||
]),
|
||||
|
|
Loading…
Reference in New Issue