This is an automated email from the git hooks/post-receive script. New commit to branch feature/multi-ui in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 4b8114dc835ec653872e10a3e5b76f05669f0a5f Author: jcouteau <couteau@codelutin.com> Date: Wed Oct 23 10:22:20 2019 +0200 Better Previous-Next question in results --- .../src/main/web/tag/poll/Results.tag.html | 36 ++++++++++++---------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/pollen-ui-riot-js/src/main/web/tag/poll/Results.tag.html b/pollen-ui-riot-js/src/main/web/tag/poll/Results.tag.html index f3fd176d..475f949a 100644 --- a/pollen-ui-riot-js/src/main/web/tag/poll/Results.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/poll/Results.tag.html @@ -27,23 +27,25 @@ import "../voteCountingType/CoombsDetailResult.tag.html"; import "../voteCountingType/MajorityJudgmentDetailResult.tag.html"; <Results> - <button if={questionToVote > 0} - type="button" - class="c-button c-button--info" - tabindex="1" - onclick={previousQuestion}> - <i class="fa fa-chevron-left " aria-hidden="true"></i> - {_t.previousQuestion} - </button> - - <button if={questionToVote < poll.questions.length - 1} - type="button" - class="c-button c-button--info" - tabindex="1" - onclick={nextQuestion}> - {_t.nextQuestion} - <i class="fa fa-chevron-right " aria-hidden="true"></i> - </button> + <div class="align-center"> + <button type="button" + class="c-button c-button--info" + tabindex="1" + onclick={previousQuestion} + disabled={questionToVote === 0}> + <i class="fa fa-chevron-left " aria-hidden="true"></i> + {_t.previousQuestion} + </button> + + <button type="button" + class="c-button c-button--info" + tabindex="1" + onclick={nextQuestion} + disabled={questionToVote === poll.questions.length - 1}> + {_t.nextQuestion} + <i class="fa fa-chevron-right " aria-hidden="true"></i> + </button> + </div> <Result question={question}/> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.