Add wide variant of simple answers
This commit is contained in:
parent
b3c1013cac
commit
de061c2bec
3 changed files with 19 additions and 0 deletions
|
@ -85,6 +85,16 @@ header {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.answer-kind-simple {
|
||||||
|
margin-top: 1rem;
|
||||||
|
text-align: end;
|
||||||
|
}
|
||||||
|
|
||||||
|
.simple-answer-wide {
|
||||||
|
width: 30rem;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.answer-kind-image {
|
.answer-kind-image {
|
||||||
.answer-kind-image-container {
|
.answer-kind-image-container {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<input id="<%= "question_answer_#{question.id}" %>"
|
<input id="<%= "question_answer_#{question.id}" %>"
|
||||||
|
class="<%= "simple-answer-wide" if question.data&.fetch("wide") %>"
|
||||||
type="text"
|
type="text"
|
||||||
value="<%= question.answer&.data || '' %>"
|
value="<%= question.answer&.data || '' %>"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
|
|
8
test/fixtures/questions.yml
vendored
8
test/fixtures/questions.yml
vendored
|
@ -172,6 +172,7 @@ culture_neuzekes:
|
||||||
culture_strijkijzer:
|
culture_strijkijzer:
|
||||||
section: culture
|
section: culture
|
||||||
text: Voor welke drie dingen gebruikt een Gentenaar hun strijkijzer en/of strijkplank?
|
text: Voor welke drie dingen gebruikt een Gentenaar hun strijkijzer en/of strijkplank?
|
||||||
|
data: '<%= JSON.dump({ wide: true }) %>'
|
||||||
answer_kind: <%= Question.answer_kinds[:simple] %>
|
answer_kind: <%= Question.answer_kinds[:simple] %>
|
||||||
question_kind: <%= Question.question_kinds[:simple] %>
|
question_kind: <%= Question.question_kinds[:simple] %>
|
||||||
|
|
||||||
|
@ -184,6 +185,7 @@ culture_kangoeroe:
|
||||||
culture_waterzooi:
|
culture_waterzooi:
|
||||||
section: culture
|
section: culture
|
||||||
text: Som de ingrediënten op van een Gentse waterzooi.
|
text: Som de ingrediënten op van een Gentse waterzooi.
|
||||||
|
data: '<%= JSON.dump({ wide: true }) %>'
|
||||||
answer_kind: <%= Question.answer_kinds[:simple] %>
|
answer_kind: <%= Question.answer_kinds[:simple] %>
|
||||||
question_kind: <%= Question.question_kinds[:simple] %>
|
question_kind: <%= Question.question_kinds[:simple] %>
|
||||||
|
|
||||||
|
@ -487,36 +489,42 @@ connections_sport:
|
||||||
translations_lousbirge:
|
translations_lousbirge:
|
||||||
section: translations
|
section: translations
|
||||||
text: "We goan eu in Lousbirge steeke."
|
text: "We goan eu in Lousbirge steeke."
|
||||||
|
data: '<%= JSON.dump({ wide: true }) %>'
|
||||||
answer_kind: <%= Question.answer_kinds[:simple] %>
|
answer_kind: <%= Question.answer_kinds[:simple] %>
|
||||||
question_kind: <%= Question.question_kinds[:simple] %>
|
question_kind: <%= Question.question_kinds[:simple] %>
|
||||||
|
|
||||||
translations_alvekoate:
|
translations_alvekoate:
|
||||||
section: translations
|
section: translations
|
||||||
text: "Da weete mijn kluuten uuk en 't zijn gîen alvekoate."
|
text: "Da weete mijn kluuten uuk en 't zijn gîen alvekoate."
|
||||||
|
data: '<%= JSON.dump({ wide: true }) %>'
|
||||||
answer_kind: <%= Question.answer_kinds[:simple] %>
|
answer_kind: <%= Question.answer_kinds[:simple] %>
|
||||||
question_kind: <%= Question.question_kinds[:simple] %>
|
question_kind: <%= Question.question_kinds[:simple] %>
|
||||||
|
|
||||||
translations_deursteeke:
|
translations_deursteeke:
|
||||||
section: translations
|
section: translations
|
||||||
text: "De koarte deursteeke."
|
text: "De koarte deursteeke."
|
||||||
|
data: '<%= JSON.dump({ wide: true }) %>'
|
||||||
answer_kind: <%= Question.answer_kinds[:simple] %>
|
answer_kind: <%= Question.answer_kinds[:simple] %>
|
||||||
question_kind: <%= Question.question_kinds[:simple] %>
|
question_kind: <%= Question.question_kinds[:simple] %>
|
||||||
|
|
||||||
translations_dampuurte:
|
translations_dampuurte:
|
||||||
section: translations
|
section: translations
|
||||||
text: "'k Goa eu mee eu muile teege de Dampuurte plakke, dadde viertien doage bruine ziepe schijt."
|
text: "'k Goa eu mee eu muile teege de Dampuurte plakke, dadde viertien doage bruine ziepe schijt."
|
||||||
|
data: '<%= JSON.dump({ wide: true }) %>'
|
||||||
answer_kind: <%= Question.answer_kinds[:simple] %>
|
answer_kind: <%= Question.answer_kinds[:simple] %>
|
||||||
question_kind: <%= Question.question_kinds[:simple] %>
|
question_kind: <%= Question.question_kinds[:simple] %>
|
||||||
|
|
||||||
translations_wielekes:
|
translations_wielekes:
|
||||||
section: translations
|
section: translations
|
||||||
text: "O mijn tante wielekes g'hat, 't was een kerre."
|
text: "O mijn tante wielekes g'hat, 't was een kerre."
|
||||||
|
data: '<%= JSON.dump({ wide: true }) %>'
|
||||||
answer_kind: <%= Question.answer_kinds[:simple] %>
|
answer_kind: <%= Question.answer_kinds[:simple] %>
|
||||||
question_kind: <%= Question.question_kinds[:simple] %>
|
question_kind: <%= Question.question_kinds[:simple] %>
|
||||||
|
|
||||||
translations_soepe:
|
translations_soepe:
|
||||||
section: translations
|
section: translations
|
||||||
text: "Veur em schept God den dag en moed'r schept de soepe."
|
text: "Veur em schept God den dag en moed'r schept de soepe."
|
||||||
|
data: '<%= JSON.dump({ wide: true }) %>'
|
||||||
answer_kind: <%= Question.answer_kinds[:simple] %>
|
answer_kind: <%= Question.answer_kinds[:simple] %>
|
||||||
question_kind: <%= Question.question_kinds[:simple] %>
|
question_kind: <%= Question.question_kinds[:simple] %>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue