rapla-poc

This commit is contained in:
2023-11-20 14:21:55 +01:00
parent 3709f8d019
commit c111b93480
5 changed files with 113 additions and 8 deletions

22
templates/rapla.html Normal file
View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="de">
<head>
<title> {{headermessage}} 👀</title>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}">
<script async src="https://analytics.paulmartin.cloud/script.js" data-website-id="1c02dacf-6952-4560-a303-0c25f432c48d"></script>
</head>
<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 %}
{% endblock %}
<h1>Eigenen Rapla hinzufügen</h1>
<form>
<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) }}>
</form>
</body>
</html>