snapshot: preserve shared base shell foundation
This commit is contained in:
22
backend/workflows/templates/workflows/base_shell.html
Normal file
22
backend/workflows/templates/workflows/base_shell.html
Normal file
@@ -0,0 +1,22 @@
|
||||
{% load static i18n %}
|
||||
{% get_current_language as CURRENT_LANGUAGE %}
|
||||
<!doctype html>
|
||||
<html lang="{{ CURRENT_LANGUAGE }}">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{% block title %}{% endblock %}</title>
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/buttons.css' %}" />
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/app_chrome.css' %}" />
|
||||
{% block extra_css %}{% endblock %}
|
||||
{% block extra_head %}{% endblock %}
|
||||
</head>
|
||||
<body{% block body_attrs %}{% endblock %}>
|
||||
{% block pre_shell %}{% endblock %}
|
||||
<div class="{% block shell_class %}shell{% endblock %}">
|
||||
{% block shell_header %}{% endblock %}
|
||||
{% block shell_body %}{% endblock %}
|
||||
</div>
|
||||
{% block extra_scripts %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,11 +1,9 @@
|
||||
{% extends 'workflows/base_shell.html' %}
|
||||
{% load static %}
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Developer Handbook</title>
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/buttons.css' %}" />
|
||||
|
||||
{% block title %}Developer Handbook{% endblock %}
|
||||
|
||||
{% block extra_head %}
|
||||
<style>
|
||||
body { margin: 0; font-family: Arial, sans-serif; background: #f4f8ff; color: #1b2b43; padding: 20px; }
|
||||
.shell { max-width: 1120px; margin: 0 auto; background: #fff; border: 1px solid #d7e0ea; border-radius: 14px; padding: 18px; }
|
||||
@@ -24,15 +22,14 @@
|
||||
.box { border: 1px solid #d7e0ea; border-radius: 10px; padding: 10px; background: #fcfdff; margin: 8px 0 12px; }
|
||||
.note { border-left: 4px solid #000078; padding: 8px 10px; background: #f4f8ff; margin: 10px 0; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="shell">
|
||||
<img class="brand-logo" src="{% static 'workflows/img/tubco-logo.svg' %}" alt="TUB/CO Logo" />
|
||||
{% endblock %}
|
||||
|
||||
{% block shell_body %}
|
||||
{% include 'workflows/includes/app_header.html' with header_show_home=1 header_inside_shell=1 %}
|
||||
<div class="top">
|
||||
<h1>Developer Handbook</h1>
|
||||
<div style="display:flex; gap:8px; flex-wrap:wrap;">
|
||||
<a class="btn btn-secondary" href="/admin-tools/wiki/">Project Wiki</a>
|
||||
<a class="btn btn-secondary" href="/">Back to Home</a>
|
||||
</div>
|
||||
</div>
|
||||
<p class="sub">Engineering runbook for development, deployment, maintenance, and extension of the TUBCO Onboarding & Offboarding Portal.</p>
|
||||
@@ -68,6 +65,7 @@
|
||||
<ul>
|
||||
<li><code>/backend/config/</code>: Django settings, WSGI, URL config</li>
|
||||
<li><code>/backend/workflows/</code>: application logic, views, models, tasks, templates, static assets</li>
|
||||
<li><code>/backend/workflows/templates/workflows/base_shell.html</code>: standard page shell for new staff-facing pages</li>
|
||||
<li><code>/backend/media/templates/</code>: PDF HTML templates and letterhead source files</li>
|
||||
<li><code>/backend/media/pdfs/</code>: generated PDF outputs on host volume</li>
|
||||
<li><code>/backend/locale/</code>: translation catalogs</li>
|
||||
@@ -193,6 +191,7 @@ docker compose exec -T web python manage.py run_staging_e2e_check</code></pre>
|
||||
<ul>
|
||||
<li>Use <code>check</code> after model/view/template changes.</li>
|
||||
<li>Use targeted shell checks for render validation when changing templates or routes.</li>
|
||||
<li>New pages should extend <code>base_shell.html</code> and keep header/frame logic out of page-local templates.</li>
|
||||
<li>Use real PDF generation tests when changing PDF templates or intro/offboarding document logic.</li>
|
||||
<li>Use the dedicated Release Checklist page as the final go/no-go runbook before shipping changes.</li>
|
||||
<li>The automated bilingual smoke tests now cover DE/EN request language capture and English email-template rendering.</li>
|
||||
@@ -230,6 +229,5 @@ docker compose exec -T web python manage.py run_staging_e2e_check</code></pre>
|
||||
<li>Prefer standard framework workflows over custom one-off maintenance scripts.</li>
|
||||
<li>When adding new features, document them in both the Project Wiki and this handbook if they change engineering workflow.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -6,14 +6,12 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{% trans "Form Builder" %}</title>
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/buttons.css' %}" />
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/app_chrome.css' %}" />
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/form_builder.css' %}" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="shell">
|
||||
<div class="topbar">
|
||||
<img class="brand-logo" src="{% static 'workflows/img/tubco-logo.svg' %}" alt="TUB/CO Logo" />
|
||||
<a class="btn btn-secondary" href="/">{% trans "Zur Startseite" %}</a>
|
||||
</div>
|
||||
{% include 'workflows/includes/app_header.html' with header_show_home=1 header_inside_shell=1 %}
|
||||
|
||||
<header class="header">
|
||||
<h1>{% trans "Form Builder" %}</h1>
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
{% extends 'workflows/base_shell.html' %}
|
||||
{% load static i18n %}
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{% trans "Handbook" %}</title>
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/buttons.css' %}" />
|
||||
|
||||
{% block title %}{% trans "Handbook" %}{% endblock %}
|
||||
|
||||
{% block extra_head %}
|
||||
<style>
|
||||
body { margin: 0; font-family: Arial, sans-serif; background: #f4f8ff; color: #1b2b43; padding: 20px; }
|
||||
.shell { max-width: 1120px; margin: 0 auto; background: #fff; border: 1px solid #d7e0ea; border-radius: 14px; padding: 18px; }
|
||||
@@ -23,13 +21,12 @@
|
||||
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
|
||||
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="shell">
|
||||
<img class="brand-logo" src="{% static 'workflows/img/tubco-logo.svg' %}" alt="TUB/CO Logo" />
|
||||
{% endblock %}
|
||||
|
||||
{% block shell_body %}
|
||||
{% include 'workflows/includes/app_header.html' with header_show_home=1 header_inside_shell=1 %}
|
||||
<div class="top">
|
||||
<h1>{% trans "Handbook" %}</h1>
|
||||
<a class="btn btn-secondary" href="/">{% trans "Back to Home" %}</a>
|
||||
</div>
|
||||
<p class="sub">{% trans "Single documentation entry point for both operational knowledge and long-term engineering knowledge." %}</p>
|
||||
|
||||
@@ -79,6 +76,5 @@
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{% trans "TUBCO Onboarding & Offboarding Portal" %}</title>
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/buttons.css' %}" />
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/app_chrome.css' %}" />
|
||||
<style>
|
||||
:root {
|
||||
--brand-blue: #000078;
|
||||
@@ -446,7 +447,7 @@
|
||||
<div class="shell">
|
||||
<div class="topbar">
|
||||
<div class="brand-wrap">
|
||||
<img class="brand-logo" src="{% static 'workflows/img/tubco-logo.svg' %}" alt="TUB/CO Logo" />
|
||||
<a class="app-brand" href="/"><img class="brand-logo" src="{% static 'workflows/img/tubco-logo.svg' %}" alt="TUB/CO Logo" /></a>
|
||||
</div>
|
||||
<div class="quick-actions">
|
||||
<form method="post" action="{% url 'set_language' %}" class="lang-switch">
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
{% load static i18n %}
|
||||
{% get_current_language as CURRENT_LANGUAGE %}
|
||||
<div class="app-header{% if header_inside_shell %} app-header-in-shell{% endif %}">
|
||||
<a class="app-brand" href="/" aria-label="{% trans 'Zur Startseite' %}">
|
||||
<img class="app-brand-logo" src="{% static 'workflows/img/tubco-logo.svg' %}" alt="TUB/CO Logo" />
|
||||
</a>
|
||||
<div class="app-header-actions">
|
||||
{% if header_show_lang %}
|
||||
<form method="post" action="{% url 'set_language' %}" class="app-lang-switch">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="next" value="{{ request.get_full_path }}" />
|
||||
<button class="app-lang-btn {% if CURRENT_LANGUAGE == 'de' %}active{% endif %}" type="submit" name="language" value="de">DE</button>
|
||||
<button class="app-lang-btn {% if CURRENT_LANGUAGE == 'en' %}active{% endif %}" type="submit" name="language" value="en">EN</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
{% if header_show_dashboard %}
|
||||
<a class="btn btn-secondary" href="/requests/">{% trans "Zum Dashboard" %}</a>
|
||||
{% endif %}
|
||||
{% if header_show_home %}
|
||||
<a class="btn btn-secondary" href="/">{% trans "Zur Startseite" %}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
@@ -6,6 +6,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{% trans "Integrationen Setup" %}</title>
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/buttons.css' %}" />
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/app_chrome.css' %}" />
|
||||
<style>
|
||||
body { margin: 0; font-family: Arial, sans-serif; background: #f4f8ff; color: #0f172a; padding: 20px; }
|
||||
.shell { max-width: 980px; margin: 0 auto; background: #fff; border: 1px solid #d8e3f0; border-radius: 14px; padding: 16px; }
|
||||
@@ -72,10 +73,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="shell">
|
||||
<div class="topbar">
|
||||
<img class="brand-logo" src="{% static 'workflows/img/tubco-logo.svg' %}" alt="TUB/CO Logo" />
|
||||
<a class="btn btn-secondary" href="/">{% trans "Zur Startseite" %}</a>
|
||||
</div>
|
||||
{% include 'workflows/includes/app_header.html' with header_show_home=1 header_inside_shell=1 %}
|
||||
<h1>{% trans "Integrationen Setup" %}</h1>
|
||||
<p class="sub">{% trans "Verwalten Sie Nextcloud- und Mail-Konfiguration ohne Backend-Wechsel." %}</p>
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{% trans "Einweisungs-Builder" %}</title>
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/buttons.css' %}" />
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/app_chrome.css' %}" />
|
||||
<style>
|
||||
body { margin: 0; font-family: Arial, sans-serif; background: #f4f8ff; color: #1b2b43; padding: 20px; }
|
||||
.shell { max-width: 1180px; margin: 0 auto; background: #fff; border: 1px solid #d7e0ea; border-radius: 14px; padding: 18px; }
|
||||
@@ -34,10 +35,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="shell">
|
||||
<div class="topbar">
|
||||
<img class="brand-logo" src="{% static 'workflows/img/tubco-logo.svg' %}" alt="TUB/CO Logo" />
|
||||
<a class="btn btn-secondary" href="/">{% trans "Zur Startseite" %}</a>
|
||||
</div>
|
||||
{% include 'workflows/includes/app_header.html' with header_show_dashboard=1 header_show_home=1 header_inside_shell=1 %}
|
||||
|
||||
<div class="toolbar">
|
||||
<div>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{% trans "Offboarding-Anfrage" %}</title>
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/buttons.css' %}" />
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/app_chrome.css' %}" />
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/offboarding_form.css' %}" />
|
||||
</head>
|
||||
<body>
|
||||
@@ -19,15 +20,9 @@
|
||||
</div>
|
||||
|
||||
<div class="wrap">
|
||||
<img class="brand-logo" src="{% static 'workflows/img/tubco-logo.svg' %}" alt="TUB/CO Logo" />
|
||||
<div class="top-link" style="display:flex; gap:8px; align-items:center;">
|
||||
<form method="post" action="{% url 'set_language' %}" class="lang-switch" style="display:flex; gap:6px;">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="next" value="{{ request.get_full_path }}" />
|
||||
<button class="btn btn-secondary" type="submit" name="language" value="de">DE</button>
|
||||
<button class="btn btn-secondary" type="submit" name="language" value="en">EN</button>
|
||||
</form>
|
||||
<a class="btn btn-secondary" href="/">{% trans "Zur Startseite" %}</a></div>
|
||||
{% include 'workflows/includes/app_header.html' with header_show_lang=1 header_show_home=1 header_inside_shell=1 %}
|
||||
|
||||
<div class="wrap-body">
|
||||
<div class="card">
|
||||
<h1>{% trans "Offboarding-Anfrage" %}</h1>
|
||||
<form method="get" action="/offboarding/new/">
|
||||
@@ -69,6 +64,7 @@
|
||||
<button class="btn btn-primary" type="submit">{% trans "Offboarding-Anfrage speichern" %}</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
@@ -1,27 +1,39 @@
|
||||
{% load static i18n %}
|
||||
<!doctype html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Offboarding gespeichert</title>
|
||||
<title>{% trans "Offboarding gespeichert" %}</title>
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/buttons.css' %}" />
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/app_chrome.css' %}" />
|
||||
<style>
|
||||
body { font-family: Arial, sans-serif; margin: 24px; }
|
||||
code { background: #f4f4f4; padding: 2px 6px; }
|
||||
body { margin: 0; font-family: Arial, sans-serif; background: #f4f8ff; color: #1b2b43; padding: 24px; }
|
||||
.shell { background: #fff; border: 1px solid #d7e0ea; border-radius: 16px; padding: 20px; box-shadow: 0 16px 36px rgba(18,34,56,0.10); }
|
||||
h1 { margin: 0 0 10px; color: #000078; }
|
||||
p { margin: 0 0 10px; }
|
||||
code { background: #f4f6fa; padding: 2px 6px; border-radius: 6px; }
|
||||
.actions { display:flex; gap:8px; flex-wrap:wrap; margin-top: 14px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Offboarding gespeichert</h1>
|
||||
<p>Vorgangs-ID: <code>{{ obj.id }}</code></p>
|
||||
<p>Name: <code>{{ obj.full_name }}</code></p>
|
||||
<p>E-Mail: <code>{{ obj.work_email }}</code></p>
|
||||
<p>Letzter Arbeitstag: <code>{{ obj.last_working_day }}</code></p>
|
||||
{% if pdf_url %}
|
||||
<p>PDF: <a href="{{ pdf_url }}" target="_blank" rel="noopener">PDF öffnen</a></p>
|
||||
<p>Datei: <code>{{ obj.generated_pdf_path }}</code></p>
|
||||
{% else %}
|
||||
<p>PDF wird im Hintergrund erstellt.</p>
|
||||
{% endif %}
|
||||
<p><a href="/">Zur Startseite</a></p>
|
||||
<p><a href="/offboarding/new/">Neue Offboarding-Anfrage erfassen</a></p>
|
||||
{% include 'workflows/includes/app_header.html' with header_show_home=1 %}
|
||||
<div class="shell">
|
||||
<h1>{% trans "Offboarding gespeichert" %}</h1>
|
||||
<p>{% trans "Vorgangs-ID:" %} <code>{{ obj.id }}</code></p>
|
||||
<p>{% trans "Name:" %} <code>{{ obj.full_name }}</code></p>
|
||||
<p>{% trans "E-Mail:" %} <code>{{ obj.work_email }}</code></p>
|
||||
<p>{% trans "Letzter Arbeitstag:" %} <code>{{ obj.last_working_day }}</code></p>
|
||||
{% if pdf_url %}
|
||||
<p>{% trans "PDF:" %} <a href="{{ pdf_url }}" target="_blank" rel="noopener">{% trans "PDF öffnen" %}</a></p>
|
||||
<p>{% trans "Datei:" %} <code>{{ obj.generated_pdf_path }}</code></p>
|
||||
{% else %}
|
||||
<p>{% trans "PDF wird im Hintergrund erstellt." %}</p>
|
||||
{% endif %}
|
||||
<div class="actions">
|
||||
<a class="btn btn-secondary" href="/offboarding/new/">{% trans "Neue Offboarding-Anfrage erfassen" %}</a>
|
||||
<a class="btn btn-secondary" href="/requests/">{% trans "Zum Dashboard" %}</a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{% trans "Onboarding-Anfrage" %}</title>
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/buttons.css' %}" />
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/app_chrome.css' %}" />
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/onboarding_form.css' %}" />
|
||||
</head>
|
||||
<body>
|
||||
@@ -18,21 +19,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="top-wrap">
|
||||
<img class="brand-logo" src="{% static 'workflows/img/tubco-logo.svg' %}" alt="TUB/CO Logo" />
|
||||
<div class="top-link" style="display:flex; gap:8px; align-items:center;">
|
||||
<form method="post" action="{% url 'set_language' %}" class="lang-switch" style="display:flex; gap:6px;">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="next" value="{{ request.get_full_path }}" />
|
||||
<button class="btn btn-secondary" type="submit" name="language" value="de">DE</button>
|
||||
<button class="btn btn-secondary" type="submit" name="language" value="en">EN</button>
|
||||
</form>
|
||||
<a class="btn btn-secondary" href="/">{% trans "Zur Startseite" %}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="shell">
|
||||
<aside class="panel">
|
||||
{% include 'workflows/includes/app_header.html' with header_show_lang=1 header_show_home=1 header_inside_shell=1 %}
|
||||
|
||||
<div class="shell-body">
|
||||
<aside class="panel">
|
||||
<h1>{% trans "Onboarding" %}</h1>
|
||||
<p class="sub">{% trans "Mehrseitiges Formular mit konfigurierbaren Feldern aus dem Admin." %}</p>
|
||||
<ol class="step-list">
|
||||
@@ -48,7 +39,7 @@
|
||||
</ol>
|
||||
</aside>
|
||||
|
||||
<main class="main">
|
||||
<main class="main">
|
||||
{% if form.errors %}
|
||||
<div class="error-banner">{% trans "Bitte prüfen Sie die markierten Felder. Ungültige Eingaben wurden erkannt." %}</div>
|
||||
{% endif %}
|
||||
@@ -75,8 +66,26 @@
|
||||
{% if field.help_text %}<div class="hint">{{ field.help_text }}</div>{% endif %}
|
||||
{{ field.errors }}
|
||||
</div>
|
||||
{% elif section.key == 'itsetup' and field.name in onboarding_checkbox_lists %}
|
||||
<div class="itsetup-checklist-panel field-full">
|
||||
<div class="itsetup-checklist-head">
|
||||
<h3>{{ field.label }}</h3>
|
||||
<button
|
||||
type="button"
|
||||
class="checklist-toggle-btn"
|
||||
data-checklist-toggle
|
||||
data-label-select="{% trans 'Alle auswählen' %}"
|
||||
data-label-clear="{% trans 'Auswahl aufheben' %}"
|
||||
>{% trans "Alle auswählen" %}</button>
|
||||
</div>
|
||||
<div class="itsetup-checklist-body">
|
||||
{{ field }}
|
||||
{% if field.help_text %}<div class="hint">{{ field.help_text }}</div>{% endif %}
|
||||
{{ field.errors }}
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="field {% if section.key == 'abschluss' %}finish-field{% endif %} {% if field.name in onboarding_checkbox_lists or field.name == 'gender' %}field-full{% endif %} {% if field.name in onboarding_checkbox_lists %}checkbox-list{% endif %}">
|
||||
<div class="field {% if section.key == 'abschluss' %}finish-field{% endif %} {% if field.name in onboarding_checkbox_lists or field.name == 'gender' or field.name == 'additional_hardware_needed_choice' or field.name == 'additional_software_needed_choice' or field.name == 'additional_access_needed_choice' or field.name == 'successor_required_choice' %}field-full{% endif %} {% if field.name in onboarding_checkbox_lists %}checkbox-list{% endif %} {% if section.key == 'itsetup' and field.name in onboarding_checkbox_lists %}itsetup-checklist-block{% endif %}">
|
||||
{{ field.label_tag }}
|
||||
{{ field }}
|
||||
{% if field.help_text %}<div class="hint">{{ field.help_text }}</div>{% endif %}
|
||||
@@ -96,8 +105,26 @@
|
||||
{% if field.help_text %}<div class="hint">{{ field.help_text }}</div>{% endif %}
|
||||
{{ field.errors }}
|
||||
</div>
|
||||
{% elif section.key == 'itsetup' and field.name in onboarding_checkbox_lists %}
|
||||
<div class="itsetup-checklist-panel field-full">
|
||||
<div class="itsetup-checklist-head">
|
||||
<h3>{{ field.label }}</h3>
|
||||
<button
|
||||
type="button"
|
||||
class="checklist-toggle-btn"
|
||||
data-checklist-toggle
|
||||
data-label-select="{% trans 'Alle auswählen' %}"
|
||||
data-label-clear="{% trans 'Auswahl aufheben' %}"
|
||||
>{% trans "Alle auswählen" %}</button>
|
||||
</div>
|
||||
<div class="itsetup-checklist-body">
|
||||
{{ field }}
|
||||
{% if field.help_text %}<div class="hint">{{ field.help_text }}</div>{% endif %}
|
||||
{{ field.errors }}
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="field {% if section.key == 'abschluss' %}finish-field{% endif %} {% if field.name in onboarding_checkbox_lists or field.name == 'gender' %}field-full{% endif %} {% if field.name in onboarding_checkbox_lists %}checkbox-list{% endif %}">
|
||||
<div class="field {% if section.key == 'abschluss' %}finish-field{% endif %} {% if field.name in onboarding_checkbox_lists or field.name == 'gender' or field.name == 'additional_hardware_needed_choice' or field.name == 'additional_software_needed_choice' or field.name == 'additional_access_needed_choice' or field.name == 'successor_required_choice' %}field-full{% endif %} {% if field.name in onboarding_checkbox_lists %}checkbox-list{% endif %} {% if section.key == 'itsetup' and field.name in onboarding_checkbox_lists %}itsetup-checklist-block{% endif %}">
|
||||
{{ field.label_tag }}
|
||||
{{ field }}
|
||||
{% if field.help_text %}<div class="hint">{{ field.help_text }}</div>{% endif %}
|
||||
@@ -132,7 +159,8 @@
|
||||
<button type="submit" id="btn-submit" class="btn btn-primary hidden">{% trans "Onboarding-Anfrage absenden" %}</button>
|
||||
</div>
|
||||
</form>
|
||||
</main>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
@@ -301,6 +329,48 @@
|
||||
// Manual-only behavior: fill only when button is clicked.
|
||||
}
|
||||
|
||||
function setupChecklistToggles() {
|
||||
document.querySelectorAll('[data-checklist-toggle]').forEach(function (button) {
|
||||
const panel = button.closest('.itsetup-checklist-panel');
|
||||
if (!panel) return;
|
||||
|
||||
const getCheckboxes = function () {
|
||||
return Array.from(panel.querySelectorAll('input[type="checkbox"]'));
|
||||
};
|
||||
|
||||
const refreshButtonLabel = function () {
|
||||
const checkboxes = getCheckboxes();
|
||||
if (!checkboxes.length) return;
|
||||
const allChecked = checkboxes.every(function (box) { return box.checked; });
|
||||
button.textContent = allChecked ? (button.dataset.labelClear || 'Auswahl aufheben') : (button.dataset.labelSelect || 'Alle auswählen');
|
||||
};
|
||||
|
||||
button.addEventListener('click', function () {
|
||||
const checkboxes = getCheckboxes();
|
||||
if (!checkboxes.length) return;
|
||||
const shouldCheck = checkboxes.some(function (box) { return !box.checked; });
|
||||
checkboxes.forEach(function (box) {
|
||||
box.checked = shouldCheck;
|
||||
box.dispatchEvent(new Event('change', { bubbles: true }));
|
||||
});
|
||||
refreshButtonLabel();
|
||||
});
|
||||
|
||||
getCheckboxes().forEach(function (box) {
|
||||
box.addEventListener('change', refreshButtonLabel);
|
||||
});
|
||||
|
||||
refreshButtonLabel();
|
||||
});
|
||||
}
|
||||
|
||||
function setupChecklistColumns() {
|
||||
document.querySelectorAll('.itsetup-checklist-body > [id^="id_"]').forEach(function (container) {
|
||||
const itemCount = container.querySelectorAll(':scope > div').length;
|
||||
container.classList.toggle('cols-3', itemCount > 8);
|
||||
});
|
||||
}
|
||||
|
||||
function updateStep() {
|
||||
pages.forEach((p, i) => p.classList.toggle('active', i === current));
|
||||
navItems.forEach((n, i) => n.classList.toggle('active', i === current));
|
||||
@@ -342,6 +412,8 @@
|
||||
syncConditionals();
|
||||
setupWorkEmailAutofill();
|
||||
setupBusinessCardAutofill();
|
||||
setupChecklistToggles();
|
||||
setupChecklistColumns();
|
||||
jumpToFirstErrorPage();
|
||||
updateStep();
|
||||
})();
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{% trans "Einweisung durchführen" %}</title>
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/buttons.css' %}" />
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/app_chrome.css' %}" />
|
||||
<style>
|
||||
:root {
|
||||
--brand-blue: #000078;
|
||||
@@ -22,10 +23,7 @@
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; background: linear-gradient(180deg, #eef4ff, #f8fbff); color: var(--ink); padding: 24px; }
|
||||
.shell { max-width: 1180px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 42px rgba(16,32,57,.10); overflow: hidden; }
|
||||
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: #fff; }
|
||||
.brand-logo { width: 210px; max-width: 100%; height: auto; display: block; }
|
||||
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
|
||||
.shell { width: min(var(--app-shell-width), 100%); margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 22px 48px rgba(18,34,56,.14); overflow: hidden; }
|
||||
.hero { padding: 20px 22px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, rgba(0,0,120,.06), rgba(0,0,120,0) 48%), linear-gradient(180deg, #ffffff, #f8fbff); }
|
||||
.hero h1 { margin: 0; font-size: 32px; line-height: 1.08; color: var(--brand-blue); }
|
||||
.sub { margin: 8px 0 0; color: var(--muted); max-width: 780px; }
|
||||
@@ -55,18 +53,12 @@
|
||||
textarea { width: 100%; min-height: 150px; border: 1px solid #cfd9e8; border-radius: 10px; padding: 11px 12px; font: inherit; resize: vertical; }
|
||||
.help { color: var(--muted); font-size: 13px; margin-top: 8px; }
|
||||
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
|
||||
@media (max-width: 900px) { .meta, .items { grid-template-columns: 1fr; } .topbar { flex-direction: column; } .top-actions { justify-content: flex-start; } .meta-grid { grid-template-columns: 1fr; } .item:nth-last-child(-n+2) { border-bottom: 1px solid #eef3f8; } .item:last-child { border-bottom: 0; } }
|
||||
@media (max-width: 900px) { .meta, .items { grid-template-columns: 1fr; } .meta-grid { grid-template-columns: 1fr; } .item:nth-last-child(-n+2) { border-bottom: 1px solid #eef3f8; } .item:last-child { border-bottom: 0; } }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="shell">
|
||||
<div class="topbar">
|
||||
<img class="brand-logo" src="{% static 'workflows/img/tubco-logo.svg' %}" alt="TUB/CO Logo" />
|
||||
<div class="top-actions">
|
||||
<a class="btn btn-secondary" href="/requests/">{% trans "Zum Dashboard" %}</a>
|
||||
<a class="btn btn-secondary" href="/">{% trans "Zur Startseite" %}</a>
|
||||
</div>
|
||||
</div>
|
||||
{% include 'workflows/includes/app_header.html' with header_show_dashboard=1 header_show_home=1 header_inside_shell=1 %}
|
||||
|
||||
<div class="hero">
|
||||
<h1>{% trans "Einweisung durchführen" %}</h1>
|
||||
|
||||
@@ -1,26 +1,38 @@
|
||||
{% load static i18n %}
|
||||
<!doctype html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Onboarding gespeichert</title>
|
||||
<title>{% trans "Onboarding gespeichert" %}</title>
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/buttons.css' %}" />
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/app_chrome.css' %}" />
|
||||
<style>
|
||||
body { font-family: Arial, sans-serif; margin: 24px; color: #222; }
|
||||
code { background: #f4f4f4; padding: 2px 6px; }
|
||||
body { margin: 0; font-family: Arial, sans-serif; background: #f4f8ff; color: #1b2b43; padding: 24px; }
|
||||
.shell { background: #fff; border: 1px solid #d7e0ea; border-radius: 16px; padding: 20px; box-shadow: 0 16px 36px rgba(18,34,56,0.10); }
|
||||
h1 { margin: 0 0 10px; color: #000078; }
|
||||
p { margin: 0 0 10px; }
|
||||
code { background: #f4f6fa; padding: 2px 6px; border-radius: 6px; }
|
||||
.actions { display:flex; gap:8px; flex-wrap:wrap; margin-top: 14px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Anfrage erfolgreich gespeichert</h1>
|
||||
<p>Vorgangs-ID: <code>{{ obj.id }}</code></p>
|
||||
<p>Name: <code>{{ obj.full_name }}</code></p>
|
||||
<p>E-Mail: <code>{{ obj.work_email }}</code></p>
|
||||
{% if pdf_url %}
|
||||
<p>PDF: <a href="{{ pdf_url }}" target="_blank" rel="noopener">PDF öffnen</a></p>
|
||||
<p>Datei: <code>{{ obj.generated_pdf_path }}</code></p>
|
||||
{% else %}
|
||||
<p>PDF wird im Hintergrund erstellt.</p>
|
||||
{% endif %}
|
||||
<p><a href="/">Zur Startseite</a></p>
|
||||
<p><a href="/onboarding/new/">Neue Anfrage erfassen</a></p>
|
||||
{% include 'workflows/includes/app_header.html' with header_show_home=1 %}
|
||||
<div class="shell">
|
||||
<h1>{% trans "Anfrage erfolgreich gespeichert" %}</h1>
|
||||
<p>{% trans "Vorgangs-ID:" %} <code>{{ obj.id }}</code></p>
|
||||
<p>{% trans "Name:" %} <code>{{ obj.full_name }}</code></p>
|
||||
<p>{% trans "E-Mail:" %} <code>{{ obj.work_email }}</code></p>
|
||||
{% if pdf_url %}
|
||||
<p>{% trans "PDF:" %} <a href="{{ pdf_url }}" target="_blank" rel="noopener">{% trans "PDF öffnen" %}</a></p>
|
||||
<p>{% trans "Datei:" %} <code>{{ obj.generated_pdf_path }}</code></p>
|
||||
{% else %}
|
||||
<p>{% trans "PDF wird im Hintergrund erstellt." %}</p>
|
||||
{% endif %}
|
||||
<div class="actions">
|
||||
<a class="btn btn-secondary" href="/onboarding/new/">{% trans "Neue Anfrage erfassen" %}</a>
|
||||
<a class="btn btn-secondary" href="/requests/">{% trans "Zum Dashboard" %}</a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
{% extends 'workflows/base_shell.html' %}
|
||||
{% load static %}
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Project Wiki</title>
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/buttons.css' %}" />
|
||||
|
||||
{% block title %}Project Wiki{% endblock %}
|
||||
|
||||
{% block extra_head %}
|
||||
<style>
|
||||
body { margin: 0; font-family: Arial, sans-serif; background: #f4f8ff; color: #1b2b43; padding: 20px; }
|
||||
.shell { max-width: 1120px; margin: 0 auto; background: #fff; border: 1px solid #d7e0ea; border-radius: 14px; padding: 18px; }
|
||||
@@ -23,13 +21,12 @@
|
||||
.box { border: 1px solid #d7e0ea; border-radius: 10px; padding: 10px; background: #fcfdff; margin: 8px 0 12px; }
|
||||
.note { border-left: 4px solid #000078; padding: 8px 10px; background: #f4f8ff; margin: 10px 0; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="shell">
|
||||
<img class="brand-logo" src="{% static 'workflows/img/tubco-logo.svg' %}" alt="TUB/CO Logo" />
|
||||
{% endblock %}
|
||||
|
||||
{% block shell_body %}
|
||||
{% include 'workflows/includes/app_header.html' with header_show_home=1 header_inside_shell=1 %}
|
||||
<div class="top">
|
||||
<h1>Project Wiki</h1>
|
||||
<a class="btn btn-secondary" href="/">Back to Home</a>
|
||||
</div>
|
||||
<p class="sub">Operational and technical documentation for the Onboarding/Offboarding platform.</p>
|
||||
|
||||
@@ -296,6 +293,5 @@
|
||||
<div class="note">
|
||||
Last updated for current system behavior as of March 19, 2026.
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
{% extends 'workflows/base_shell.html' %}
|
||||
{% load static i18n %}
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{% trans "Release Checklist" %}</title>
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/buttons.css' %}" />
|
||||
|
||||
{% block title %}{% trans "Release Checklist" %}{% endblock %}
|
||||
|
||||
{% block extra_head %}
|
||||
<style>
|
||||
body { margin: 0; font-family: Arial, sans-serif; background: #f4f8ff; color: #1b2b43; padding: 20px; }
|
||||
.shell { max-width: 1120px; margin: 0 auto; }
|
||||
@@ -28,10 +26,10 @@
|
||||
.note { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #f7faff; border: 1px solid #dfe8f4; color: #355175; }
|
||||
@media (max-width: 820px) { .grid { grid-template-columns: 1fr; } }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="shell">
|
||||
<img class="brand-logo" src="{% static 'workflows/img/tubco-logo.svg' %}" alt="TUB/CO Logo" />
|
||||
{% endblock %}
|
||||
|
||||
{% block shell_body %}
|
||||
{% include 'workflows/includes/app_header.html' with header_show_home=1 header_inside_shell=1 %}
|
||||
<section class="hero">
|
||||
<div class="eyebrow">{% trans "Release" %}</div>
|
||||
<div class="top">
|
||||
@@ -117,6 +115,5 @@ docker compose logs --no-color --tail=200 worker</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="note">{% trans "Project rule: German remains the primary/fallback language. English is secondary. If a release adds new dynamic text, add the German source first and then the English value." %}</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{% trans "Anfragen Dashboard" %}</title>
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/buttons.css' %}" />
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/app_chrome.css' %}" />
|
||||
<style>
|
||||
:root {
|
||||
--brand-blue: #000078;
|
||||
@@ -877,7 +878,7 @@
|
||||
<div class="shell">
|
||||
<div class="topbar">
|
||||
<div class="brand-wrap">
|
||||
<img class="brand-logo" src="{% static 'workflows/img/tubco-logo.svg' %}" alt="TUB/CO Logo" />
|
||||
<a class="app-brand" href="/"><img class="brand-logo" src="{% static 'workflows/img/tubco-logo.svg' %}" alt="TUB/CO Logo" /></a>
|
||||
</div>
|
||||
<div class="quick-actions">
|
||||
<form method="post" action="{% url 'set_language' %}" class="lang-switch">
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{% trans "Welcome E-Mails" %}</title>
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/buttons.css' %}" />
|
||||
<link rel="stylesheet" href="{% static 'workflows/css/app_chrome.css' %}" />
|
||||
<style>
|
||||
body { margin: 0; font-family: Arial, sans-serif; background: #f4f8ff; color: #0f172a; padding: 20px; }
|
||||
.shell { max-width: 1100px; margin: 0 auto; background: #fff; border: 1px solid #d8e3f0; border-radius: 14px; padding: 16px; }
|
||||
@@ -43,10 +44,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="shell">
|
||||
<div class="topbar">
|
||||
<img class="brand-logo" src="{% static 'workflows/img/tubco-logo.svg' %}" alt="TUB/CO Logo" />
|
||||
<a class="btn btn-secondary" href="/">{% trans "Zur Startseite" %}</a>
|
||||
</div>
|
||||
{% include 'workflows/includes/app_header.html' with header_show_home=1 header_inside_shell=1 %}
|
||||
<h1>{% trans "Geplante Welcome E-Mails" %}</h1>
|
||||
<p class="sub">{% trans "Welcome-Mails konfigurieren und geplante Mails steuern (sofort senden, pausieren, fortsetzen, abbrechen)." %}</p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user