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

23
templates/login.html Normal file
View File

@ -0,0 +1,23 @@
<!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>
<link rel="shortcut icon" type="image/x-icon" href="temp.png">
<body>
<div class="cs">
<form method="post" action={{ url_for ("login_post") }}>
<label for="email" >Dualis-Email</label>
<input class="input" type="email" name="email" placeholder="Email-Adresse" autofocus="">
<label for="password">Dualis-Passwort</label>
<input class="input" type="password" name="password" placeholder="Passwort">
<button class="button">Login</button>
</form>
</div>
</body>
</html>

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>