Initialisierung: Übertragung aus altem Repository

This commit is contained in:
2021-07-12 00:49:07 +02:00
commit c7f0c6a1c4
80 changed files with 12063 additions and 0 deletions
+67
View File
@@ -0,0 +1,67 @@
{% extends 'base.html.j2' %}
{#
NateMan Nachschreibtermin-Manager
templates/auth/account.html.j2
Copyright © 2020 Niklas Elsbrock
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
#}
{% block title %}Benutzereinstellungen{% endblock %}
{% block header %}Benutzereinstellungen{% endblock %}
{% block content %}
<form method="post">
<div class="table-aligned">
<div>
<div><label for="current-password-input">Aktuelles Passwort:</label></div>
<div>
<input type="password" name="current-password" id="current-password-input" autocomplete="current-password"
required autofocus>
</div>
</div>
<div>
<div><label for="new-email-input">E-Mail-Adresse:</label></div>
<div>
<input type="email" name="new-email" id="new-email-input"
value="{% if g.lehrer.email %}{{ g.lehrer.email }}{% endif %}">
</div>
{% if g.lehrer.email is not none %}
<div>
{% if g.lehrer.is_confirmed %}
<span class="positive-status" title="bestätigt"></span>
{% else %}
<span class="negative-status">nicht bestätigt</span>
{% endif %}
</div>
{% endif %}
</div>
<div>
<div><label for="new-password-input">Neues Passwort:</label></div>
<div>
<input type="password" name="new-password" id="new-password-input" autocomplete="new-password" minlength="6">
</div>
</div>
<div>
<div><label for="new-password-confirm-input">&#x21B3; wiederholen:</label></div>
<div>
<input type="password" name="new-password-confirm" id="new-password-confirm-input" autocomplete="new-password">
</div>
</div>
</div>
<p><input type="submit" value="Speichern"></p>
</form>
{% endblock %}
+48
View File
@@ -0,0 +1,48 @@
{% extends 'base.html.j2' %}
{#
NateMan Nachschreibtermin-Manager
templates/auth/login.html.j2
Copyright © 2020 Niklas Elsbrock
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
#}
{% block title %}Anmelden{% endblock %}
{% block header %}Anmelden{% endblock %}
{% block content %}
<form method="post">
<div class="table-aligned">
<div>
<div><label for="kuerzel-input">Lehrerkürzel:</label></div>
<div><input type="text" name="kuerzel" id="kuerzel-input" autocomplete="username" required autofocus></div>
</div>
<div>
<div><label for="password-input">Passwort:</label></div>
<div><input type="password" name="password" id="password-input" autocomplete="current-password" required></div>
</div>
<div>
<div><label for="remember-me-cb">Angemeldet bleiben:</label></div>
<div><input type="checkbox" name="remember-me" id="remember-me-cb"></div>
</div>
</div>
<p>
<input type="submit" value="Anmelden">
<a href="{{ url_for('auth.password_reset') }}">Passwort vergessen</a>
</p>
</form>
{% endblock %}
@@ -0,0 +1,48 @@
{% extends 'base.html.j2' %}
{#
NateMan Nachschreibtermin-Manager
templates/auth/password-change.html.j2
Copyright © 2020 Niklas Elsbrock
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
#}
{% block title %}Neues Passwort{% endblock %}
{% block header %}Neues Passwort{% endblock %}
{% block content %}
<p>Bitte geben Sie ein neues Passwort für Ihr Benutzerkonto ein.</p>
<form method="post">
<div class="table-aligned">
<div>
<div><label for="new-password-input">Neues Passwort:</label></div>
<div>
<input type="password" name="new-password" id="new-password-input" autocomplete="new-password" minlength="6"
required autofocus>
</div>
</div>
<div>
<div><label for="new-password-confirm-input">&#x21B3; wiederholen:</label></div>
<div>
<input type="password" name="new-password-confirm" id="new-password-confirm-input" autocomplete="new-password"
required>
</div>
</div>
</div>
<p><input type="submit" value="Speichern"></p>
</form>
{% endblock %}
@@ -0,0 +1,46 @@
{% extends 'base.html.j2' %}
{#
NateMan Nachschreibtermin-Manager
templates/auth/password-reset-do.html.j2
Copyright © 2020 Niklas Elsbrock
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
#}
{% block title %}Passwort zurücksetzen{% endblock %}
{% block header %}Passwort zurücksetzen{% endblock %}
{% block content %}
<form method="post">
<div class="table-aligned">
<div>
<div><label for="new-password-input">Neues Passwort:</label></div>
<div>
<input type="password" name="new-password" id="new-password-input" autocomplete="new-password" minlength="6"
required autofocus>
</div>
</div>
<div>
<div><label for="new-password-confirm-input">&#x21B3; wiederholen:</label></div>
<div>
<input type="password" name="new-password-confirm" id="new-password-confirm-input" autocomplete="new-password"
required>
</div>
</div>
</div>
<p><input type="submit" value="Passwort setzen"></p>
</form>
{% endblock %}
@@ -0,0 +1,43 @@
{% extends 'base.html.j2' %}
{#
NateMan Nachschreibtermin-Manager
templates/auth/password-reset-send.html.j2
Copyright © 2020 Niklas Elsbrock
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
#}
{% block title %}Passwort zurücksetzen{% endblock %}
{% block header %}Passwort zurücksetzen{% endblock %}
{% block content %}
<form method="post">
<div class="table-aligned">
<div>
<div><label for="lehrer-kuerzel-input">Lehrerkürzel:</label></div>
<div>
<input type="text" name="lehrer-kuerzel" id="lehrer-kuerzel-input" autocomplete="username" required autofocus>
</div>
</div>
<div>
<div><label for="email-address-input">E-Mail-Adresse:</label></div>
<div><input type="email" name="email-address" id="email-address-input" required></div>
</div>
</div>
<p><input type="submit" value="Absenden"></p>
</form>
{% endblock %}