Commit 3fdb62af authored by Stephane Glondu's avatar Stephane Glondu Committed by Stéphane Glondu

Cosmetic changes in question editor

parent 6bdf5235
......@@ -43,6 +43,15 @@ button {
margin-bottom: 2em;
margin-left: 10%;
margin-right: 10%;
font-size: 80%;
padding: 3px;
line-height: 2.2ex;
}
.nh_explain {
font-size: 90%;
line-height: 2.2ex;
font-style: italic;
margin-bottom: 2ex;
}
.result_question {
font-weight: bold;
......
......@@ -236,7 +236,10 @@ let rec createQuestionDiv question answers props =
type_div##.style##.display := if !hybrid_mode then Js.string "block" else Js.string "none";
Dom.appendChild container type_div;
let prop_div_nh = Dom_html.createDiv document in
Dom.appendChild prop_div_nh (document##createTextNode (Js.string "The voter has to enter an integer in front of each answer. The system will accept any integer between 0 and 255 but it is up to you to remove invalid ballots (score too high or candidates not properly ranked) at the end of the election."));
let nh_explain = Dom_html.createDiv document in
nh_explain##.className := Js.string "nh_explain";
Dom.appendChild nh_explain (document##createTextNode (Js.string "The voter has to enter an integer in front of each answer. The system will accept any integer between 0 and 255 but it is up to you to remove invalid ballots (score too high or candidates not properly ranked) at the end of the election."));
Dom.appendChild prop_div_nh nh_explain;
let _type = Js.string "radio" and name = Printf.ksprintf Js.string "type%d" (gensym ()) in
let x = Dom_html.createDiv document in
Dom.appendChild type_div x;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment