dualis-poc

This commit is contained in:
2023-11-21 23:24:31 +01:00
parent c111b93480
commit b225c2bc71
9 changed files with 173 additions and 18 deletions

View File

@ -8,15 +8,23 @@
<body>
<h1>Verfügbare Raplas </h1>
{% block content %}
{% for i in range (raplas[0]|length) %}
<h2> <a href={{ url_for("getRapla", file=raplas[1][i]) }}> {{ raplas [0] [i] }}</a> </h2>
{% endfor %}
<form method="post" action={{ url_for ("getRapla") }}>
<label for="file">Vefügbaren RAPLA wählen! </label>
<select name="file" id="file">
<option value = "none" selected disabled hidden></option>
{% for i in range (raplas[0]|length) %}
<option value= {{ raplas [1] [i] }}>{{ raplas [0] [i] }} </option>
{% endfor %}
</select>
<input type="submit" value="Importieren!">
</form>
{% endblock %}
<h1>Eigenen Rapla hinzufügen</h1>
<form>
<form method="post" action={{ url_for ("getRapla") }}>
<label for="url">Rapla-URL eingeben, falls Du deinen Kurs nicht siehst:</label>
<input type="text" name="url" id="url">
<input type="submit" value="Importieren!" formaction={{ url_for("getRapla", new="True", url=url) }}>
<input type="submit" value="Importieren!">
</form>
</body>
</html>