Add company welcome and verified NetKingdom sign-in
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a092fe-13b1-7f12-ac74-7d258af4d79c
This commit is contained in:
parent
4175709024
commit
8be281025b
17 changed files with 1044 additions and 23 deletions
12
vergabe_teilnahme/templates/accounts/confirm.html
Normal file
12
vergabe_teilnahme/templates/accounts/confirm.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{% extends "accounts/base.html" %}
|
||||
{% block title %}Anmeldung bestätigen{% endblock %}
|
||||
{% block content %}
|
||||
<h1 class="text-xl font-semibold mb-2">Anmelden bei {{ company_name }}</h1>
|
||||
<p class="mb-6">Sie fahren mit <strong>{{ identity_label }}</strong> fort.</p>
|
||||
<form method="post" action="{% url 'accounts:oidc_confirm' %}">
|
||||
{% csrf_token %}<button type="submit" class="btn-primary w-full">Mit diesem Konto fortfahren</button>
|
||||
</form>
|
||||
<form method="post" action="{% url 'accounts:oidc_start' %}" class="mt-4">
|
||||
{% csrf_token %}<button type="submit">Mit einem anderen Konto anmelden</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
12
vergabe_teilnahme/templates/accounts/welcome.html
Normal file
12
vergabe_teilnahme/templates/accounts/welcome.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{% extends "accounts/base.html" %}
|
||||
{% block title %}Willkommen bei {{ company_name }}{% endblock %}
|
||||
{% block content %}
|
||||
<h1 class="text-xl font-semibold mb-2">Willkommen bei {{ company_name }}</h1>
|
||||
<p class="text-sm text-slate-600 mb-6">Hier bearbeiten Sie die Ausschreibungen Ihres Unternehmens gemeinsam.</p>
|
||||
{% if login_error %}<p role="alert" class="text-red-700 mb-4">Die Anmeldung konnte nicht abgeschlossen werden. Melden Sie sich mit Ihrem persönlichen Unternehmenskonto erneut an.</p>{% endif %}
|
||||
<form method="post" action="{% url 'accounts:oidc_start' %}">
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="btn-primary w-full">Mit NetKingdom anmelden</button>
|
||||
</form>
|
||||
<p class="text-sm text-slate-500 mt-6">Verwenden Sie Ihr eigenes Benutzerkonto und das von Ihnen eingerichtete Passwort. Wenn Sie den Zugang für eine andere Person vorbereitet haben, geben Sie ihr den Unternehmenslink weiter.</p>
|
||||
{% endblock %}
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
</svg>
|
||||
</button>
|
||||
|
||||
<a href="{% url 'home' %}" class="text-brand-700 font-semibold text-lg shrink-0">Vergabe Teilnahme</a>
|
||||
<a href="{% url 'home' %}" class="text-brand-700 font-semibold text-lg shrink-0">Vergabe Teilnahme{% if company_name %}<span class="block text-xs text-slate-500">{{ company_name }}</span>{% endif %}</a>
|
||||
|
||||
<form hx-get="{% url 'suche' %}" hx-target="#search-results" hx-trigger="input changed delay:300ms"
|
||||
class="relative flex-1 max-w-lg mx-auto">
|
||||
|
|
@ -39,8 +39,10 @@
|
|||
<div class="px-3 py-2 text-xs text-slate-500 border-b border-slate-100">
|
||||
{{ request.user.get_rolle_display|default:"Mitarbeiter" }}
|
||||
</div>
|
||||
{% if request.user.has_usable_password %}
|
||||
<a href="{% url 'accounts:password_change' %}"
|
||||
class="block px-3 py-2 text-sm text-slate-700 hover:bg-slate-50">Passwort ändern</a>
|
||||
{% endif %}
|
||||
<form method="post" action="{% url 'accounts:logout' %}">
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="block w-full text-left px-3 py-2 text-sm text-slate-700 hover:bg-slate-50">Abmelden</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue