decabeza
1eb52fb045
Add read more links to poll question component
2022-10-18 11:04:40 +02:00
decabeza
36e452437e
Add questions with mutiple answers to polls public interface
...
The `reload` method added to max_votes validation is needed because the
author gets here with some changes because of the around_action
`switch_locale`, which adds some changes to the current user record and
therefore, the lock method raises an exception when trying to lock it
requiring us to save or discard those record changes.
2022-10-18 11:04:40 +02:00
Senén Rodero Rodríguez
7df0e9a961
Allow to remove poll answers
2022-10-18 11:04:40 +02:00
Senén Rodero Rodríguez
f90d0d9c4d
Show poll user answers in subsequent sessions
2022-10-18 10:39:00 +02:00
Senén Rodero Rodríguez
4eb4851aba
Rename component as now it renders all question answers additional information
2022-10-18 10:38:59 +02:00
decabeza
e44fe7634a
Change the rendering order of answer additional information
2022-10-18 10:38:59 +02:00
decabeza
4fba76f64f
Do not show answers without additional information
2022-10-18 10:38:59 +02:00
decabeza
b92b38f48f
Show question title before answers additional information
2022-10-18 10:38:59 +02:00
Senén Rodero Rodríguez
8311e7e6b8
Extract component to render answers additional information
2022-10-18 10:38:08 +02:00
Senén Rodero Rodríguez
ed7968349d
Extract Poll::Results::Question component to render question results
2022-10-18 10:38:08 +02:00
Senén Rodero Rodríguez
7efd7c89ef
Extract Polls::QuestionComponent
2022-10-18 10:38:08 +02:00
Senén Rodero Rodríguez
df65ba57cc
Use the same order criteria always
...
The relation of question with its questions answers is ordered by default by
`given_order`.
2022-10-18 10:38:08 +02:00
Senén Rodero Rodríguez
0ec4d52ed1
Simplify Polls::Questions::AnswersComponent view
2022-10-18 10:38:07 +02:00
Senén Rodero Rodríguez
bd58023a8a
Extract polls questions answers partial into a component
2022-10-17 18:03:36 +02:00