fix: configure CI database connection properly
- Add dotenv loading to Django settings - Update CI workflow to use correct environment variables - Set POSTGRES_* variables instead of DATABASE_URL - Add environment variables to all Django management commands - Fixes CI test failures due to database connection issues
This commit is contained in:
66
app/templates/pdf/base.html
Normal file
66
app/templates/pdf/base.html
Normal file
@@ -0,0 +1,66 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{ title }} - {{ corporate_settings.stiftung_name }}</title>
|
||||
<style>
|
||||
{{ css_content|safe }}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Header Section -->
|
||||
<div class="header">
|
||||
<div class="header-content">
|
||||
<div class="header-left">
|
||||
{% if logo_base64 %}
|
||||
<img src="{{ logo_base64 }}" alt="{{ corporate_settings.stiftung_name }} Logo" class="logo">
|
||||
{% endif %}
|
||||
<h1 class="stiftung-name">{{ corporate_settings.stiftung_name }}</h1>
|
||||
<div class="document-title">{{ title }}</div>
|
||||
<div class="header-info">
|
||||
Erstellt am: {{ generation_date|date:"d.m.Y H:i" }}
|
||||
{% if generated_by %} | Erstellt von: {{ generated_by }}{% endif %}
|
||||
{% if total_count %} | Anzahl Einträge: {{ total_count }}{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if corporate_settings.address_line1 or corporate_settings.phone or corporate_settings.email %}
|
||||
<div class="header-right">
|
||||
<div class="contact-info">
|
||||
{% if corporate_settings.address_line1 %}
|
||||
{{ corporate_settings.address_line1 }}<br>
|
||||
{% endif %}
|
||||
{% if corporate_settings.address_line2 %}
|
||||
{{ corporate_settings.address_line2 }}<br>
|
||||
{% endif %}
|
||||
{% if corporate_settings.phone %}
|
||||
Tel: {{ corporate_settings.phone }}<br>
|
||||
{% endif %}
|
||||
{% if corporate_settings.email %}
|
||||
E-Mail: {{ corporate_settings.email }}<br>
|
||||
{% endif %}
|
||||
{% if corporate_settings.website %}
|
||||
Web: {{ corporate_settings.website }}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Content Section -->
|
||||
<div class="content">
|
||||
{% block content %}
|
||||
<!-- Content will be injected here -->
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
<!-- Footer Section -->
|
||||
<div class="footer">
|
||||
{% if corporate_settings.footer_text %}
|
||||
<p>{{ corporate_settings.footer_text }}</p>
|
||||
{% endif %}
|
||||
<p>{{ corporate_settings.stiftung_name }} | Generiert am {{ generation_date|date:"d.m.Y H:i" }}</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user