Resolve "Fehler Eingabe Funktion" #238

Merged
ben8 merged 2 commits from 115-fehler-eingabe-funktion into master 2025-05-09 13:54:50 +00:00
2 changed files with 8 additions and 5 deletions
Showing only changes of commit c8e2817b07 - Show all commits
@@ -50,15 +50,16 @@
</div> </div>
{% else %} {% else %}
{% if request.session.mode == "learn" %} {% if request.session.mode == "learn" %}
<form action="">
<input id="textanswer" type="text" placeholder="DEINE ANTWORT" <input id="textanswer" type="text" placeholder="DEINE ANTWORT"
class="answer-option text-center p-2 bg-gray-100 hover:bg-blue-100 rounded-lg transition-colors duration-200 answer-option"> class="answer-option text-center p-2 bg-gray-100 hover:bg-blue-100 rounded-lg transition-colors duration-200 answer-option lg:w-80 ">
<button {% if request.session.mode == "learn" %} <button {% if request.session.mode == "learn" %}
onclick="submitAnswer( -1 );" {% endif %} onclick="submitAnswer( -1 );" {% endif %}
class="text-center p-2 bg-gray-100 hover:bg-blue-100 rounded-lg transition-colors duration-200 answer-option"> class="mt-2 text-center p-2 bg-gray-100 hover:bg-blue-100 rounded-lg transition-colors duration-200 answer-option">
abschicken abschicken
</button> </button>
</form>
{% endif %} {% endif %}
{% endif %} {% endif %}
@@ -27,13 +27,15 @@
{% endfor %} {% endfor %}
</div> </div>
{% else %} {% else %}
<form action="">
<input id="textanswer" type="text" placeholder="DEINE ANTWORT" <input id="textanswer" type="text" placeholder="DEINE ANTWORT"
class="answer-option text-center p-2 bg-gray-100 hover:bg-blue-100 rounded-lg transition-colors duration-200 answer-option"> class="answer-option text-center p-2 bg-gray-100 hover:bg-blue-100 rounded-lg transition-colors duration-200 answer-option lg:w-80">
<button <button
onclick="submitAnswer( -1 );" onclick="submitAnswer( -1 );"
class="text-center p-2 bg-gray-100 hover:bg-blue-100 rounded-lg transition-colors duration-200 answer-option"> class="mt-2 text-center p-2 bg-gray-100 hover:bg-blue-100 rounded-lg transition-colors duration-200 answer-option">
abschicken abschicken
</button> </button>
</form>
{% endif %} {% endif %}
</div> </div>
</div> </div>