Commit 4534170d authored by Björn Eyselein's avatar Björn Eyselein
Browse files

Fix weiter Button

parent fe363cde
......@@ -2,23 +2,23 @@
@(user: User, completeFlashcard: CompleteFlashcard, isRepeating: Boolean)(implicit requestHeader: RequestHeader, messagesProvider: MessagesProvider)
@title = @{
@title = @{
"Lernen"
}
}
@scripts = {
@scripts = {
<script src="@routes.Assets.versioned("learn.js")"></script>
}
}
@choiceInputType = @{
@choiceInputType = @{
completeFlashcard.flashcard.cardType match {
case CardType.SingleChoice => "radio"
case CardType.MultipleChoice => "checkbox"
case _ => ""
}
}
}
@main(title, Some(user), scripts) {
@main(title, Some(user), scripts) {
@helper.CSRF.formField
......@@ -42,7 +42,6 @@
}
case CardType.SingleChoice | CardType.MultipleChoice => {
@for(answer <- scala.util.Random.shuffle(completeFlashcard.choiceAnswers)) {
<p>
<label for="choice_@answer.id">
......@@ -51,7 +50,6 @@
</label>
</p>
}
}
}
......@@ -66,11 +64,11 @@
</button>
<a
@if(isRepeating) {
href="@routes.HomeController.startLearning(completeFlashcard.flashcard.langId, completeFlashcard.flashcard.collId)"
} else {
href="@routes.HomeController.startRepeating(completeFlashcard.flashcard.langId, completeFlashcard.flashcard.collId)"
} else {
href="@routes.HomeController.startLearning(completeFlashcard.flashcard.langId, completeFlashcard.flashcard.collId)"
}
id="nextFlashcardBtn" class="btn btn-large waves-effect blue disabled">Weiter</a>
</div>
}
}
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