Setup Tests

This commit is contained in:
2024-05-21 13:29:43 +02:00
parent 2153bb07b9
commit bf6d3b737a
8 changed files with 99 additions and 42 deletions

View File

@ -4,7 +4,7 @@
{% if file %}
<h1>Wir haben {{ detected[0] }} als deinen Kurs ermittelt. Falls er nicht stimmt, kannst du ihn unten auswählen.</h1>
{% if not request.args.get("next") %}
<form action={{ url_for("getSemester") }}>
<form id="autoForm" action={{ url_for("getSemester") }}>
{% else %}
<form action={{ request.args.get("next") }}>
{% endif %}
@ -16,7 +16,7 @@
{% else %}
<h1>Dein Kurs konnte leider nicht ermittelt werden. Klicke den Button, um zur Auswahl zu kommen.</h1>
{% endif %}
<form action={{ url_for("chooseRaplas", next=request.args.get("next")) }}>
<form id="manualForm" action={{ url_for("chooseRaplas", next=request.args.get("next")) }}>
<input type="submit" value="Manuell auswählen!">
</form>
{% endblock %}

View File

@ -1,7 +1,7 @@
{% extends "index.html" %}
{% block content %}
<h1>Verfügbare Raplas </h1>
<form method="post" action={{ url_for ("getRapla") }}>
<form id="dbForm" method="post" action={{ url_for ("getRapla") }}>
<label for="file">Vefügbaren RAPLA wählen! </label>
<select name="file" id="file">
@ -13,7 +13,7 @@
<input type="submit" value="Importieren!">
</form>
<h1>Eigenen Rapla hinzufügen</h1>
<form method="post" action={{ url_for ("getRapla") }}>
<form id="manualForm" method="post" action={{ url_for ("getRapla") }}>
<label for="url">Rapla-URL eingeben, falls Du Deinen Kurs nicht siehst:</label>
<input type="url" name="url" id="url">
<input type="submit" value="Importieren!">